| Modifier and Type | Class and Description |
|---|---|
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final BindInfo | bindInfo
binding information. |
| private static final Map | builtinConversions
Transducers for the built-in types. |
| private final CodeModelClassFactory | |
| private final Map | elements
Element name to its content model definition. |
| private final EntityResolver | |
| private final ErrorReceiverFilter | |
| private Locator | |
| pack-priv final Model | |
| private final Stack |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | attributeDecl(String elementName, String attributeName, String attributeType, String[] enumeration, short attributeUse, String defaultValue)
Overrides com. Implements com. For each entry in an ATTLIST declaration, this event will be fired. |
| public void | childElement(String elementName, short occurrence)
Overrides com. Implements com.
|
| public void | connector(short connectorType)
Overrides com. Implements com. Connectors in one model group is guaranteed to be the same. |
| private Locator | |
| protected CPropertyInfo | |
| public void | endContentModel(String elementName, short contentModelType)
Overrides com. Implements com. receives notification that parsing of content model is finished. |
| public void | endDTD()
Overrides com. Implements com. Receive notification of the end of a DTD. |
| public void | endModelGroup(short occurrence)
Overrides com. Implements com.
|
| public void | error(SAXParseException e)
Overrides com. Implements com.
|
| protected final void | |
| public void | |
| pack-priv Element | |
| pack-priv JPackage | |
| public static Model | parse(InputSource dtd, InputSource
binding information file, if any. Can be null. bindingInfo, ErrorReceiver errorReceiver, Options opts)Parses DTD grammar and a binding information into BGM. |
| private void | processConstructorDeclarations()
Creates constructor declarations as specified in the binding information. |
| private void | |
| public void | |
| public void | startContentModel(String elementName, short contentModelType)
Overrides com. Implements com. receives notification that parsing of content model is beginning. |
| public void | startDTD(InputEntity entity)
Overrides com. Implements com. Receive notification of the beginning of the DTD. |
| public void | |
| public void |
| bindInfo | back to summary |
|---|---|
| pack-priv final BindInfo bindInfo binding information. This is always non-null even if no binding information was specified. (In that case, a dummy object will be provided.) | |
| builtinConversions | back to summary |
|---|---|
| private static final Map<String, TypeUse> builtinConversions Transducers for the built-in types. Read-only. | |
| classFactory | back to summary |
|---|---|
| private final CodeModelClassFactory classFactory | |
| elements | back to summary |
|---|---|
| private final Map<String, Element> elements Element name to its content model definition. | |
| entityResolver | back to summary |
|---|---|
| private final EntityResolver entityResolver | |
| errorReceiver | back to summary |
|---|---|
| private final ErrorReceiverFilter errorReceiver | |
| locator | back to summary |
|---|---|
| private Locator locator Mutable
Use | |
| model | back to summary |
|---|---|
| pack-priv final Model model | |
| modelGroups | back to summary |
|---|---|
| private final Stack<ModelGroup> modelGroups | |
| TDTDReader | back to summary |
|---|---|
| protected TDTDReader(ErrorReceiver errorReceiver, Options opts, InputSource _bindInfo) throws AbortException | |
| attributeDecl | back to summary |
|---|---|
| public void attributeDecl(String elementName, String attributeName, String attributeType, String[] enumeration, short attributeUse, String defaultValue) throws SAXException Overrides com. Implements com. Doc from com. For each entry in an ATTLIST declaration, this event will be fired. DTD allows the same attributes to be declared more than once, and in that case the first one wins. I think this method will be only fired for the first one, but I need to check.
| |
| childElement | back to summary |
|---|---|
| public void childElement(String elementName, short occurrence) throws SAXException Overrides com. Implements com.
| |
| connector | back to summary |
|---|---|
| public void connector(short connectorType) throws SAXException Overrides com. Implements com. Doc from com. Connectors in one model group is guaranteed to be the same. IOW, you'll never see an event sequence like (a|b,c)
| |
| copyLocator | back to summary |
|---|---|
| private Locator copyLocator() Creates a snapshot of the current | |
| createAttribute | back to summary |
|---|---|
| protected CPropertyInfo createAttribute(String elementName, String attributeName, String attributeType, String[] enums, short attributeUse, String defaultValue) throws SAXException | |
| endContentModel | back to summary |
|---|---|
| public void endContentModel(String elementName, short contentModelType) throws SAXException Overrides com. Implements com. Doc from com. receives notification that parsing of content model is finished.
| |
| endDTD | back to summary |
|---|---|
| public void endDTD() throws SAXException Overrides com. Implements com. Doc from com. Receive notification of the end of a DTD. The parser will invoke this method only once.
| |
| endModelGroup | back to summary |
|---|---|
| public void endModelGroup(short occurrence) throws SAXException Overrides com. Implements com.
| |
| error | back to summary |
|---|---|
| public void error(SAXParseException e) throws SAXException Overrides com. Implements com.
| |
| error | back to summary |
|---|---|
| protected final void error(Locator loc, String prop, Object... args) | |
| fatalError | back to summary |
|---|---|
| public void fatalError(SAXParseException e) throws SAXException Overrides com. Implements com.
| |
| getOrCreateElement | back to summary |
|---|---|
| pack-priv Element getOrCreateElement(String elementName) | |
| getTargetPackage | back to summary |
|---|---|
| pack-priv JPackage getTargetPackage() | |
| parse | back to summary |
|---|---|
| public static Model parse(InputSource dtd, InputSource bindingInfo, ErrorReceiver errorReceiver, Options opts) Parses DTD grammar and a binding information into BGM. This method is just a utility method that covers 80% of the use cases.
| |
| processConstructorDeclarations | back to summary |
|---|---|
| private void processConstructorDeclarations() Creates constructor declarations as specified in the binding information. Also checks that the binding file does not contain declarations for non-existent elements. | |
| processInterfaceDeclarations | back to summary |
|---|---|
| private void processInterfaceDeclarations() Processes interface declarations. | |
| setDocumentLocator | back to summary |
|---|---|
| public void setDocumentLocator(Locator loc) Overrides com. Implements com.
| |
| startContentModel | back to summary |
|---|---|
| public void startContentModel(String elementName, short contentModelType) throws SAXException Overrides com. Implements com. Doc from com. receives notification that parsing of content model is beginning.
| |
| startDTD | back to summary |
|---|---|
| public void startDTD(InputEntity entity) throws SAXException Overrides com. Implements com. Doc from com. Receive notification of the beginning of the DTD.
| |
| startModelGroup | back to summary |
|---|---|
| public void startModelGroup() throws SAXException Overrides com. Implements com.
| |
| warning | back to summary |
|---|---|
| public void warning(SAXParseException e) throws SAXException Overrides com. Implements com.
| |
| implement | back to summary |
|---|---|
| public void implement(JClass c) | |