Package org.geotools.xml.transform
Interface Translator
- 
- All Known Implementing Classes:
- FeatureTransformer.FeatureTranslator,- FeatureTypeTransformer.FeatureTypeTranslator,- FilterTransformer.FilterTranslator,- GeometryTransformer.GeometryTranslator,- TransformerBase.TranslatorSupport
 
 public interface TranslatorA Translator is used in an XMLEncoding process by the FeatureTransformer class.- Author:
- Ian Schneider
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidabort()Abort any translating activity.voidencode(Object o)Encode the object.StringgetDefaultNamespace()Get the default URI used by this Translator for encoding.StringgetDefaultPrefix()Get the default prefix used by this Translator for encoding.NamespaceSupportgetNamespaceSupport()Obtain the namespace prefixes and URIs to be included in the output document.TransformerBase.SchemaLocationSupportgetSchemaLocationSupport()Gets the location of the schemas used in this translator.
 
- 
- 
- 
Method Detail- 
getNamespaceSupportNamespaceSupport getNamespaceSupport() Obtain the namespace prefixes and URIs to be included in the output document.- Returns:
- An instance of NamespaceSupport.
 
 - 
getDefaultNamespaceString getDefaultNamespace() Get the default URI used by this Translator for encoding. Optional.
 - 
getDefaultPrefixString getDefaultPrefix() Get the default prefix used by this Translator for encoding. Optional.
 - 
encodevoid encode(Object o) throws IllegalArgumentException Encode the object.- Parameters:
- o- The Object to encode.
- Throws:
- IllegalArgumentException- if the Object is not encodeable.
 
 - 
getSchemaLocationSupportTransformerBase.SchemaLocationSupport getSchemaLocationSupport() Gets the location of the schemas used in this translator. Optional.
 - 
abortvoid abort() Abort any translating activity. This is needed as some translators iterate internally on a data structure. The abort method should silently fail or succeed based upon the state of a translation.
 
- 
 
-