com.ibm.uddi.v3.management
Class Property
- java.lang.Object
-
- com.ibm.uddi.v3.management.Property
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ConfigurationProperty, Entitlement, Limit, Policy, TierProperty, UddiUserProperty, UserEntitlementProperty, ValueSetProperty
public abstract class Property extends java.lang.Object implements java.io.SerializableBase class for UDDI property objects.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Property()Constructor taking no argumentsProperty(java.lang.String id, java.lang.String type, java.lang.Object value, java.lang.String nameKey)Convenience constructor taking an id, type, value and name key only.
-
Method Summary
Methods Modifier and Type Method and Description booleangetBooleanValue()Convenience method for getting a boolean value.java.util.ListgetConstraints()Returns validation constraints (if any).java.lang.StringgetDescriptionKey()Returns the message key for the description of this property.intgetDisplayOrder()Returns the display weighting which is typically used by user interfaces to determine display order for multiple property views.java.lang.StringgetId()Returns the identifier for this property.intgetIntegerValue()Convenience method for getting an integer value.java.lang.StringgetNameKey()Returns the message key for the name of this property.java.lang.StringgetStringValue()Convenience method for getting an integer value.java.lang.StringgetType()Returns theStringrepresenting the type of this property.java.lang.StringgetUnitsKey()java.util.ListgetValidValues()Returns the collection of valid values that this property's value can be.java.lang.ObjectgetValue()Returns the property value as anObject, which should be cast according to the type attribute.booleanisInternal()Indicates if this property is only for UDDI registry use and not to be controlled by clients.booleanisReadOnly()Indicates if the property is read only.booleanisRequired()Indicates if the property is a required field.booleanisUsingMessageKeys()voidsetBooleanValue(boolean booleanValue)Convenience method for setting value of type Boolean.voidsetConstraints(java.util.List constraints)Sets validation constraints.voidsetDescriptionKey(java.lang.String descriptionKey)Sets the description message key of the property.voidsetDisplayOrder(int displayOrder)Sets the display weighting.voidsetId(java.lang.String id)Sets the ID of the property.voidsetIntegerValue(int integerValue)Convenience method for setting value of type Integer.voidsetInternal(boolean internal)Sets the internal flag, indicating if this property is only for UDDI registry use and not to be controlled by clients.voidsetNameKey(java.lang.String nameKey)Sets the name message key of the property.voidsetReadOnly(boolean readOnly)Indicates if property is read only.voidsetRequired(boolean required)Indicates if the property is required.voidsetStringValue(java.lang.String stringValue)Convenience method for setting value of type String.voidsetType(java.lang.String type)Sets the type of the property value.voidsetUnitsKey(java.lang.String unitsKey)Message key for looking up locale specific text for units.voidsetUsingMessageKeys(boolean usingMessageKeys)Indicates if the value contains message keys.voidsetValidValues(java.util.List validValues)Sets valid values a property can have if it supports multiple possible values.voidsetValue(java.lang.Object value)Sets the value of the property.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Property
public Property()
Constructor taking no arguments
-
Property
public Property(java.lang.String id, java.lang.String type, java.lang.Object value, java.lang.String nameKey)Convenience constructor taking an id, type, value and name key only. All other parameters are defaulted.- Parameters:
id-type-value-nameKey-
-
-
Method Detail
-
getDescriptionKey
public java.lang.String getDescriptionKey()
Returns the message key for the description of this property.- Returns:
- - the message key for the description.
-
getId
public java.lang.String getId()
Returns the identifier for this property.- Returns:
- - the property identifier.
-
getNameKey
public java.lang.String getNameKey()
Returns the message key for the name of this property.- Returns:
- - the message key for the name.
-
getType
public java.lang.String getType()
Returns theStringrepresenting the type of this property.- Returns:
- - the fully qualified class name of the type of the property.
-
getValidValues
public java.util.List getValidValues()
Returns the collection of valid values that this property's value can be.- Returns:
Listof valid values (need to cast to type).
-
setDescriptionKey
public void setDescriptionKey(java.lang.String descriptionKey)
Sets the description message key of the property.- Parameters:
descriptionKey-
-
setId
public void setId(java.lang.String id)
Sets the ID of the property.- Parameters:
id-
-
setNameKey
public void setNameKey(java.lang.String nameKey)
Sets the name message key of the property.- Parameters:
nameKey-
-
setType
public void setType(java.lang.String type)
Sets the type of the property value.- Parameters:
type-
-
getValue
public java.lang.Object getValue()
Returns the property value as anObject, which should be cast according to the type attribute.- Returns:
- the value of the property.
-
setValue
public void setValue(java.lang.Object value)
Sets the value of the property.- Parameters:
Object-
-
isReadOnly
public boolean isReadOnly()
Indicates if the property is read only.- Returns:
-
isRequired
public boolean isRequired()
Indicates if the property is a required field.- Returns:
-
getUnitsKey
public java.lang.String getUnitsKey()
- Returns:
-
isUsingMessageKeys
public boolean isUsingMessageKeys()
- Returns:
-
setReadOnly
public void setReadOnly(boolean readOnly)
Indicates if property is read only.- Parameters:
readOnly-
-
setRequired
public void setRequired(boolean required)
Indicates if the property is required.- Parameters:
required-trueif the property is required.
-
setUnitsKey
public void setUnitsKey(java.lang.String unitsKey)
Message key for looking up locale specific text for units.- Parameters:
unitsKey-
-
setUsingMessageKeys
public void setUsingMessageKeys(boolean usingMessageKeys)
Indicates if the value contains message keys.- Parameters:
usingMessageKeys-
-
setValidValues
public void setValidValues(java.util.List validValues)
Sets valid values a property can have if it supports multiple possible values.- Parameters:
validValues-
-
setBooleanValue
public void setBooleanValue(boolean booleanValue)
Convenience method for setting value of type Boolean.- Parameters:
booleanValue-
-
getBooleanValue
public boolean getBooleanValue()
Convenience method for getting a boolean value.- Returns:
trueif value is true,false
-
setIntegerValue
public void setIntegerValue(int integerValue)
Convenience method for setting value of type Integer.- Parameters:
integerValue-
-
getIntegerValue
public int getIntegerValue()
Convenience method for getting an integer value.- Returns:
- integer value
-
setStringValue
public void setStringValue(java.lang.String stringValue)
Convenience method for setting value of type String.- Parameters:
stringValue-
-
getStringValue
public java.lang.String getStringValue()
Convenience method for getting an integer value.- Returns:
- String value
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isInternal
public boolean isInternal()
Indicates if this property is only for UDDI registry use and not to be controlled by clients. Client applications will only ever receivePropertyobjects that have internal set tofalse.- Returns:
trueif the property is used internally only.
-
setInternal
public void setInternal(boolean internal)
Sets the internal flag, indicating if this property is only for UDDI registry use and not to be controlled by clients.- Parameters:
internal- -trueindicates the property is used internally.
-
getDisplayOrder
public int getDisplayOrder()
Returns the display weighting which is typically used by user interfaces to determine display order for multiple property views.- Returns:
- display weighting value, relative to values of other properties in same collection.
-
setDisplayOrder
public void setDisplayOrder(int displayOrder)
Sets the display weighting. Useful for client applications to sort property views.- Parameters:
displayOrder- - display weighting value, relative to values of other properties in same collection.
-
getConstraints
public java.util.List getConstraints()
Returns validation constraints (if any). When aPropertyis returned to a client, only constraints that can be executed outside of the UDDI application are populated.- Returns:
- collection of
Constraintobjects.
-
setConstraints
public void setConstraints(java.util.List constraints)
Sets validation constraints.- Parameters:
constraints- collection ofConstraintobjects.
-
-