Package net.sf.saxon.trans
Class SymbolicName
java.lang.Object
net.sf.saxon.trans.SymbolicName
- Direct Known Subclasses:
SymbolicName.F
The symbolic name of a component consists of the component kind (e.g. function, template, attribute set),
the QName acting as the name of the template, function etc, and in the case of functions, the arity
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Subclass of SymbolicName used for function names (including the arity) -
Constructor Summary
ConstructorsConstructorDescriptionSymbolicName
(int kind, StructuredQName name) Create a symbolic name for a component other than a function. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
Get the kind of component, for exampleStandardNames.XSL_FUNCTION
orStandardNames.XSL_VARIABLE
Get the QName part of the symbolic name of the componentGet a short name suitable for use in messagesint
hashCode()
Returns a hash code value for the object.toString()
Get the name as a string.
-
Constructor Details
-
SymbolicName
Create a symbolic name for a component other than a function.- Parameters:
kind
- the component kind, for exampleStandardNames.XSL_TEMPLATE
name
- the QName that is the "name" of the component
-
-
Method Details
-
hashCode
public int hashCode()Returns a hash code value for the object. -
equals
Indicates whether some other object is "equal to" this one. -
getComponentKind
public int getComponentKind()Get the kind of component, for exampleStandardNames.XSL_FUNCTION
orStandardNames.XSL_VARIABLE
- Returns:
- the kind of component identified by this symbolic name
-
getComponentName
Get the QName part of the symbolic name of the component- Returns:
- the QName part of the name
-
toString
Get the name as a string. -
getShortName
Get a short name suitable for use in messages
-