public class NonValidator extends Object implements IXMLValidator
| Modifier and Type | Field and Description |
|---|---|
protected Hashtable |
attributeDefaultValues
Contains the default values for attributes for the different element
types.
|
protected Stack |
currentElements
The stack of elements to be processed.
|
protected IXMLEntityResolver |
parameterEntityResolver
The parameter entity resolver.
|
| Constructor and Description |
|---|
NonValidator()
Creates the "validator".
|
| Modifier and Type | Method and Description |
|---|---|
void |
attributeAdded(String key,
String value,
String systemId,
int lineNr)
Indicates that an attribute has been added to the current element.
|
void |
elementAttributesProcessed(String name,
Properties extraAttributes,
String systemId,
int lineNr)
This method is called when the attributes of an XML element have been
processed.
|
void |
elementEnded(String name,
String systemId,
int lineNr)
Indicates that the current element has ended.
|
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.
|
IXMLEntityResolver |
getParameterEntityResolver()
Returns the parameter entity resolver.
|
void |
parseDTD(String publicID,
IXMLReader reader,
IXMLEntityResolver entityResolver,
boolean external)
Parses the DTD.
|
void |
PCDataAdded(String systemId,
int lineNr)
Indicates that a new #PCDATA element has been encountered.
|
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.
|
void |
setParameterEntityResolver(IXMLEntityResolver resolver)
Sets the parameter entity resolver.
|
protected IXMLEntityResolver parameterEntityResolver
protected Hashtable attributeDefaultValues
protected Stack currentElements
protected void finalize()
throws Throwable
public void setParameterEntityResolver(IXMLEntityResolver resolver)
setParameterEntityResolver in interface IXMLValidatorresolver - the entity resolver.public IXMLEntityResolver getParameterEntityResolver()
getParameterEntityResolver in interface IXMLValidatorpublic void parseDTD(String publicID, IXMLReader reader, IXMLEntityResolver entityResolver, boolean external) throws Exception
parseDTD in interface IXMLValidatorpublicID - the public ID, which may be null.reader - the reader to read the DTD from.entityResolver - the entity resolver.external - true if the DTD is external.Exception - If something went wrong.protected void processElement(IXMLReader reader, IXMLEntityResolver entityResolver) throws Exception
reader - the reader to read data from.entityResolver - the entity resolver.Exception - If something went wrong.protected void processConditionalSection(IXMLReader reader, IXMLEntityResolver entityResolver) throws Exception
reader - the reader to read data from.entityResolver - the entity resolver.Exception - If something went wrong.protected void processIgnoreSection(IXMLReader reader, IXMLEntityResolver entityResolver) throws Exception
reader - the reader to read data from.entityResolver - the entity resolver.Exception - If something went wrong.protected void processAttList(IXMLReader reader, IXMLEntityResolver entityResolver) throws Exception
reader - the reader to read data from.entityResolver - the entity resolver.Exception - If something went wrong.protected void processEntity(IXMLReader reader, IXMLEntityResolver entityResolver) throws Exception
reader - the reader to read data from.entityResolver - the entity resolver.Exception - If something went wrong.public void elementStarted(String name, String systemId, int lineNr)
elementStarted in interface IXMLValidatorname - the name of the element.systemId - the system ID of the XML data of the element.lineNr - the line number in the XML data of the element.public void elementEnded(String name, String systemId, int lineNr)
elementEnded in interface IXMLValidatorname - the name of the element.systemId - the system ID of the XML data of the element.lineNr - the line number in the XML data of the element.public void elementAttributesProcessed(String name, Properties extraAttributes, String systemId, int lineNr)
elementAttributesProcessed in interface IXMLValidatorname - the name of the element.extraAttributes - where to put extra attributes.systemId - the system ID of the XML data of the element.lineNr - the line number in the XML data of the element.public void attributeAdded(String key, String value, String systemId, int lineNr)
attributeAdded in interface IXMLValidatorkey - the name of the attribute.value - the value of the attribute.systemId - the system ID of the XML data of the element.lineNr - the line number in the XML data of the element.public void PCDataAdded(String systemId, int lineNr)
PCDataAdded in interface IXMLValidatorsystemId - the system ID of the XML data of the element.lineNr - the line number in the XML data of the element.