|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.attr.AttributeValueFactory
AttributeValueFactory provides factory methods for creation of
AttributeValue instances.
| Method Summary | |
AttributeValue |
createAttributeValue(boolean value)
Create a boolean AttributeValue. |
AttributeValue |
createAttributeValue(String value)
Create a String AttributeValue. |
AttributeValue |
createAttributeValue(URI dataType,
String value)
Create an AttributeValue. |
static AttributeValueFactory |
getInstance()
Get the AttributeValueFactory instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static AttributeValueFactory getInstance()
public AttributeValue createAttributeValue(URI dataType,
String value)
throws IllegalArgumentException,
UnknownDataTypeException,
AttributeValueParseException
dataType - the DataType of the AttributeValue to be created.value - a String representation of the value.
IllegalArgumentException - if the DataType is null.
UnknownDataTypeException - if the DataType is unknown to the
AttributeFactory.
AttributeValueParseException - if the String representation of
the AttributeValue cannot be parsed to the specified DataType.public AttributeValue createAttributeValue(String value)
value - a String representation of the AttributeValue.
public AttributeValue createAttributeValue(boolean value)
value - a boolean representation of the AttributeValue.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||