Oxygen XML Editor 11.2 Author API

ro.sync.ecss.extensions.api
Interface DocumentTypeCustomRuleMatcher

All Superinterfaces:
Extension
All Known Implementing Classes:
DITACustomRuleMatcher, DITAMapCustomRuleMatcher, DITATopicCustomRuleMatcher

public interface DocumentTypeCustomRuleMatcher
extends Extension

Interface which can be implemented to provide custom matching to the document type it belongs to.


Method Summary
 boolean matches(String systemID, String rootNamespace, String rootLocalName, String doctypePublicID, Attributes rootAttributes)
          Check if the document type to which this custom rule belongs to should be used for the given document properties.
 
Methods inherited from interface ro.sync.ecss.extensions.api.Extension
getDescription
 

Method Detail

matches

boolean matches(String systemID,
                String rootNamespace,
                String rootLocalName,
                String doctypePublicID,
                Attributes rootAttributes)
Check if the document type to which this custom rule belongs to should be used for the given document properties.

Parameters:
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.
Returns:
true if the document type to which this rule belongs to will be used for the current file.

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.