Package net.sf.saxon.trans
Class SymbolicName
- java.lang.Object
-
- net.sf.saxon.trans.SymbolicName
-
- Direct Known Subclasses:
SymbolicName.F
public class SymbolicName extends Object
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 Classes Modifier and Type Class Description static classSymbolicName.FSubclass of SymbolicName used for function names (including the arity)
-
Constructor Summary
Constructors Constructor Description SymbolicName(int kind, StructuredQName name)Create a symbolic name for a component other than a function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Indicates whether some other object is "equal to" this one.intgetComponentKind()Get the kind of component, for exampleStandardNames.XSL_FUNCTIONorStandardNames.XSL_VARIABLEStructuredQNamegetComponentName()Get the QName part of the symbolic name of the componentStringgetShortName()Get a short name suitable for use in messagesinthashCode()Returns a hash code value for the object.StringtoString()Get the name as a string.
-
-
-
Constructor Detail
-
SymbolicName
public SymbolicName(int kind, StructuredQName name)Create a symbolic name for a component other than a function.- Parameters:
kind- the component kind, for exampleStandardNames.XSL_TEMPLATEname- the QName that is the "name" of the component
-
-
Method Detail
-
hashCode
public int hashCode()
Returns a hash code value for the object.
-
equals
public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.
-
getComponentKind
public int getComponentKind()
Get the kind of component, for exampleStandardNames.XSL_FUNCTIONorStandardNames.XSL_VARIABLE- Returns:
- the kind of component identified by this symbolic name
-
getComponentName
public StructuredQName getComponentName()
Get the QName part of the symbolic name of the component- Returns:
- the QName part of the name
-
toString
public String toString()
Get the name as a string.
-
getShortName
public String getShortName()
Get a short name suitable for use in messages
-
-