Package com.iizix.ws.xml
Interface IBuiltInTypeValue
-
- All Known Implementing Classes:
Base64BinaryValue
,DateTimeValue
,DateValue
,DayValue
,DefaultValue
,HexBinaryValue
,MonthDayValue
,MonthValue
,TimeValue
,YearMonthValue
,YearValue
public interface IBuiltInTypeValue
Interface used to convert a Built-in Type to/from a Value.- Author:
- Christopher Mindus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Value
convertBuiltInTypeToValue(java.lang.String valueString)
Converts a Built-in Type to Value.java.lang.String
convertValueToBuiltInType(Value value)
Converts a Built-in Type to Value.java.lang.String
getTemplate(Facet[] facets)
Creates a sample or template string for the data to place in XML.void
validate(Value value)
Validates the new Value.
-
-
-
Method Detail
-
convertBuiltInTypeToValue
Value convertBuiltInTypeToValue(java.lang.String valueString) throws java.text.ParseException
Converts a Built-in Type to Value.- Parameters:
valueString
- The Built-in Type value string.- Returns:
- The converted Value.
- Throws:
java.text.ParseException
- Thrown when conversion is not possible or a parsing error occurs.
-
convertValueToBuiltInType
java.lang.String convertValueToBuiltInType(Value value) throws ValueException
Converts a Built-in Type to Value.- Parameters:
value
- The value.- Returns:
- The String representation of the Built-in Type.
- Throws:
ValueException
- For validation errors.
-
validate
void validate(Value value) throws ValueException
Validates the new Value.- Parameters:
value
- The value.- Throws:
ValueException
- For validation errors.
-
getTemplate
java.lang.String getTemplate(Facet[] facets)
Creates a sample or template string for the data to place in XML.- Parameters:
facets
- The facets.- Returns:
- The template string.
-
-