|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTransformerBase.TranslatorSupport
FeatureTypeTransformer.FeatureTypeTranslator
public static class FeatureTypeTransformer.FeatureTypeTranslator
A FeatureTypeTranslator encodes FeatureTypes as a (hopefully) valid XML schema.
TransformerBase.TranslatorSupport
Field Summary |
---|
Fields inherited from class TransformerBase.TranslatorSupport |
---|
contentHandler, nsSupport, NULL_ATTS, running, schemaLocation |
Constructor Summary | |
---|---|
FeatureTypeTransformer.FeatureTypeTranslator(ContentHandler handler)
Creates a new FeatureTypeTranslator. |
Method Summary | |
---|---|
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. |
Methods inherited from class TransformerBase.TranslatorSupport |
---|
abort, addNamespaceDeclarations, cdata, chars, createAttributes, element, element, elementSafe, end, getDefaultNamespace, getDefaultPrefix, getNamespaceSupport, getSchemaLocationSupport, start, start |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureTypeTransformer.FeatureTypeTranslator(ContentHandler handler)
handler
- the content handler that receives the SAX eventsMethod Detail |
---|
public 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 encode
RuntimeException
- 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 encode
SAXException
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
retrieved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |