Class 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
    • 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 example StandardNames.XSL_TEMPLATE
        name - the QName that is the "name" of the component
    • Method Detail

      • hashCode

        public int hashCode()
        Returns a hash code value for the object.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
        Returns:
        a string typically in the form "template p:my-template" or "function f:my-function#2"
      • getShortName

        public String getShortName()
        Get a short name suitable for use in messages