public static class FeatureTypeTransformer.FeatureTypeTranslator extends TransformerBase.TranslatorSupport
TransformerBase.TranslatorSupportcontentHandler, nsSupport, NULL_ATTS, running, schemaLocation| Constructor and Description |
|---|
FeatureTypeTranslator(ContentHandler handler)
Creates a new FeatureTypeTranslator.
|
| Modifier and Type | Method and Description |
|---|---|
protected AttributesImpl |
createStandardAttributes(AttributeDescriptor attribute)
Creates standard xml attributes present on all xs:element elements.
|
protected void |
encode(AttributeDescriptor attribute)
Encode an AttributeType.
|
void |
encode(Object o)
Encode object o, which must be an instance of FeatureType.
|
protected void |
encode(SimpleFeatureType type)
Encode the supplied feature type.
|
protected void |
encodeBoolean(AttributeDescriptor attribute)
Encode an AttributeType whose value type is a Boolean.
|
protected void |
encodeDate(AttributeDescriptor attribute)
Encode an AttributeType whose value type is a Date.
|
protected void |
encodeGeometry(AttributeDescriptor attribute)
Encode an AttributeType whose value type is a Geometry.
|
protected void |
encodeNumber(AttributeDescriptor attribute)
Encode an AttributeType whose value type is a Number.
|
protected void |
encodeString(AttributeDescriptor attribute)
Encode an AttributeType whose value type is a String.
|
protected void |
endSchemaType()
End the schema fragment for a feature type.
|
protected void |
startSchemaType(String name,
String namespace)
Start the schema fragment for a feature type.
|
abort, addNamespaceDeclarations, cdata, chars, comment, commit, createAttributes, element, element, elementSafe, end, getDefaultNamespace, getDefaultPrefix, getNamespaceSupport, getSchemaLocationSupport, mark, reset, start, startpublic FeatureTypeTranslator(ContentHandler handler)
handler - the content handler that receives the SAX eventspublic void encode(Object o) throws IllegalArgumentException
o - The Object to encode.IllegalArgumentException - if supplied object is not an instance of FeatureTypeTranslator.encode(java.lang.Object)protected void encode(SimpleFeatureType type)
type - the feature type to encodeprotected final void startSchemaType(String name, String namespace) throws SAXException
SAXExceptionprotected void endSchemaType()
throws SAXException
SAXExceptionprotected void encode(AttributeDescriptor attribute) throws SAXException
SAXExceptionprotected void encodeBoolean(AttributeDescriptor attribute) throws SAXException
SAXExceptionprotected void encodeString(AttributeDescriptor attribute) throws SAXException
attribute - the attribute to encodeSAXExceptionprotected void encodeNumber(AttributeDescriptor attribute) throws SAXException
SAXExceptionprotected void encodeDate(AttributeDescriptor attribute) throws SAXException
SAXExceptionprotected void encodeGeometry(AttributeDescriptor attribute) throws SAXException
SAXExceptionprotected AttributesImpl createStandardAttributes(AttributeDescriptor attribute)
attribute - the attribute type from which the information is retrievedCopyright © 1996–2021 Geotools. All rights reserved.