public interface AttributeMatcher
| Modifier and Type | Method and Description |
|---|---|
CoreAttribute |
createAttribute(CoreElement element,
String namespaceURI,
String name,
String prefix,
String value)
Create a new attribute node.
|
String |
getName(CoreAttribute attr)
Get the name parameter for an existing attribute.
|
String |
getNamespaceURI(CoreAttribute attr)
Get the namespaceURI parameter for an existing attribute.
|
boolean |
matches(CoreAttribute attr,
String namespaceURI,
String name)
Check if the given attribute matches.
|
void |
update(CoreAttribute attr,
String prefix,
String value)
Update an existing attribute.
|
boolean matches(CoreAttribute attr, String namespaceURI, String name)
namespaceURI and
name parameters are those passed to
CoreElement.coreGetAttribute(AttributeMatcher, String, String) or
CoreElement.coreSetAttribute(AttributeMatcher, String, String, String, String), or
they are determined by the return values of getNamespaceURI(CoreAttribute) and
getName(CoreAttribute) if
CoreElement.coreSetAttribute(AttributeMatcher, CoreAttribute, Semantics)
is used. It is
not required that these parameters strictly represent the namespace URI and local name of the
attribute. Their exact meaning is defined by the particular AttributeMatcher
implementation.attr - the attribute to checknamespaceURI - see abovename - see abovetrue if the attribute matches, false otherwiseString getNamespaceURI(CoreAttribute attr)
CoreElement.coreSetAttribute(AttributeMatcher, CoreAttribute, Semantics)
which passes its return value as parameter to matches(CoreAttribute, String, String).attr - the attributematches(CoreAttribute, String, String)String getName(CoreAttribute attr)
CoreElement.coreSetAttribute(AttributeMatcher, CoreAttribute, Semantics)
which passes its return value as parameter to matches(CoreAttribute, String, String).attr - the attributematches(CoreAttribute, String, String)CoreAttribute createAttribute(CoreElement element, String namespaceURI, String name, String prefix, String value)
namespaceURI, name,
prefix and value parameters are those passed to
CoreElement.coreSetAttribute(AttributeMatcher, String, String, String, String).element - the instance to be used to invoke CoreNode.coreCreateNode(Class)namespaceURI - see abovename - see aboveprefix - see abovevalue - see abovevoid update(CoreAttribute attr, String prefix, String value)
prefix and value
parameters are those passed to
CoreElement.coreSetAttribute(AttributeMatcher, String, String, String, String).attr - the attribute to updateprefix - see abovevalue - see aboveCopyright © The Apache Software Foundation. All Rights Reserved.