Package org.midheaven.lang.reflection
Interface Property
public interface Property
Defines the contract for Property.
-
Method Details
-
name
String name()Performs name.- Returns:
- the result of name
-
valueType
Class<?> valueType()Returns value Type.- Returns:
- the result of valueType
-
isOptional
boolean isOptional()Checks whether is Optional.- Returns:
- the result of isOptional
-
canRead
boolean canRead()Checks whether can Read.- Returns:
- the result of canRead
-
canWrite
boolean canWrite()Checks whether can Write.- Returns:
- the result of canWrite
-
getValue
Returns get Value.- Parameters:
instance- the instance value- Returns:
- the result of getValue
-
setValue
Performs set Value.- Parameters:
instance- the instance valuevalue- the value value
-