info.magnolia.content2bean
Class TypeDescriptor
java.lang.Object
info.magnolia.content2bean.TypeDescriptor
- Direct Known Subclasses:
- PropertiesBasedTypeDescriptor
public class TypeDescriptor
- extends Object
Describes the type under the transformation. Can be used to customize the output of the transformation.
- Version:
- $Id$
- Author:
- philipp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeDescriptor
public TypeDescriptor()
getItemType
public ItemType getItemType()
setItemType
public void setItemType(ItemType itemType)
getType
public Class<?> getType()
setType
public void setType(Class<?> type)
isCollection
public boolean isCollection()
setCollection
public void setCollection(boolean isCollection)
isMap
public boolean isMap()
setMap
public void setMap(boolean isMap)
getPropertyTypeDescriptor
public PropertyTypeDescriptor getPropertyTypeDescriptor(String propertyName,
TypeMapping typeMapping)
needsDefaultMapping
public boolean needsDefaultMapping()
- Returns:
- true if this descriptor represents an map or collection, without a concrete type thereof.
getPropertyDescriptors
public 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.
getTransformer
public Content2BeanTransformer getTransformer()
- Can return a custom transformer. Otherwise null.
setTransformer
public void setTransformer(Content2BeanTransformer transformer)
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.