org.sblim.slp
Interface ServiceLocationAttributeDescriptor
public interface ServiceLocationAttributeDescriptor
The ServiceLocationAttributeDescriptor interface provides introspection on a
template attribute definition (see RFC 2609). Classes implementing the
ServiceLocationAttributeDescriptor interface return information on a
particular service location attribute definition from the service template.
This information is primarily for GUI tools. Programmatic attribute
verification should be done through the ServiceLocationAttributeVerifier.
abstract Enumeration | getAllowedValues() - Return an Enumeration of allowed values for the attribute type.
|
abstract Enumeration | getDefaultValues() - Return an Enumeration of default values for the attribute type.
|
abstract String | getDescription() - Return a String containing the attribute's help text.
|
abstract String | getId() - Return a String containing the attribute's id.
|
abstract boolean | getIsKeyword() - Returns true if the attribute is a keyword attribute.
|
abstract boolean | getIsLiteral() - Returns true if the "L" flag is set.
|
abstract boolean | getIsMultivalued() - Returns true if the "M" flag is set.
|
abstract boolean | getIsOptional() - Returns true if the "O"" flag is set.
|
abstract boolean | getRequiresExplicitMatch() - Returns true if the "X" flag is set, indicating that the attribute should
be included in an any Locator.findServices() request search filter.
|
abstract String | getValueType() - Returns a String containing the fully package-qualified Java type of the
attribute.
|
getAllowedValues
public abstract Enumeration getAllowedValues()
Return an Enumeration of allowed values for the attribute type. For
keyword attributes returns null. For no allowed values (i.e.
unrestricted) returns an empty Enumeration.
getDefaultValues
public abstract Enumeration getDefaultValues()
Return an Enumeration of default values for the attribute type. For
keyword attributes returns null. For no allowed values (i.e.
unrestricted) returns an empty Enumeration.
getDescription
public abstract String getDescription()
Return a String containing the attribute's help text.
getId
public abstract String getId()
Return a String containing the attribute's id.
getIsKeyword
public abstract boolean getIsKeyword()
Returns true if the attribute is a keyword attribute.
true
if the attribute is a keyword,
false
otherwise
getIsLiteral
public abstract boolean getIsLiteral()
Returns true if the "L" flag is set.
true
if "L" is set, false
otherwise
getIsMultivalued
public abstract boolean getIsMultivalued()
Returns true if the "M" flag is set.
true
if "M" is set, false
otherwise
getIsOptional
public abstract boolean getIsOptional()
Returns true if the "O"" flag is set.
true
if "O" is set, false
otherwise
getRequiresExplicitMatch
public abstract boolean getRequiresExplicitMatch()
Returns true if the "X" flag is set, indicating that the attribute should
be included in an any Locator.findServices() request search filter.
true
if "X" is set, false
otherwise
getValueType
public abstract String getValueType()
Returns a String containing the fully package-qualified Java type of the
attribute. SLP types are translated into Java types as follows:
SLP | Java |
---|
STRING | "java.lang.String" |
INTEGER | "java.lang.Integer" |
BOOLEAN | "java.lang.Boolean" |
OPAQUE | "[B" (byte[]) |
KEYWORD | "" (empty string) |
Copyright © 2005, 2006 IBM Corporation. All Rights Reserved.