|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
tomp.xml.type.TypeDatabaseImpl
Field Summary | |
protected MultiFilterTypeTransformation |
currentMultiTransformation
|
protected java.lang.String |
currentSource
|
protected Type |
currentSrcType
|
protected java.lang.String |
currentTarget
|
protected Type |
currentTargetType
|
protected TypeTransformation |
currentTransformation
|
protected Type |
currentType
|
protected Variant |
currentVariant
|
protected java.util.Map |
doctype2type
|
protected java.util.Map |
identification2type
|
protected TypeDatabase |
parentDatabase
parent type database. |
protected java.util.Map |
root2type
|
protected Transformations |
transformations
|
protected XTFilterFactory |
xff
|
Constructor Summary | |
TypeDatabaseImpl()
|
Method Summary | |
void |
addTransformation(Type source,
Type target,
Variant variant,
TypeTransformation tt)
implementation of transformation info storage |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Filter an end element event. |
TypeDatabase |
getParent()
|
javax.xml.transform.Result |
getResult()
|
TypeTransformation |
getTransformation(Type source,
Type target,
Variant variant)
|
Transformations |
getTransformations()
|
java.util.List |
getTransformationSequence(Type source,
Type target,
Variant variant)
|
Type |
getType(java.lang.String id)
|
Type |
getTypeForDoctype(java.lang.String name,
java.lang.String dtPublic,
java.lang.String dtSystem)
|
Type |
getTypeForRootElement(java.lang.String ns,
java.lang.String localName)
implementation of type info storage |
int |
getTypesCount()
|
void |
characters(char[] ch,
int start,
int length)
Filter a character data event. |
TypeTransformation |
newTransformationForFilterClassName(java.lang.String fn)
|
TypeTransformation |
newTransformationForSTXStyleSystemId(java.lang.String ssi)
|
TypeTransformation |
newTransformationForStyleSystemId(java.lang.String ssi)
|
void |
setParent(TypeDatabase td)
|
void |
setXTFilterFactory(XTFilterFactory x)
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Filter a start element event. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected XTFilterFactory xff
protected TypeDatabase parentDatabase
protected Type currentType
protected Type currentSrcType
protected Type currentTargetType
protected java.lang.String currentSource
protected java.lang.String currentTarget
protected TypeTransformation currentTransformation
protected MultiFilterTypeTransformation currentMultiTransformation
protected Variant currentVariant
protected java.util.Map identification2type
protected java.util.Map root2type
protected java.util.Map doctype2type
protected Transformations transformations
Constructor Detail |
public TypeDatabaseImpl()
Method Detail |
public void setXTFilterFactory(XTFilterFactory x)
public TypeDatabase getParent()
public void setParent(TypeDatabase td)
public javax.xml.transform.Result getResult()
getResult
in interface HasResult
public int getTypesCount()
public Transformations getTransformations()
getTransformations
in interface TypeDatabase
public void addTransformation(Type source, Type target, Variant variant, TypeTransformation tt)
addTransformation
in interface TypeDatabase
public TypeTransformation getTransformation(Type source, Type target, Variant variant)
getTransformation
in interface TypeDatabase
public Type getTypeForRootElement(java.lang.String ns, java.lang.String localName)
getTypeForRootElement
in interface TypeDatabase
public Type getTypeForDoctype(java.lang.String name, java.lang.String dtPublic, java.lang.String dtSystem)
getTypeForDoctype
in interface TypeDatabase
public Type getType(java.lang.String id)
getType
in interface TypeDatabase
public TypeTransformation newTransformationForFilterClassName(java.lang.String fn) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
newTransformationForFilterClassName
in interface TypeTransformationFactory
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public TypeTransformation newTransformationForStyleSystemId(java.lang.String ssi) throws javax.xml.transform.TransformerConfigurationException
newTransformationForStyleSystemId
in interface TypeTransformationFactory
javax.xml.transform.TransformerConfigurationException
public TypeTransformation newTransformationForSTXStyleSystemId(java.lang.String ssi) throws javax.xml.transform.TransformerConfigurationException
newTransformationForSTXStyleSystemId
in interface TypeTransformationFactory
javax.xml.transform.TransformerConfigurationException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
uri
- The element's Namespace URI, or the empty string.localName
- The element's local name, or the empty string.qName
- The element's qualified (prefixed) name, or the empty
string.atts
- The element's attributes.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
uri
- The element's Namespace URI, or the empty string.localName
- The element's local name, or the empty string.qName
- The element's qualified (prefixed) name, or the empty
string.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
ch
- An array of characters.start
- The starting position in the array.length
- The number of characters to use from the array.
org.xml.sax.SAXException
- The client may throw
an exception during processing.public java.util.List getTransformationSequence(Type source, Type target, Variant variant)
getTransformationSequence
in interface TypeDatabase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |