Package eu.bandm.tools.tdom.runtime
Class TypedDTD
- java.lang.Object
-
- eu.bandm.tools.tdom.runtime.TypedDTD
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypedDTD.AbstractElementInfo
Reflection information for a "synthetic" element in the generated code, caused by a "<?tdom abstract ..>
" directive in the underlying DTD.static class
TypedDTD.AttributeInfo
Reflection information for one particular Attribute definition from the DTD.static class
TypedDTD.DTDInfo
Container for all different kinds of reflection info objects.static class
TypedDTD.ElementInfo
Reflection information for one particular Element definition from the DTD.static class
TypedDTD.ImplementationInfo<C>
Reflection information which indicates one(1) particular Java class, which has been generated to implement one(1) particular concept.static class
TypedDTD.NamedImplementationInfo<C>
Reflection information which indicates one(1) particular Java class, generated to implement one(1) particular concept which carries a NamespaceName.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DTD_ENCODING
Encoding for parsing a DTD text file input, currently fixed to "UTF-8".(package private) ErrorHandler
errorHandler
static java.lang.String
ORIGINAL_DTD_RESOURCE_NAME
The name under which the DTD text file must be accessible in directory of generated model class files.
-
Constructor Summary
Constructors Constructor Description TypedDTD(MessageReceiver<? super SimpleMessage> rec)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.xml.sax.ext.Locator2
createLocator()
org.xml.sax.ext.Locator2
createLocator(java.lang.String encoding)
protected static org.w3c.dom.Element
extractSingleton(ContentMapping content)
long
getChecksum()
Returns the CRC checksum of the text contents of the DTD text file used for this tdom model.XMLDocumentIdentifier
getDocumentId()
This is only a default method which ALWAYS will be orverridden !?? bttodo FIXME ??DTD.Dtd
getDTD()
java.lang.String
getDTDSource()
Returns the text contents of the DTD text file used for this tdom model.int
getElementIndex(java.lang.String tagName)
Returns the numeric index of the element with the given tag, as stored in an internal instance ofElementIndex
.ErrorHandler
getErrorHandler()
abstract TypedDTD.DTDInfo
getInterfaceInfo()
Gives access to all reflection info objects.protected void
implementContentModel(java.lang.String tagName)
ContentMapping
parseContent(org.w3c.dom.Element element)
static void
printStatistics()
Prints statistics on parsing time toSystem.err
.void
setErrorHandler(ErrorHandler newErrorHandler)
-
-
-
Field Detail
-
DTD_ENCODING
public static final java.lang.String DTD_ENCODING
Encoding for parsing a DTD text file input, currently fixed to "UTF-8".- See Also:
- Constant Field Values
-
ORIGINAL_DTD_RESOURCE_NAME
public static final java.lang.String ORIGINAL_DTD_RESOURCE_NAME
The name under which the DTD text file must be accessible in directory of generated model class files.- See Also:
- Constant Field Values
-
errorHandler
ErrorHandler errorHandler
-
-
Constructor Detail
-
TypedDTD
public TypedDTD(MessageReceiver<? super SimpleMessage> rec)
-
-
Method Detail
-
getErrorHandler
public ErrorHandler getErrorHandler()
-
setErrorHandler
public void setErrorHandler(ErrorHandler newErrorHandler)
-
getDTD
public final DTD.Dtd getDTD()
-
getDTDSource
public final java.lang.String getDTDSource()
Returns the text contents of the DTD text file used for this tdom model.
-
getChecksum
public final long getChecksum()
Returns the CRC checksum of the text contents of the DTD text file used for this tdom model.
-
getDocumentId
public XMLDocumentIdentifier getDocumentId()
This is only a default method which ALWAYS will be orverridden !?? bttodo FIXME ??
-
getElementIndex
public final int getElementIndex(java.lang.String tagName)
Returns the numeric index of the element with the given tag, as stored in an internal instance ofElementIndex
.
-
implementContentModel
protected final void implementContentModel(java.lang.String tagName)
-
extractSingleton
protected static final org.w3c.dom.Element extractSingleton(ContentMapping content)
-
parseContent
public final ContentMapping parseContent(org.w3c.dom.Element element)
-
printStatistics
public static void printStatistics()
Prints statistics on parsing time toSystem.err
.
-
createLocator
public org.xml.sax.ext.Locator2 createLocator()
-
createLocator
public org.xml.sax.ext.Locator2 createLocator(java.lang.String encoding)
-
getInterfaceInfo
public abstract TypedDTD.DTDInfo getInterfaceInfo()
Gives access to all reflection info objects.
-
-