public static class XSISimpleTypes.Date extends XSISimpleTypes.XSISimpleType
ALL, LIST, NONE, RESTRICTION, UNION
Constructor and Description |
---|
Date() |
Modifier and Type | Method and Description |
---|---|
void |
encode(Element element,
Object value,
PrintHandler output,
Map hints)
Encode value as element on the provided output.
|
static SimpleType |
getInstance() |
Class |
getInstanceType()
This will return the intended Java Class for this element type.
|
String |
getName()
This returns the XML Schema declaration name of this type (both complex and simple types have
names ...)
|
Object |
getValue(Element element,
ElementValue[] value,
Attributes attrs,
Map hints)
This method is intended to receive the child elements in the form of ElementValues (@see
ElementValue).
|
canCreateAttributes, canEncode, findChildElement, findChildElement, getChildType, getFacets, getFinal, getId, getNamespace, getParent, getParents, toAttribute
public static SimpleType getInstance()
schema.xsi.XSISimpleTypes.XSISimpleType#getInstance()
public String getName()
Type
schema.SimpleType#getLocalName()
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException
Type
If the element had #CData (Nested Child Text), this will appear in the first slot, with a null Element.
A SAXNotSupportedException should be thrown when the child's [inherited, default implementation of getValue(ElementValue[],Attributes)] method should be used.
SAXException
schema.Type#getValue(java.lang.Object, org.xml.sax.Attributes)
public void encode(Element element, Object value, PrintHandler output, Map hints) throws IOException
Type
This is encoding because the PrintHandler does not have to go back to a stream.
encode
in interface Type
encode
in class XSISimpleTypes.XSISimpleType
element
- The original element declaration to which we should encode.value
- The Object to encode.output
- This is where the output should be written to.hints
- For providing additional context information to specific schemas.IOException
- When there is an error with the Writer.Type.encode(org.geotools.xml.schema.Element,
java.lang.Object, org.geotools.xml.PrintHandler, java.util.Map)
public Class getInstanceType()
Type
org.geotools.xml.xsi.Type#getInstanceType()
Copyright © 1996–2019 Geotools. All rights reserved.