public class SymbolicName extends Object
Constructor and Description |
---|
SymbolicName(int kind,
StructuredQName name)
Create a symbolic name for a component other than a function.
|
SymbolicName(int kind,
StructuredQName name,
int arity)
Create a symbolic name, typically for a function.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
int |
getArity()
Get the arity, in the case of function components
|
int |
getComponentKind()
Get the kind of component, for example
StandardNames.XSL_FUNCTION or StandardNames.XSL_VARIABLE |
StructuredQName |
getComponentName()
Get the QName part of the symbolic name of the component
|
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString()
Get the name as a string.
|
public SymbolicName(int kind, StructuredQName name)
kind
- the component kind, for example StandardNames.XSL_TEMPLATE
name
- the QName that is the "name" of the componentpublic SymbolicName(int kind, StructuredQName name, int arity)
kind
- the component kind, typically StandardNames.XSL_FUNCTION
name
- the QName that is the "name" of the componentarity
- the number of arguments; should be -1 if the component is not a functionpublic int hashCode()
public boolean equals(Object obj)
public int getComponentKind()
StandardNames.XSL_FUNCTION
or StandardNames.XSL_VARIABLE
public StructuredQName getComponentName()
public int getArity()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.