Class xrx.xpath.KindTest
Defined in: kindTest.js.
Constructor Attributes | Constructor Name and Description |
---|---|
xrx.xpath.KindTest(typeName, opt_literal)
Constructs a subset of KindTest based on the XPath grammar:
http://www.w3.org/TR/xpath20/#prod-xpath-KindTest
|
Method Attributes | Method Name and Description |
---|---|
getName()
|
|
getType()
Returns the type of the node.
|
|
<static> |
xrx.xpath.KindTest.isValidType(typeName)
Checks if a type name is a valid KindTest parameter.
|
matches(node)
|
|
toString()
|
Class Detail
xrx.xpath.KindTest(typeName, opt_literal)
Constructs a subset of KindTest based on the XPath grammar:
http://www.w3.org/TR/xpath20/#prod-xpath-KindTest
- Parameters:
- {string} typeName
- Type name to be tested.
- {xrx.xpath.Literal=} opt_literal
- Optional literal for processing-instruction nodes.
Method Detail
getName()
{?number}
getType()
Returns the type of the node.
- Returns:
- {?number} The type of the node, or null if any type.
<static>
{boolean}
xrx.xpath.KindTest.isValidType(typeName)
Checks if a type name is a valid KindTest parameter.
- Parameters:
- {string} typeName
- The type name to be checked.
- Returns:
- {boolean} Whether the type name is legal.
matches(node)
- Parameters:
- node
toString()