|
JHotDraw 7.5.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IXMLValidator
IXMLValidator processes the DTD and handles entity references.
Method Summary | |
---|---|
void |
attributeAdded(java.lang.String key,
java.lang.String value,
java.lang.String systemId,
int lineNr)
Indicates that an attribute has been added to the current element. |
void |
elementAttributesProcessed(java.lang.String name,
java.util.Properties extraAttributes,
java.lang.String systemId,
int lineNr)
This method is called when the attributes of an XML element have been processed. |
void |
elementEnded(java.lang.String name,
java.lang.String systemId,
int lineNr)
Indicates that the current element has ended. |
void |
elementStarted(java.lang.String name,
java.lang.String systemId,
int lineNr)
Indicates that an element has been started. |
IXMLEntityResolver |
getParameterEntityResolver()
Returns the parameter entity resolver. |
void |
parseDTD(java.lang.String publicID,
IXMLReader reader,
IXMLEntityResolver entityResolver,
boolean external)
Parses the DTD. |
void |
PCDataAdded(java.lang.String systemId,
int lineNr)
Indicates that a new #PCDATA element has been encountered. |
void |
setParameterEntityResolver(IXMLEntityResolver resolver)
Sets the parameter entity resolver. |
Method Detail |
---|
void setParameterEntityResolver(IXMLEntityResolver resolver)
resolver
- the entity resolver.IXMLEntityResolver getParameterEntityResolver()
void parseDTD(java.lang.String publicID, IXMLReader reader, IXMLEntityResolver entityResolver, boolean external) throws java.lang.Exception
publicID
- 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.
java.lang.Exception
- If something went wrong.void elementStarted(java.lang.String name, java.lang.String systemId, int lineNr) throws java.lang.Exception
name
- 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.
java.lang.Exception
- If the element could not be validated.void elementEnded(java.lang.String name, java.lang.String systemId, int lineNr) throws java.lang.Exception
name
- 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.
java.lang.Exception
- If the element could not be validated.void attributeAdded(java.lang.String key, java.lang.String value, java.lang.String systemId, int lineNr) throws java.lang.Exception
key
- 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.
java.lang.Exception
- If the attribute could not be validated.void elementAttributesProcessed(java.lang.String name, java.util.Properties extraAttributes, java.lang.String systemId, int lineNr) throws java.lang.Exception
name
- 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.
java.lang.Exception
- if the element could not be validated.void PCDataAdded(java.lang.String systemId, int lineNr) throws java.lang.Exception
systemId
- the system ID of the XML data of the element.lineNr
- the line number in the XML data of the element.
java.lang.Exception
- if the element could not be validated.
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |