Package com.iizix.ws.xml
Class DateValue
- java.lang.Object
-
- com.iizix.ws.xml.DateValue
-
- All Implemented Interfaces:
IBuiltInTypeValue
public class DateValue extends java.lang.Object implements IBuiltInTypeValue
date Built-in Type converts to a Calendar.- Author:
- Christopher Mindus
-
-
Constructor Summary
Constructors Constructor Description DateValue()
-
Method Summary
All Methods Instance Methods Concrete 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
public Value convertBuiltInTypeToValue(java.lang.String valueString) throws java.text.ParseException
Converts a Built-in Type to Value.- Specified by:
convertBuiltInTypeToValue
in interfaceIBuiltInTypeValue
- 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
public java.lang.String convertValueToBuiltInType(Value value) throws ValueException
Converts a Built-in Type to Value.- Specified by:
convertValueToBuiltInType
in interfaceIBuiltInTypeValue
- Parameters:
value
- The value.- Returns:
- The String representation of the Built-in Type.
- Throws:
ValueException
- For validation errors.
-
validate
public void validate(Value value) throws ValueException
Validates the new Value.- Specified by:
validate
in interfaceIBuiltInTypeValue
- Parameters:
value
- The value.- Throws:
ValueException
- For validation errors.
-
getTemplate
public java.lang.String getTemplate(Facet[] facets)
Creates a sample or template string for the data to place in XML.- Specified by:
getTemplate
in interfaceIBuiltInTypeValue
- Parameters:
facets
- The facets.- Returns:
- The template string.
-
-