public class AttributeSelector extends Selector implements NodeFilter
Selector.Type
Modifier and Type | Field and Description |
---|---|
protected Match |
match |
protected java.lang.String |
name |
protected char |
quoteChar |
protected java.lang.String |
value |
Constructor and Description |
---|
AttributeSelector(java.lang.String attr) |
AttributeSelector(java.lang.String name,
Match match,
java.lang.String value) |
AttributeSelector(java.lang.String name,
java.lang.String sign,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Node node)
Test whether a specified node is acceptable in some selection process.
|
protected java.lang.String |
extractValue(java.lang.String value) |
Match |
getMatch()
Returns matching type.
|
java.lang.String |
getName()
Returns attribute name.
|
char |
getQuoteChar()
Returns the quote char or
0 if quote is not used. |
java.lang.String |
getValue()
Returns attribute value or
null if doesn't exist. |
protected final java.lang.String name
protected final java.lang.String value
protected final Match match
protected char quoteChar
public AttributeSelector(java.lang.String name, java.lang.String sign, java.lang.String value)
public AttributeSelector(java.lang.String name, Match match, java.lang.String value)
public AttributeSelector(java.lang.String attr)
protected java.lang.String extractValue(java.lang.String value)
public java.lang.String getName()
public java.lang.String getValue()
null
if doesn't exist.public Match getMatch()
public char getQuoteChar()
0
if quote is not used.public boolean accept(Node node)
NodeFilter
accept
in interface NodeFilter
Copyright © 2003-present Jodd Team