| java.lang.Object net.n3.nanoxml.NonValidator
NonValidator | public class NonValidator implements IXMLValidator(Code) | | NonValidator is a concrete implementation of IXMLValidator which processes
the DTD and handles entity definitions. It does not do any validation
itself.
author: Marc De Scheemaecker version: $Name: RELEASE_2_2_1 $, $Revision: 1.4 $ |
Constructor Summary | |
public | NonValidator() Creates the "validator". |
Method Summary | |
public void | PCDataAdded(String systemId, int lineNr) Indicates that a new #PCDATA element has been encountered. | public void | attributeAdded(String key, String value, String systemId, int lineNr) Indicates that an attribute has been added to the current element. | public void | elementAttributesProcessed(String name, Properties extraAttributes, String systemId, int lineNr) This method is called when the attributes of an XML element have been
processed. | public void | elementEnded(String name, String systemId, int lineNr) Indicates that the current element has ended. | public void | elementStarted(String name, String systemId, int lineNr) Indicates that an element has been started. | protected void | finalize() Cleans up the object when it's destroyed. | public IXMLEntityResolver | getParameterEntityResolver() Returns the parameter entity resolver. | public void | parseDTD(String publicID, IXMLReader reader, IXMLEntityResolver entityResolver, boolean external) Parses the DTD. | protected void | processAttList(IXMLReader reader, IXMLEntityResolver entityResolver) Processes an ATTLIST element. | protected void | processConditionalSection(IXMLReader reader, IXMLEntityResolver entityResolver) Processes a conditional section. | protected void | processElement(IXMLReader reader, IXMLEntityResolver entityResolver) Processes an element in the DTD. | protected void | processEntity(IXMLReader reader, IXMLEntityResolver entityResolver) Processes an ENTITY element. | protected void | processIgnoreSection(IXMLReader reader, IXMLEntityResolver entityResolver) Processes an ignore section. | public void | setParameterEntityResolver(IXMLEntityResolver resolver) Sets the parameter entity resolver. |
attributeDefaultValues | protected Hashtable attributeDefaultValues(Code) | | Contains the default values for attributes for the different element
types.
|
currentElements | protected Stack currentElements(Code) | | The stack of elements to be processed.
|
NonValidator | public NonValidator()(Code) | | Creates the "validator".
|
PCDataAdded | public void PCDataAdded(String systemId, int lineNr)(Code) | | Indicates that a new #PCDATA element has been encountered.
Parameters: systemId - the system ID of the XML data of the element. Parameters: lineNr - the line number in the XML data of the element. |
attributeAdded | public void attributeAdded(String key, String value, String systemId, int lineNr)(Code) | | Indicates that an attribute has been added to the current element.
Parameters: key - the name of the attribute. Parameters: value - the value of the attribute. Parameters: systemId - the system ID of the XML data of the element. Parameters: lineNr - the line number in the XML data of the element. |
elementAttributesProcessed | public void elementAttributesProcessed(String name, Properties extraAttributes, String systemId, int lineNr)(Code) | | This method is called when the attributes of an XML element have been
processed.
If there are attributes with a default value which have not been
specified yet, they have to be put into extraAttributes.
Parameters: name - the name of the element. Parameters: extraAttributes - where to put extra attributes. Parameters: systemId - the system ID of the XML data of the element. Parameters: lineNr - the line number in the XML data of the element. |
elementEnded | public void elementEnded(String name, String systemId, int lineNr)(Code) | | Indicates that the current element has ended.
Parameters: name - the name of the element. Parameters: systemId - the system ID of the XML data of the element. Parameters: lineNr - the line number in the XML data of the element. |
elementStarted | public void elementStarted(String name, String systemId, int lineNr)(Code) | | Indicates that an element has been started.
Parameters: name - the name of the element. Parameters: systemId - the system ID of the XML data of the element. Parameters: lineNr - the line number in the XML data of the element. |
finalize | protected void finalize() throws Throwable(Code) | | Cleans up the object when it's destroyed.
|
getParameterEntityResolver | public IXMLEntityResolver getParameterEntityResolver()(Code) | | Returns the parameter entity resolver.
the entity resolver. |
parseDTD | public void parseDTD(String publicID, IXMLReader reader, IXMLEntityResolver entityResolver, boolean external) throws Exception(Code) | | Parses the DTD. The validator object is responsible for reading the
full DTD.
Parameters: publicID - the public ID, which may be null. Parameters: reader - the reader to read the DTD from. Parameters: entityResolver - the entity resolver. Parameters: external - true if the DTD is external. throws: java.lang.Exception - If something went wrong. |
processConditionalSection | protected void processConditionalSection(IXMLReader reader, IXMLEntityResolver entityResolver) throws Exception(Code) | | Processes a conditional section.
Parameters: reader - the reader to read data from. Parameters: entityResolver - the entity resolver. throws: java.lang.Exception - If something went wrong. |
processIgnoreSection | protected void processIgnoreSection(IXMLReader reader, IXMLEntityResolver entityResolver) throws Exception(Code) | | Processes an ignore section.
Parameters: reader - the reader to read data from. Parameters: entityResolver - the entity resolver. throws: java.lang.Exception - If something went wrong. |
setParameterEntityResolver | public void setParameterEntityResolver(IXMLEntityResolver resolver)(Code) | | Sets the parameter entity resolver.
Parameters: resolver - the entity resolver. |
|
|