gnu.kawa.xml

Class AttributeType

public class AttributeType extends NodeType implements TypeValue, Externalizable, AttributePredicate

Matches an attribute name pattern. FIXME: ElementType and AttributeType should both inherit from a common NamedNodeType class.
Field Summary
static ClassTypetypeAttributeType
Constructor Summary
AttributeType(Symbol qname)
AttributeType(String name, Symbol qname)
Method Summary
static SeqPositioncoerce(Object obj, String namespaceURI, String localName)
ObjectcoerceFromObject(Object obj)
static SeqPositioncoerceOrNull(Object obj, String namespaceURI, String localName)
voidemitCoerceFromObject(CodeAttr code)
protected voidemitCoerceOrNullMethod(Variable incoming, Compilation comp)
TypegetImplementationType()
StringgetLocalName()
StringgetNamespaceURI()
booleanisInstance(AbstractSequence seq, int ipos, Object attrType)
booleanisInstance(Object obj)
booleanisInstancePos(AbstractSequence seq, int ipos)
static AttributeTypemake(String namespaceURI, String localName)
static AttributeTypemake(Symbol qname)
voidreadExternal(ObjectInput in)
StringtoString()
voidwriteExternal(ObjectOutput out)

Field Detail

typeAttributeType

public static final ClassType typeAttributeType

Constructor Detail

AttributeType

public AttributeType(Symbol qname)

AttributeType

public AttributeType(String name, Symbol qname)

Method Detail

coerce

public static SeqPosition coerce(Object obj, String namespaceURI, String localName)

coerceFromObject

public Object coerceFromObject(Object obj)

coerceOrNull

public static SeqPosition coerceOrNull(Object obj, String namespaceURI, String localName)

emitCoerceFromObject

public void emitCoerceFromObject(CodeAttr code)

emitCoerceOrNullMethod

protected void emitCoerceOrNullMethod(Variable incoming, Compilation comp)

getImplementationType

public Type getImplementationType()

getLocalName

public final String getLocalName()

getNamespaceURI

public final String getNamespaceURI()

isInstance

public boolean isInstance(AbstractSequence seq, int ipos, Object attrType)

isInstance

public boolean isInstance(Object obj)

isInstancePos

public boolean isInstancePos(AbstractSequence seq, int ipos)

make

public static AttributeType make(String namespaceURI, String localName)

make

public static AttributeType make(Symbol qname)

readExternal

public void readExternal(ObjectInput in)

toString

public String toString()

writeExternal

public void writeExternal(ObjectOutput out)