|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.xml.schema.impl.SimpleTypeGT
DOCUMENT ME!
| Field Summary |
| Fields inherited from interface org.geotools.xml.schema.SimpleType |
ALL, LIST, NONE, RESTRICTION, UNION |
| Constructor Summary | |
SimpleTypeGT(java.lang.String id,
java.lang.String name,
java.net.URI namespace,
int type,
SimpleType[] parents,
Facet[] constraints,
int finaL)
Creates a new SimpleTypeGT object. |
|
| 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 name1)
Convinience method used to search this type's children for the requested element by localName. |
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. |
java.lang.Class |
getInstanceType()
This will return the intended Java Class for this element type. |
java.lang.String |
getName()
This returns the XML Schema declaration name of this type (both complex and simple types have names ...) |
java.net.URI |
getNamespace()
This is used for validation of an XML document, and represents the targetNamespace of that this type resides in. |
SimpleType[] |
getParents()
A simple simpleType when either a List or Restriction ... |
java.lang.Object |
getValue(Element element,
ElementValue[] value,
org.xml.sax.Attributes attrs,
java.util.Map hints)
This method ignores the attributes from the xml node |
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 |
| Constructor Detail |
public SimpleTypeGT(java.lang.String id,
java.lang.String name,
java.net.URI namespace,
int type,
SimpleType[] parents,
Facet[] constraints,
int finaL)
id - DOCUMENT ME!name - DOCUMENT ME!namespace - DOCUMENT ME!type - DOCUMENT ME!parents - DOCUMENT ME!constraints - DOCUMENT ME!finaL - DOCUMENT ME!| Method Detail |
public java.lang.Class getInstanceType()
TypeThis will return the intended Java Class for this element type. For generic complex types this will be an object array. SimpleTypes will match as they are parsed, and custom extensions will also return the appropriate class value.
getInstanceType in interface Typeorg.geotools.xml.xsi.Type#getInstanceType()public Element findChildElement(java.lang.String name1)
Type
findChildElement in interface Typename1 - the element's localName to search for.
Type.findChildElement(java.lang.String)public int getFinal()
SimpleTypeThis specifies a mask which represents how this XML Schema SimpleType may be extended/restricted ... through Schema declared derivations.
getFinal in interface SimpleTypeorg.geotools.xml.xsi.SimpleType#getFinal()public java.lang.String getId()
SimpleTypeThe Schema ID for this simpleType definition.
getId in interface SimpleTypeorg.geotools.xml.xsi.SimpleType#getId()public java.lang.String getName()
TypeThis returns the XML Schema declaration name of this type (both complex and simple types have names ...)
getName in interface Typeorg.geotools.xml.xsi.Type#getName()public java.net.URI getNamespace()
TypeThis is used for validation of an XML document, and represents the targetNamespace of that this type resides in.
getNamespace in interface Typeorg.geotools.xml.xsi.Type#getName()public SimpleType[] getParents()
SimpleType
getParents in interface SimpleTypeorg.geotools.xml.xsi.Type#getParent()
public java.lang.Object getValue(Element element,
ElementValue[] value,
org.xml.sax.Attributes attrs,
java.util.Map hints)
throws javax.naming.OperationNotSupportedException,
org.xml.sax.SAXException
This method ignores the attributes from the xml node
getValue in interface Typeorg.xml.sax.SAXException
javax.naming.OperationNotSupportedExceptionschema.Type#getValue(java.lang.Object, org.xml.sax.Attributes)public int getChildType()
SimpleType
getChildType in interface SimpleTypeSimpleType.getChildType()public Facet[] getFacets()
SimpleType
getFacets in interface SimpleTypeSimpleType.getFacets()
public AttributeValue toAttribute(Attribute attribute,
java.lang.Object value,
java.util.Map hints)
throws javax.naming.OperationNotSupportedException
SimpleTypereturns the value as a string
toAttribute in interface SimpleTypeattribute - value - hints -
javax.naming.OperationNotSupportedExceptionSimpleType.toAttribute(org.geotools.xml.schema.Attribute,
java.lang.Object, java.util.Map)
public boolean canCreateAttributes(Attribute attribute,
java.lang.Object value,
java.util.Map hints)
SimpleType
canCreateAttributes in interface SimpleTypeattribute - 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 Typeelement - 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 void encode(Element element,
java.lang.Object value,
PrintHandler output,
java.util.Map hints)
throws java.io.IOException,
javax.naming.OperationNotSupportedException
TypeThis is encoding because the PrintHandler does not have to go back to a stream.
encode in interface Typeelement - 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.
javax.naming.OperationNotSupportedException - When this type cannot be encoded ... and wasn't checked first.
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)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||