|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.xml.xsi.XSISimpleTypes.XSISimpleType
A generic implementation of a SimpleType for use by the xsi Schema.
Field Summary |
Fields inherited from interface org.geotools.xml.schema.SimpleType |
ALL, LIST, NONE, RESTRICTION, UNION |
Constructor Summary | |
protected |
XSISimpleTypes.XSISimpleType()
|
Method Summary | |
boolean |
canCreateAttributes(Attribute attribute,
java.lang.Object value,
java.util.Map hints)
DOCUMENT ME! |
boolean |
canEncode(Element element,
java.lang.Object value,
java.util.Map hints)
Can I write this object out as element specified? |
void |
encode(Element element,
java.lang.Object value,
PrintHandler output,
java.util.Map hints)
Encode value as element on the provided output. |
Element |
findChildElement(java.lang.String name)
Convinience method used to search this type's children for the requested element by localName. |
Element |
findChildElement(XSISimpleTypes.String name)
|
int |
getChildType()
Returns an int of either List, Union or Restriction |
Facet[] |
getFacets()
The list of facets for this Restriction ... |
int |
getFinal()
This specifies a mask which represents how this XML Schema SimpleType may be extended/restricted ... through Schema declared derivations. |
java.lang.String |
getId()
The Schema ID for this simpleType definition. |
static SimpleType |
getInstance()
This method is intended to return an instance of the implemented type. |
java.net.URI |
getNamespace()
This is used for validation of an XML document, and represents the targetNamespace of that this type resides in. |
Type |
getParent()
|
SimpleType[] |
getParents()
A simple simpleType when either a List or Restriction ... |
AttributeValue |
toAttribute(Attribute attribute,
java.lang.Object value,
java.util.Map hints)
returns the value as a string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.xml.schema.Type |
getInstanceType, getName, getValue |
Constructor Detail |
protected XSISimpleTypes.XSISimpleType()
Method Detail |
public Element findChildElement(XSISimpleTypes.String name)
name
-
Type.findChildElement(java.lang.String)
public boolean canCreateAttributes(Attribute attribute, java.lang.Object value, java.util.Map hints)
SimpleType
canCreateAttributes
in interface SimpleType
attribute
- DOCUMENT ME!value
- DOCUMENT ME!hints
- DOCUMENT ME!
SimpleType.canCreateAttributes(org.geotools.xml.schema.Attribute,
java.lang.Object, java.util.Map)
public boolean canEncode(Element element, java.lang.Object value, java.util.Map hints)
Type
canEncode
in interface Type
element
- The element which may be used to represent the Object. This is included to allow for child definitions to include addition information where appropriate.value
- An Object which may or may not be encodeable by this type. The value may also be null.
Type.canEncode(org.geotools.xml.schema.Element,
java.lang.Object, java.util.Map)
public AttributeValue toAttribute(Attribute attribute, java.lang.Object value, java.util.Map hints)
SimpleType
returns the value as a string
toAttribute
in interface SimpleType
attribute
- value
- hints
-
SimpleType.toAttribute(org.geotools.xml.schema.Attribute,
java.lang.Object, java.util.Map)
public void encode(Element element, java.lang.Object value, PrintHandler output, java.util.Map hints) throws java.io.IOException
Type
This is encoding because the PrintHandler does not have to go back to a stream.
encode
in interface Type
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.
java.io.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 static SimpleType getInstance()
This method is intended to return an instance of the implemented type.
java.lang.RuntimeException
- when not overriddenpublic Type getParent()
org.geotools.xml.xsi.Type#getParent()
public java.net.URI getNamespace()
Type
This is used for validation of an XML document, and represents the targetNamespace of that this type resides in.
getNamespace
in interface Type
org.geotools.xml.xsi.Type#getNamespace()
public int getFinal()
SimpleType
This specifies a mask which represents how this XML Schema SimpleType may be extended/restricted ... through Schema declared derivations.
getFinal
in interface SimpleType
org.geotools.xml.xsi.SimpleType#getFinal()
public java.lang.String getId()
SimpleType
The Schema ID for this simpleType definition.
getId
in interface SimpleType
org.geotools.xml.xsi.SimpleType#getId()
public int getChildType()
SimpleType
getChildType
in interface SimpleType
SimpleType.getChildType()
public SimpleType[] getParents()
SimpleType
getParents
in interface SimpleType
SimpleType.getParents()
public Facet[] getFacets()
SimpleType
getFacets
in interface SimpleType
SimpleType.getFacets()
public Element findChildElement(java.lang.String name)
Type
findChildElement
in interface Type
name
- the element's localName to search for.
Type.findChildElement(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |