Class AttributeSubject

    • Constructor Detail

      • AttributeSubject

        public AttributeSubject()
        Constructor
      • AttributeSubject

        public AttributeSubject​(String id,
                                String value)
        Constructor
        Parameters:
        id - Id of the attribute
        value - Value of the attribute
    • Method Detail

      • getValue

        public String getValue()
        Returns attribute value.
        Returns:
        attribute value
      • setValue

        public void setValue​(String value)
        Sets attribute value.
        Parameters:
        value - attribute value
      • setID

        public void setID​(String id)
        Sets the Identifier.
        Parameters:
        id - Identifier.
      • getID

        public String getID()
        Returns the Identifier.
        Returns:
        Identifier.
      • setState

        public void setState​(String state)
        Sets state of the object
        Specified by:
        setState in interface EntitlementSubject
        Parameters:
        state - State of the object encoded as string
      • getState

        public String getState()
        Returns state of the object.
        Specified by:
        getState in interface EntitlementSubject
        Returns:
        state of the object encoded as string.
      • toJSONObject

        public org.json.JSONObject toJSONObject()
                                         throws org.json.JSONException
        Returns JSONObject mapping of the object.
        Returns:
        JSONObject mapping of the object.
        Throws:
        org.json.JSONException
      • toString

        public String toString()
        Returns string representation of the object.
        Overrides:
        toString in class Object
        Returns:
        string representation of the object.
      • isIdentity

        public boolean isIdentity()
        Returns true is this subject is an identity object.
        Specified by:
        isIdentity in interface EntitlementSubject
        Returns:
        true is this subject is an identity object.
      • isExclusive

        public boolean isExclusive()
        Returns true for exclusive.
        Returns:
        true for exclusive.
      • setExclusive

        public void setExclusive​(boolean flag)
        Sets exclusive.
        Parameters:
        flag - true for exclusive.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object