Package ro.sync.ecss.extensions.dita.map
Class DITAMap2_xCustomRuleMatcher
- java.lang.Object
-
- ro.sync.ecss.extensions.dita.DITACustomRuleMatcher
-
- ro.sync.ecss.extensions.dita.map.DITAMapCustomRuleMatcher
-
- ro.sync.ecss.extensions.dita.map.DITAMap2_xCustomRuleMatcher
-
- All Implemented Interfaces:
DocumentTypeCustomRuleMatcher
,Extension
@API(type=INTERNAL, src=PUBLIC) public class DITAMap2_xCustomRuleMatcher extends DITAMapCustomRuleMatcher
Matches a specific DITA Map 2.x framework
-
-
Constructor Summary
Constructors Constructor Description DITAMap2_xCustomRuleMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(java.lang.String systemID, java.lang.String rootNamespace, java.lang.String rootLocalName, java.lang.String doctypePublicID, org.xml.sax.Attributes rootAttributes)
Try to find aDITAArchVersion
attribute in the root attributes.-
Methods inherited from class ro.sync.ecss.extensions.dita.map.DITAMapCustomRuleMatcher
getDescription
-
Methods inherited from class ro.sync.ecss.extensions.dita.DITACustomRuleMatcher
getVersion
-
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.String systemID, java.lang.String rootNamespace, java.lang.String rootLocalName, java.lang.String doctypePublicID, org.xml.sax.Attributes rootAttributes)
Description copied from class:DITAMapCustomRuleMatcher
Try to find aDITAArchVersion
attribute in the root attributes.- Specified by:
matches
in interfaceDocumentTypeCustomRuleMatcher
- Overrides:
matches
in classDITAMapCustomRuleMatcher
- 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.- See Also:
DITAMapCustomRuleMatcher.matches(java.lang.String, java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
-
-