Package org.eclipse.wst.xml.xpath2.processor.internal.ast


org.eclipse.wst.xml.xpath2.processor.internal.ast
Class AttributeTest



public class AttributeTest
extends org.eclipse.wst.xml.xpath2.processor.internal.ast.AttrElemTest
Class used to match an attribute node by its name and/or type.

Constructor Summary

AttributeTest(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name , boolean wild , org.eclipse.wst.xml.xpath2.processor.internal.types.QName type)
AttributeTest(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name , boolean wild)
AttributeTest()

Method Summary

public java.lang.Objectaccept(org.eclipse.wst.xml.xpath2.processor.internal.ast.XPathVisitor v)
     Support for Visitor interface.
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyTypecreateTestType(org.eclipse.wst.xml.xpath2.api.ResultSequence rs , org.eclipse.wst.xml.xpath2.api.StaticContext sc)
    
public java.lang.ClassgetXDMClassType()
    
public booleanisWild()
    

Constructor Detail

AttributeTest

public AttributeTest(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name , boolean wild , org.eclipse.wst.xml.xpath2.processor.internal.types.QName type)

Constructor for AttributeTest. This one takes in 3 inputs, Name, wildcard test(true/false) and type.


AttributeTest

public AttributeTest(org.eclipse.wst.xml.xpath2.processor.internal.types.QName name , boolean wild)

Constructor for AttributeTest. This one takes in 2 inputs, Name and wildcard test(true/false).


AttributeTest

public AttributeTest()

Default Constructor for AttributeTest.


Methods Detail

accept

public java.lang.Object accept(org.eclipse.wst.xml.xpath2.processor.internal.ast.XPathVisitor v)

Support for Visitor interface.

Parameters

v

Returns

java.lang.Object - Result of Visitor operation.


createTestType

public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType createTestType(org.eclipse.wst.xml.xpath2.api.ResultSequence rs , org.eclipse.wst.xml.xpath2.api.StaticContext sc)

Parameters

rs

sc

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType


getXDMClassType

public java.lang.Class getXDMClassType()

Returns

java.lang.Class


isWild

public boolean isWild()

Returns

boolean