org.jplot2d.env
Class InterfaceInfo
- java.lang.Object
-
- org.jplot2d.env.InterfaceInfo
-
public class InterfaceInfo extends java.lang.ObjectThis class extract properties from method declaration, rather than using java introspector. The property annotation is defined on getter. if a sub-interface override a getter, the overriding method will take effect. The setter method type must match the getter's return type. setter methods with same name but different argument type are not allowed. The indexed getter and setter are not considered.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.Map<java.lang.String,PropertyInfo[]>getProfilePropertyInfoGroupMap()PropertyInfogetPropertyInfo(java.lang.String pname)java.util.Map<java.lang.String,PropertyInfo[]>getPropertyInfoGroupMap()booleanisWritableProp(java.lang.String pname)Returnstrue if the given property is writable.static InterfaceInfoloadInterfaceInfo(java.lang.Class<?> interfaceClass)Load interface info for the given interface and its parents.The subclass may hide the info of its superclass.
-
-
-
Method Detail
-
loadInterfaceInfo
public static InterfaceInfo loadInterfaceInfo(java.lang.Class<?> interfaceClass)
Load interface info for the given interface and its parents.The subclass may hide the info of its superclass. For example, if a sub-interface only redeclare a getter, the info will report the property is read-only.- Parameters:
interfaceClass-
-
getPropertyInfo
public PropertyInfo getPropertyInfo(java.lang.String pname)
-
getPropertyInfoGroupMap
public java.util.Map<java.lang.String,PropertyInfo[]> getPropertyInfoGroupMap()
-
getProfilePropertyInfoGroupMap
public java.util.Map<java.lang.String,PropertyInfo[]> getProfilePropertyInfoGroupMap()
-
isWritableProp
public boolean isWritableProp(java.lang.String pname)
Returnstrue if the given property is writable.- Parameters:
pname- The property name- Returns:
true if the given property is writable
-
-
DMelt 3.0 © DataMelt by jWork.ORG