public class TypeDescriptor extends Object
Constructor and Description |
---|
TypeDescriptor() |
Modifier and Type | Method and Description |
---|---|
ItemType |
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) |
Content2BeanTransformer |
getTransformer()
Can return a custom transformer.
|
Class<?> |
getType() |
boolean |
isCollection() |
boolean |
isMap() |
boolean |
needsDefaultMapping() |
void |
setCollection(boolean isCollection) |
void |
setItemType(ItemType itemType) |
void |
setMap(boolean isMap) |
void |
setTransformer(Content2BeanTransformer transformer) |
void |
setType(Class<?> type) |
public ItemType getItemType()
public void setItemType(ItemType 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 PropertyTypeDescriptor getPropertyTypeDescriptor(String propertyName, TypeMapping typeMapping)
public boolean needsDefaultMapping()
public Map<String,PropertyTypeDescriptor> getPropertyDescriptors(TypeMapping typeMapping)
public Content2BeanTransformer getTransformer()
public void setTransformer(Content2BeanTransformer transformer)
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.