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<String,Object> 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<String,Object> 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, toAttributepublic static SimpleType getInstance()
schema.xsi.XSISimpleTypes.XSISimpleType#getInstance()public String getName()
Typeschema.SimpleType#getLocalName()public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map<String,Object> hints) throws SAXException
TypeIf 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.
SAXExceptionschema.Type#getValue(java.lang.Object, org.xml.sax.Attributes)public void encode(Element element, Object value, PrintHandler output, Map<String,Object> hints) throws IOException
TypeThis is encoding because the PrintHandler does not have to go back to a stream.
encode in interface Typeencode in class XSISimpleTypes.XSISimpleTypeelement - 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()
Typeorg.geotools.xml.xsi.Type#getInstanceType()Copyright © 1996–2021 Geotools. All rights reserved.