org.yaml.snakeyaml
public final class TypeDescription extends Object
Constructor and Description |
---|
TypeDescription(Class<? extends Object> clazz) |
TypeDescription(Class<? extends Object> clazz,
String tag) |
TypeDescription(Class<? extends Object> clazz,
Tag tag) |
Modifier and Type | Method and Description |
---|---|
Class<? extends Object> |
getListPropertyType(String property)
Get class of List values for provided JavaBean property.
|
Class<? extends Object> |
getMapKeyType(String property)
Get keys type info for this JavaBean
|
Class<? extends Object> |
getMapValueType(String property)
Get values type info for this JavaBean
|
Tag |
getTag()
Get tag which shall be used to load or dump the type (class).
|
Class<? extends Object> |
getType()
Get represented type (class)
|
void |
putListPropertyType(String property,
Class<? extends Object> type)
Specify that the property is a type-safe
List . |
void |
putMapPropertyType(String property,
Class<? extends Object> key,
Class<? extends Object> value)
Specify that the property is a type-safe
Map . |
void |
setTag(String tag) |
void |
setTag(Tag tag)
Set tag to be used to load or dump the type (class).
|
String |
toString() |
public Tag getTag()
public void setTag(Tag tag)
tag
- local or global tagpublic void setTag(String tag)
public Class<? extends Object> getType()
public void putListPropertyType(String property, Class<? extends Object> type)
List
.property
- name of the JavaBean propertytype
- class of List valuespublic Class<? extends Object> getListPropertyType(String property)
property
- property namepublic void putMapPropertyType(String property, Class<? extends Object> key, Class<? extends Object> value)
Map
.property
- property name of this JavaBeankey
- class of keys in Mapvalue
- class of values in Mappublic Class<? extends Object> getMapKeyType(String property)
property
- property name of this JavaBeanpublic Class<? extends Object> getMapValueType(String property)
property
- property name of this JavaBeanCopyright © 2008–2015. All rights reserved.