|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.xml.transform.TransformerBase.TranslatorSupport org.geotools.gml.producer.FeatureTypeTransformer.FeatureTypeTranslator
A FeatureTypeTranslator encodes FeatureTypes as a (hopefully) valid XML schema.
TransformerBase.TranslatorSupport
Field Summary |
Fields inherited from class org.geotools.xml.transform.TransformerBase.TranslatorSupport |
contentHandler, nsSupport, NULL_ATTS, running, schemaLocation |
Constructor Summary | |
FeatureTypeTransformer.FeatureTypeTranslator(org.xml.sax.ContentHandler handler)
Creates a new FeatureTypeTranslator. |
Method Summary | |
protected org.xml.sax.helpers.AttributesImpl |
createStandardAttributes(AttributeType attribute)
Creates standard xml attributes present on all xs:element elements. |
protected void |
encode(AttributeType attribute)
Encode an AttributeType. |
protected void |
encode(FeatureType type)
Encode the supplied feature type. |
void |
encode(java.lang.Object o)
Encode object o, which must be an instance of FeatureType. |
protected void |
encodeBoolean(AttributeType attribute)
Encode an AttributeType whose value type is a Boolean. |
protected void |
encodeDate(AttributeType attribute)
Encode an AttributeType whose value type is a Date. |
protected void |
encodeGeometry(AttributeType attribute)
Encode an AttributeType whose value type is a Geometry. |
protected void |
encodeNumber(AttributeType attribute)
Encode an AttributeType whose value type is a Number. |
protected void |
encodeString(AttributeType attribute)
Encode an AttributeType whose value type is a String. |
protected void |
endSchemaType()
End the schema fragment for a feature type. |
protected void |
startSchemaType(java.lang.String name,
java.net.URI namespace)
Start the schema fragment for a feature type. |
Methods inherited from class org.geotools.xml.transform.TransformerBase.TranslatorSupport |
abort, addNamespaceDeclarations, chars, element, element, end, getDefaultNamespace, getDefaultPrefix, getNamespaceSupport, getSchemaLocationSupport, start, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FeatureTypeTransformer.FeatureTypeTranslator(org.xml.sax.ContentHandler handler)
handler
- the content handler that receives the SAX eventsMethod Detail |
public void encode(java.lang.Object o) throws java.lang.IllegalArgumentException
o
- DOCUMENT ME!
java.lang.IllegalArgumentException
- if supplied object is not an
instance of FeatureTypeTranslator.encode(java.lang.Object)
protected void encode(FeatureType type)
type
- the feature type to encode
java.lang.RuntimeException
- DOCUMENT ME!protected void startSchemaType(java.lang.String name, java.net.URI namespace) throws org.xml.sax.SAXException
name
- namespace
- DOCUMENT ME!
org.xml.sax.SAXException
protected void endSchemaType() throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void encode(AttributeType attribute) throws org.xml.sax.SAXException
attribute
-
org.xml.sax.SAXException
java.lang.RuntimeException
- DOCUMENT ME!protected void encodeBoolean(AttributeType attribute) throws org.xml.sax.SAXException
attribute
-
org.xml.sax.SAXException
protected void encodeString(AttributeType attribute) throws org.xml.sax.SAXException
attribute
- the attribute to encode
org.xml.sax.SAXException
protected void encodeNumber(AttributeType attribute) throws org.xml.sax.SAXException
attribute
-
org.xml.sax.SAXException
java.lang.RuntimeException
- DOCUMENT ME!protected void encodeDate(AttributeType attribute) throws org.xml.sax.SAXException
attribute
-
org.xml.sax.SAXException
protected void encodeGeometry(AttributeType attribute) throws org.xml.sax.SAXException
attribute
-
org.xml.sax.SAXException
java.lang.RuntimeException
- DOCUMENT ME!protected org.xml.sax.helpers.AttributesImpl createStandardAttributes(AttributeType attribute)
attribute
- the attribute type from which the information is
retrieved
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |