|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bval.jsr303.NestedMetaProperty
final class NestedMetaProperty
Description: handle nested property paths
| Constructor Summary | |
|---|---|
NestedMetaProperty(String path,
Object value)
Create a new NestedMetaProperty instance. |
|
| Method Summary | |
|---|---|
(package private) static Class<? extends Collection<?>> |
getCollectionClass(Type type)
Resolve the raw type of a Collection. |
(package private) static Type |
getIndexedType(Type type)
Get the component type of an indexed type. |
MetaBean |
getMetaBean()
Get the resolved MetaBean. |
MetaProperty |
getMetaProperty()
Get the resolved MetaProperty. |
String |
getPropertyPath()
Get the property path. |
Object |
getValue()
Get the property value referenced. |
(package private) static boolean |
isArray(Type type)
Learn whether a particular type represents an array. |
(package private) static boolean |
isCollection(Type type)
Learn whether type is a Collection type. |
(package private) static boolean |
isCollectionClass(Class<?> clazz)
Learn whether clazz implements either Collection or Map. |
boolean |
isNested()
Learn whether the MetaProperty represented is indeed nested. |
(package private) void |
parse()
Parse this NestedMetaProperty. |
void |
setMetaBean(MetaBean metaBean)
Set the MetaBean directly |
void |
setMetaProperty(MetaProperty aMetaProperty)
Set the MetaProperty directly |
void |
setValue(Object value)
Set the property value directly. |
(package private) static Type |
typeOf(Member member)
Get the declared type of a Member. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NestedMetaProperty(String path,
Object value)
path - value - | Method Detail |
|---|
void parse()
NestedMetaProperty.
public MetaProperty getMetaProperty()
public String getPropertyPath()
public boolean isNested()
MetaProperty represented is indeed nested.
public void setMetaProperty(MetaProperty aMetaProperty)
aMetaProperty - to setpublic MetaBean getMetaBean()
public void setMetaBean(MetaBean metaBean)
metaBean - to setpublic Object getValue()
public void setValue(Object value)
value - to setstatic Type typeOf(Member member)
member -
static Type getIndexedType(Type type)
type -
static Class<? extends Collection<?>> getCollectionClass(Type type)
type -
static boolean isArray(Type type)
type -
static boolean isCollection(Type type)
type is a Collection type.
type - the type to check.
true if type is a collection type or false otherwise.static boolean isCollectionClass(Class<?> clazz)
clazz implements either Collection or Map.
clazz -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||