Class OAVJavaAttributeType


  • public class OAVJavaAttributeType
    extends OAVAttributeType
    Attribute type for Java object types.
    • Field Detail

      • propreadmethod

        protected static volatile java.lang.reflect.Method propreadmethod
        The property object read method.
    • Constructor Detail

      • OAVJavaAttributeType

        public OAVJavaAttributeType​(OAVObjectType otype,
                                    java.lang.String name,
                                    OAVObjectType type,
                                    java.lang.String mult,
                                    java.lang.Object def,
                                    PropertyDescriptor propdesc)
        Create a new OAV attribute type.
        Parameters:
        otype - The object type holding the attribute.
        name - The name of the OAV attribute type.
        mult - The multiplicity.
        type - The type.
        def - The default value.
    • Method Detail

      • calcHashCode

        protected int calcHashCode()
        Compute the hashcode.
        Overrides:
        calcHashCode in class OAVAttributeType
        Returns:
        The hashcode.
      • equals

        public boolean equals​(java.lang.Object obj)
        Test for equality.
        Overrides:
        equals in class OAVAttributeType
        Returns:
        True, if equal.
      • accessProperty

        public java.lang.Object accessProperty​(java.lang.Object object)
        Get the attribute value from a given object.
        Parameters:
        object - The object.
        Returns:
        The value.