gnu.kawa.xml
public class ElementType extends NodeType implements TypeValue, Externalizable, ElementPredicate
| Field Summary | |
|---|---|
| static ElementType | anyElement |
| static String | MATCH_ANY_LOCALNAME |
| static Symbol | MATCH_ANY_QNAME |
| static ClassType | typeElementType |
| Constructor Summary | |
|---|---|
| ElementType(Symbol qname) | |
| ElementType(String name, Symbol qname) | |
| Method Summary | |
|---|---|
| static KElement | coerce(Object obj, String namespaceURI, String localName) |
| Object | coerceFromObject(Object obj) |
| static KElement | coerceOrNull(Object obj, String namespaceURI, String localName) |
| void | emitCoerceFromObject(CodeAttr code) |
| protected void | emitCoerceOrNullMethod(Variable incoming, Compilation comp) |
| Procedure | getConstructor() |
| Type | getImplementationType() |
| String | getLocalName() |
| NamespaceBinding | getNamespaceNodes() |
| String | getNamespaceURI() |
| boolean | isInstance(AbstractSequence seq, int ipos, Object elementType) |
| boolean | isInstance(Object obj) |
| boolean | isInstancePos(AbstractSequence seq, int ipos) |
| static ElementType | make(String namespaceURI, String localName) An element type for match by name. |
| static ElementType | make(Symbol qname) |
| void | readExternal(ObjectInput in) |
| void | setNamespaceNodes(NamespaceBinding bindings) |
| String | toString() |
| void | writeExternal(ObjectOutput out) |
Parameters: localName if null matches any local name; otherwise must be intered, and matches by identity. namespaceURI full name of namespace, or null for any namespace.