public static class FeatureTypeTransformer.FeatureTypeTranslator extends TransformerBase.TranslatorSupport
TransformerBase.TranslatorSupport
contentHandler, 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, start
public FeatureTypeTranslator(ContentHandler handler)
handler
- the content handler that receives the SAX eventspublic void encode(Object o) throws IllegalArgumentException
o
- DOCUMENT ME!IllegalArgumentException
- if supplied object is not an instance of FeatureTypeTranslator.encode(java.lang.Object)
protected void encode(SimpleFeatureType type)
type
- the feature type to encodeRuntimeException
- DOCUMENT ME!protected final void startSchemaType(String name, String namespace) throws SAXException
name
- namespace
- DOCUMENT ME!SAXException
protected void endSchemaType() throws SAXException
SAXException
protected void encode(AttributeDescriptor attribute) throws SAXException
attribute
- SAXException
RuntimeException
- DOCUMENT ME!protected void encodeBoolean(AttributeDescriptor attribute) throws SAXException
attribute
- SAXException
protected void encodeString(AttributeDescriptor attribute) throws SAXException
attribute
- the attribute to encodeSAXException
protected void encodeNumber(AttributeDescriptor attribute) throws SAXException
attribute
- SAXException
RuntimeException
- DOCUMENT ME!protected void encodeDate(AttributeDescriptor attribute) throws SAXException
attribute
- SAXException
protected void encodeGeometry(AttributeDescriptor attribute) throws SAXException
attribute
- SAXException
RuntimeException
- DOCUMENT ME!protected AttributesImpl createStandardAttributes(AttributeDescriptor attribute)
attribute
- the attribute type from which the information is retrievedCopyright © 1996–2019 Geotools. All rights reserved.