Class AttributeStatement

  • All Implemented Interfaces:
    Comparable<Object>

    public class AttributeStatement
    extends Statement
    Version:
    $Revision$
    Author:
    pramirez, jagander
    • Constructor Detail

      • AttributeStatement

        protected AttributeStatement​(Label sourcelabel,
                                     int lineNumber,
                                     String identifier)
        Constructs a new attribute statement with no value
        Parameters:
        lineNumber - Line on which the statement starts
        identifier - Uniquely identifies the statement
      • AttributeStatement

        public AttributeStatement​(Label sourcelabel,
                                  String identifier)
        Constructs a new attribute statement with no line number or value
        Parameters:
        identifier - Uniquely identifies the statement
      • AttributeStatement

        public AttributeStatement​(Label sourcelabel,
                                  String identifier,
                                  Value value)
        Constructs a new attribute statement with no line number
        Parameters:
        identifier - Uniquely identifies the statement
        value - Value of the attribute
      • AttributeStatement

        public AttributeStatement​(Label sourcelabel,
                                  int lineNumber,
                                  String identifier,
                                  Value value)
        Parameters:
        lineNumber - Line on which the statement starts
        identifier - Uniquely identifies the statement
        value - Value of the attribute
    • Method Detail

      • getNamespace

        public String getNamespace()
        Gets the namespace for this attribute
        Returns:
        The namespace or "" if none is found.
      • getElementIdentifier

        public String getElementIdentifier()
        Gets the unqualified identifier for the att
        Returns:
        Returns the element identifier.
      • getValue

        public Value getValue()
        Retrieves the value of the attribute
        Returns:
        Value of the attribute
      • setValue

        public void setValue​(Value value)
        Sets the value for this attribute
        Parameters:
        value - Value of the attribute
      • hasNamespace

        public boolean hasNamespace()
      • hashcode

        public int hashcode()