Class OAVObjectUsage


  • public class OAVObjectUsage
    extends java.lang.Object
    Struct for storing an object usage. Identifies that a defined value (not part of this usage) is used in the defined object in the defined attribute.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected OAVAttributeType attr
      The attribute.
      protected boolean external
      External flag (i.e. referencing object is only externally referenced and no longer in state).
      protected java.lang.Object object
      The object.
    • Constructor Summary

      Constructors 
      Constructor Description
      OAVObjectUsage​(java.lang.Object object, OAVAttributeType attr)
      Create a new object usage.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Test if two objects are equal.
      OAVAttributeType getAttribute()
      Get the attribute.
      java.lang.Object getObject()
      Get the object.
      int hashCode()
      Generate the hash code.
      boolean isExternal()
      Get the external flag.
      void setExternal​(boolean external)
      Set the external flag.
      java.lang.String toString()
      Create a string representation.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • object

        protected java.lang.Object object
        The object.
      • external

        protected boolean external
        External flag (i.e. referencing object is only externally referenced and no longer in state).
    • Constructor Detail

      • OAVObjectUsage

        public OAVObjectUsage​(java.lang.Object object,
                              OAVAttributeType attr)
        Create a new object usage.
    • Method Detail

      • getObject

        public java.lang.Object getObject()
        Get the object.
      • isExternal

        public boolean isExternal()
        Get the external flag.
      • setExternal

        public void setExternal​(boolean external)
        Set the external flag.
      • hashCode

        public int hashCode()
        Generate the hash code.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Test if two objects are equal.
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Create a string representation.
        Overrides:
        toString in class java.lang.Object