Class AttributeSelector
java.lang.Object
jodd.csselly.Selector
jodd.csselly.selector.AttributeSelector
- All Implemented Interfaces:
NodeFilter
Attribute selector.
-
Nested Class Summary
Nested classes/interfaces inherited from class Selector
Selector.Type -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttributeSelector(String attr) AttributeSelector(String name, String sign, String value) AttributeSelector(String name, Match match, String value) -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest whether a specified node is acceptable in some selection process.protected StringextractValue(String value) getMatch()Returns matching type.getName()Returns attribute name.charReturns the quote char or0if quote is not used.getValue()Returns attribute value ornullif doesn't exist.
-
Field Details
-
name
-
value
-
match
-
quoteChar
protected char quoteChar
-
-
Constructor Details
-
AttributeSelector
-
AttributeSelector
-
AttributeSelector
-
-
Method Details
-
extractValue
-
getName
Returns attribute name. -
getValue
Returns attribute value ornullif doesn't exist. -
getMatch
Returns matching type. -
getQuoteChar
public char getQuoteChar()Returns the quote char or0if quote is not used. -
accept
Description copied from interface:NodeFilterTest whether a specified node is acceptable in some selection process.- Specified by:
acceptin interfaceNodeFilter
-