@API(type=EXTENDABLE, src=PUBLIC) public abstract class DocumentTypeAdvancedCustomRuleMatcher extends java.lang.Object implements DocumentTypeCustomRuleMatcher
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
Constructor and Description |
---|
DocumentTypeAdvancedCustomRuleMatcher() |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.String systemID,
java.lang.String rootNamespace,
java.lang.String rootLocalName,
java.lang.String doctypePublicID,
org.xml.sax.Attributes rootAttributes)
Check if the document type to which this custom rule belongs to
should be used for the given document properties.
|
boolean |
matches(java.lang.String systemID,
java.lang.String rootNamespace,
java.lang.String rootLocalName,
java.lang.String doctypePublicID,
org.xml.sax.Attributes rootAttributes,
java.io.Reader contentReader)
Check if the document type to which this custom rule belongs to should be used for the given document properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
public DocumentTypeAdvancedCustomRuleMatcher()
public boolean matches(java.lang.String systemID, java.lang.String rootNamespace, java.lang.String rootLocalName, java.lang.String doctypePublicID, org.xml.sax.Attributes rootAttributes)
DocumentTypeCustomRuleMatcher
matches
in interface DocumentTypeCustomRuleMatcher
systemID
- The system ID of the current file in an URL format with not allowed characters corrected.
For example: "file:/C:/path/to/file/file.xml"rootNamespace
- The namespace of the root.rootLocalName
- The root local name.doctypePublicID
- The public id of the specified DTD if any.rootAttributes
- The root attributes. The attributes are DOM level 2
and the namespaces are available for each one.true
if the document type to which this rule belongs to
will be used for the current file.DocumentTypeCustomRuleMatcher.matches(java.lang.String, java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public boolean matches(java.lang.String systemID, java.lang.String rootNamespace, java.lang.String rootLocalName, java.lang.String doctypePublicID, org.xml.sax.Attributes rootAttributes, java.io.Reader contentReader)
systemID
- The system ID of the current file in an URL format with not allowed characters corrected.
For example: "file:/C:/path/to/file/file.xml"rootNamespace
- The namespace of the root.rootLocalName
- The root local name.doctypePublicID
- The public id of the specified DTD if any.rootAttributes
- The root attributes. The attributes are DOM level 2
and the namespaces are available for each one.contentReader
- Reader over the entire XML content. Can be used for detection
if all other parameters are not enough. The reader does not need to be reset or closed.true
if the document type to which this rule belongs to
will be used for the current file.© Copyright SyncRO Soft SRL 2002 - 2015. All rights reserved.