public class TypeDescriptor extends Object
Constructor and Description |
---|
TypeDescriptor() |
Modifier and Type | Method and Description |
---|---|
String |
getItemType() |
Map<String,PropertyTypeDescriptor> |
getPropertyDescriptors(TypeMapping typeMapping)
This method is not synchronized to avoid thread blocking, but the method guarantees that the returned map is not mutated afterward.
|
PropertyTypeDescriptor |
getPropertyTypeDescriptor(String propertyName,
TypeMapping typeMapping) |
Node2BeanTransformer |
getTransformer()
Can return a custom transformer.
|
Class<?> |
getType() |
boolean |
isArray() |
boolean |
isCollection() |
boolean |
isMap() |
boolean |
needsDefaultMapping() |
void |
setArray(boolean isArray) |
void |
setCollection(boolean isCollection) |
void |
setItemType(String itemType) |
void |
setMap(boolean isMap) |
void |
setTransformer(Node2BeanTransformer transformer) |
void |
setType(Class<?> type) |
public String getItemType()
public void setItemType(String itemType)
public Class<?> getType()
public void setType(Class<?> type)
public boolean isCollection()
public void setCollection(boolean isCollection)
public boolean isMap()
public void setMap(boolean isMap)
public boolean isArray()
public void setArray(boolean isArray)
public PropertyTypeDescriptor getPropertyTypeDescriptor(String propertyName, TypeMapping typeMapping)
public boolean needsDefaultMapping()
public Map<String,PropertyTypeDescriptor> getPropertyDescriptors(TypeMapping typeMapping)
public Node2BeanTransformer getTransformer()
public void setTransformer(Node2BeanTransformer transformer)
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.