Package org.odftoolkit.odfdom.type
Class NamespacedToken
java.lang.Object
org.odftoolkit.odfdom.type.NamespacedToken
- All Implemented Interfaces:
OdfDataType
This class represents the in OpenDocument format used data type namespacedToken
-
Constructor Summary
ConstructorDescriptionNamespacedToken
(String namespacedToken) Construct NamespacedToken by the parsing the given string -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
check if the specified String instance is a valid namespacedToken data typetoString()
Returns a String Object representing this NamespacedToken's valuestatic NamespacedToken
Returns a NamespacedToken instance representing the specified String value
-
Constructor Details
-
NamespacedToken
Construct NamespacedToken by the parsing the given string- Parameters:
namespacedToken
- The String to be parsed into NamespacedToken- Throws:
IllegalArgumentException
- if the given argument is not a valid NamespacedToken
-
-
Method Details
-
toString
Returns a String Object representing this NamespacedToken's value -
valueOf
Returns a NamespacedToken instance representing the specified String value- Parameters:
stringValue
- a String value- Returns:
- return a NamespacedToken instance representing stringValue
- Throws:
IllegalArgumentException
- if the given argument is not a valid NamespacedToken
-
isValid
check if the specified String instance is a valid namespacedToken data type- Parameters:
stringValue
- the value to be tested- Returns:
- true if the value of argument is valid for namespacedToken data type false otherwise
-