Class Property

  • All Implemented Interfaces:
    java.lang.Comparable<Property>
    Direct Known Subclasses:
    GenericProperty, MissingProperty

    public abstract class Property
    extends java.lang.Object
    implements java.lang.Comparable<Property>

    A Property represents a single member variable of a class, possibly including its accessor methods (getX, setX). The name stored in this class is the actual name of the property as given for the class, not an alias.

    Objects of this class have a total ordering which defaults to ordering based on the name of the property.

    • Constructor Detail

      • Property

        public Property​(java.lang.String name,
                        java.lang.Class<?> type)
    • Method Detail

      • getType

        public java.lang.Class<?> getType()
      • getActualTypeArguments

        public abstract java.lang.Class<?>[] getActualTypeArguments()
      • getName

        public java.lang.String getName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(Property o)
        Specified by:
        compareTo in interface java.lang.Comparable<Property>
      • isWritable

        public boolean isWritable()
      • isReadable

        public boolean isReadable()
      • set

        public abstract void set​(java.lang.Object object,
                                 java.lang.Object value)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • get

        public abstract java.lang.Object get​(java.lang.Object object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object