|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.portals.graffito.jcr.mapper.model.ClassDescriptor
public class ClassDescriptor
ClassDescriptor is used by the mapper to read general information on a class
Constructor Summary | |
---|---|
ClassDescriptor()
|
Method Summary | |
---|---|
void |
addBeanDescriptor(BeanDescriptor beanDescriptor)
Add a new BeanDescriptor |
void |
addCollectionDescriptor(CollectionDescriptor collectionDescriptor)
Add a new CollectionDescriptor |
void |
addDescendantClassDescriptor(ClassDescriptor classDescriptor)
|
void |
addFieldDescriptor(FieldDescriptor fieldDescriptor)
Add a new FielDescriptor |
void |
addImplementDescriptor(ImplementDescriptor implementDescriptor)
|
void |
afterPropertiesSet()
Revisit information in this descriptor and fills in more. |
BeanDescriptor |
getBeanDescriptor(java.lang.String fieldName)
Get the BeanDescriptor to used for a specific java bean attribute |
java.util.Collection |
getBeanDescriptors()
|
java.lang.String |
getClassName()
|
CollectionDescriptor |
getCollectionDescriptor(java.lang.String fieldName)
Get the CollectionDescriptor to used for a specific java bean attribute |
java.util.Collection |
getCollectionDescriptors()
|
ClassDescriptor |
getDescendantClassDescriptor(java.lang.String nodeType)
If the node type per concrete class strategy is used, we need to find a descendant class descriptor assigned to a node type This method is not used in other situation. |
java.util.Collection |
getDescendantClassDescriptors()
|
java.lang.String |
getExtend()
|
FieldDescriptor |
getFieldDescriptor(java.lang.String fieldName)
Get the FieldDescriptor to used for a specific java bean attribute |
java.util.Collection |
getFieldDescriptors()
|
java.util.Map |
getFieldNames()
|
FieldDescriptor |
getIdFieldDescriptor()
|
java.util.Collection |
getImplements()
|
java.lang.String[] |
getJcrMixinTypes()
Retrieve the mixin types. |
java.lang.String |
getJcrName(java.lang.String fieldName)
Get the JCR name used for one of the object attributes |
java.lang.String |
getJcrNodeType()
|
java.lang.String |
getJcrSuperTypes()
Get the JCR node super types. |
MappingDescriptor |
getMappingDescriptor()
|
FieldDescriptor |
getPathFieldDescriptor()
|
ClassDescriptor |
getSuperClassDescriptor()
|
boolean |
hasDescendants()
|
boolean |
hasDiscriminator()
|
boolean |
hasIdField()
Check if this class has an ID |
boolean |
hasInterfaces()
|
boolean |
isAbstract()
|
boolean |
isInterface()
|
void |
setAbstract(boolean flag)
|
void |
setClassName(java.lang.String className)
|
void |
setDiscriminator(boolean flag)
|
void |
setExtend(java.lang.String className)
|
void |
setInterface(boolean flag)
|
void |
setJcrMixinTypes(java.lang.String[] mixinTypes)
Sets a comma separated list of mixin types. |
void |
setJcrNodeType(java.lang.String jcrNodeType)
|
void |
setJcrSuperTypes(java.lang.String superTypes)
Setter for JCR super types. |
void |
setMappingDescriptor(MappingDescriptor mappingDescriptor)
|
void |
setSuperClassDescriptor(ClassDescriptor superClassDescriptor)
|
java.lang.String |
toString()
|
boolean |
usesNodeTypePerConcreteClassStrategy()
|
boolean |
usesNodeTypePerHierarchyStrategy()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassDescriptor()
Method Detail |
---|
public void setAbstract(boolean flag)
public boolean isAbstract()
public void setInterface(boolean flag)
public boolean isInterface()
public boolean hasInterfaces()
public void setDiscriminator(boolean flag)
public boolean hasDiscriminator()
public boolean usesNodeTypePerHierarchyStrategy()
public boolean usesNodeTypePerConcreteClassStrategy()
public java.lang.String getClassName()
public void setClassName(java.lang.String className)
className
- The className to set.public java.lang.String getJcrNodeType()
public void setJcrNodeType(java.lang.String jcrNodeType)
jcrNodeType
- The jcrNodeType to set.public void addFieldDescriptor(FieldDescriptor fieldDescriptor)
fieldDescriptor
- the new field descriptor to addpublic void addImplementDescriptor(ImplementDescriptor implementDescriptor)
public FieldDescriptor getFieldDescriptor(java.lang.String fieldName)
fieldName
- The java bean attribute name
FieldDescriptor
found or nullpublic java.util.Collection getFieldDescriptors()
FieldDescriptor
defined in this ClassDescriptorpublic void addBeanDescriptor(BeanDescriptor beanDescriptor)
beanDescriptor
- the new bean descriptor to addpublic BeanDescriptor getBeanDescriptor(java.lang.String fieldName)
fieldName
- The java bean attribute name
BeanDescriptor
found or nullpublic java.util.Collection getBeanDescriptors()
BeanDescriptor
defined in this ClassDescriptorpublic void addCollectionDescriptor(CollectionDescriptor collectionDescriptor)
collectionDescriptor
- the new collection descriptor to addpublic CollectionDescriptor getCollectionDescriptor(java.lang.String fieldName)
fieldName
- The java bean attribute name
CollectionDescriptor
found or nullpublic java.util.Collection getCollectionDescriptors()
BeanDescriptor
defined in this ClassDescriptorpublic FieldDescriptor getIdFieldDescriptor()
public FieldDescriptor getPathFieldDescriptor()
public boolean hasIdField()
public java.lang.String getJcrName(java.lang.String fieldName)
fieldName
- the object attribute name (can be an atomic field, bean field or a collection field)
public java.util.Map getFieldNames()
public java.lang.String getJcrSuperTypes()
public void setJcrSuperTypes(java.lang.String superTypes)
superTypes
- Comma separated list of JCR node super typespublic java.lang.String[] getJcrMixinTypes()
public void setJcrMixinTypes(java.lang.String[] mixinTypes)
mixinTypes
- command separated list of mixinspublic MappingDescriptor getMappingDescriptor()
public void setMappingDescriptor(MappingDescriptor mappingDescriptor)
mappingDescriptor
- The mappingDescriptor to set.public void afterPropertiesSet()
public java.lang.String getExtend()
public void setExtend(java.lang.String className)
className
- public ClassDescriptor getSuperClassDescriptor()
public java.util.Collection getDescendantClassDescriptors()
public ClassDescriptor getDescendantClassDescriptor(java.lang.String nodeType)
nodeType
- the node type for which the classdescriptor is required
public void addDescendantClassDescriptor(ClassDescriptor classDescriptor)
public boolean hasDescendants()
public void setSuperClassDescriptor(ClassDescriptor superClassDescriptor)
superClassDescriptor
- The superClassDescriptor to set.public java.util.Collection getImplements()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |