Class Index | File Index

Classes


Class xrx.xpath.KindTest


Defined in: kindTest.js.

Class Summary
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 Summary
Method Attributes Method Name and Description
 
 
Returns the type of the node.
<static>  
xrx.xpath.KindTest.isValidType(typeName)
Checks if a type name is a valid KindTest parameter.
 
matches(node)
 
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()

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Oct 17 2013 17:08:44 GMT+0200 (MESZ)