Class PropertySchema<B,​T>

  • Type Parameters:
    B - bean class for this property
    T - type of property values

    public abstract class PropertySchema<B,​T>
    extends Object
    Schema of a Java Bean property.

    This class represents view of a field or getter/setter from perspective of Java Beans. This means that instead of fields and methods, property schema schema has type, name, and can be read and written.

    • Method Detail

      • name

        public abstract String name()
        Extracts name of the property.
        Returns:
        property name
      • type

        public abstract Type type()
        Extracts type of the property.
        Returns:
        property type
      • isReadable

        public abstract boolean isReadable()
        Answers if the property is readable.
        Returns:
        if the property can have value read
      • isWritable

        public abstract boolean isWritable()
        Answers if the property is writeable.
        Returns:
        if the property can have value written