Class PropertySchema<B,T>
- java.lang.Object
-
- org.perfectable.introspection.bean.PropertySchema<B,T>
-
- Type Parameters:
B
- bean class for this propertyT
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract boolean
isReadable()
Answers if the property is readable.abstract boolean
isWritable()
Answers if the property is writeable.abstract String
name()
Extracts name of the property.abstract Type
type()
Extracts type of the property.
-
-
-
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
-
-