|
|||||||||||
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
Support for writing Translators.
Field Summary | |
protected org.xml.sax.ContentHandler |
contentHandler
|
protected org.xml.sax.helpers.NamespaceSupport |
nsSupport
|
protected org.xml.sax.Attributes |
NULL_ATTS
|
protected boolean |
running
Subclasses should check this flag in case an abort message was sent and stop any internal iteration if false. |
protected TransformerBase.SchemaLocationSupport |
schemaLocation
|
Constructor Summary | |
TransformerBase.TranslatorSupport(org.xml.sax.ContentHandler contentHandler,
java.lang.String prefix,
java.lang.String nsURI)
|
|
TransformerBase.TranslatorSupport(org.xml.sax.ContentHandler contentHandler,
java.lang.String prefix,
java.lang.String nsURI,
TransformerBase.SchemaLocationSupport schemaLocation)
|
Method Summary | |
void |
abort()
Abort any translating activity. |
protected void |
addNamespaceDeclarations(TransformerBase.TranslatorSupport trans)
Utility method to copy namespace declarations from "sub" translators into this ns support... |
protected void |
chars(java.lang.String text)
|
protected void |
element(java.lang.String element,
java.lang.String content)
|
protected void |
element(java.lang.String element,
java.lang.String content,
org.xml.sax.Attributes atts)
|
protected void |
end(java.lang.String element)
|
java.lang.String |
getDefaultNamespace()
Get the default URI used by this Translator for encoding. |
java.lang.String |
getDefaultPrefix()
Get the default prefix used by this Translator for encoding. |
org.xml.sax.helpers.NamespaceSupport |
getNamespaceSupport()
Obtain the namespace prefixes and URIs to be included in the output document. |
TransformerBase.SchemaLocationSupport |
getSchemaLocationSupport()
Gets the location of the schemas used in this translator. |
protected void |
start(java.lang.String element)
|
protected void |
start(java.lang.String element,
org.xml.sax.Attributes atts)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.xml.transform.Translator |
encode |
Field Detail |
protected final org.xml.sax.ContentHandler contentHandler
protected final org.xml.sax.Attributes NULL_ATTS
protected org.xml.sax.helpers.NamespaceSupport nsSupport
protected TransformerBase.SchemaLocationSupport schemaLocation
protected volatile boolean running
Constructor Detail |
public TransformerBase.TranslatorSupport(org.xml.sax.ContentHandler contentHandler, java.lang.String prefix, java.lang.String nsURI)
public TransformerBase.TranslatorSupport(org.xml.sax.ContentHandler contentHandler, java.lang.String prefix, java.lang.String nsURI, TransformerBase.SchemaLocationSupport schemaLocation)
Method Detail |
public void abort()
Translator
abort
in interface Translator
protected void addNamespaceDeclarations(TransformerBase.TranslatorSupport trans)
protected void element(java.lang.String element, java.lang.String content)
protected void element(java.lang.String element, java.lang.String content, org.xml.sax.Attributes atts)
protected void start(java.lang.String element)
protected void start(java.lang.String element, org.xml.sax.Attributes atts)
protected void chars(java.lang.String text)
protected void end(java.lang.String element)
public java.lang.String getDefaultNamespace()
Translator
getDefaultNamespace
in interface Translator
public java.lang.String getDefaultPrefix()
Translator
getDefaultPrefix
in interface Translator
public org.xml.sax.helpers.NamespaceSupport getNamespaceSupport()
Translator
getNamespaceSupport
in interface Translator
public TransformerBase.SchemaLocationSupport getSchemaLocationSupport()
Translator
getSchemaLocationSupport
in interface Translator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |