Class SimpleName.Member

    • Constructor Detail

      • Member

        public Member​(SimpleNameSpace scope,
                      Name name,
                      TypeName attributeType)
               throws IllegalArgumentException
        Creates a new instance backed by the given JNDI name. This constructor does not clone the given JNDI name. While this implementation is robust to change in the wrapped object, it is a better practice to keep the JNDI name unmodified after SimpleName construction.
        Parameters:
        scope - the scope (name space) in which the given name is local, or null.
        name - the JNDI name wrapped by this SimpleName (not cloned).
        attributeType - the type of the data associated with the record member.
        Throws:
        IllegalArgumentException - if the given name does not have exactly 1 component.
    • Method Detail

      • getAttributeType

        public TypeName getAttributeType()
        Returns the type of the data associated with the record member.
        Specified by:
        getAttributeType in interface MemberName
      • equals

        public boolean equals​(Object other)
        Compares the given object to this name for equality. This method compares the attribute type in addition to the field compared by the super-class.
        Overrides:
        equals in class SimpleName
        Parameters:
        other - the other object to compare to this name.