|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.ocm.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(String fieldName)
Get the BeanDescriptor to used for a specific java bean attribute |
Collection |
getBeanDescriptors()
|
String |
getClassName()
|
CollectionDescriptor |
getCollectionDescriptor(String fieldName)
Get the CollectionDescriptor to used for a specific java bean attribute |
Collection |
getCollectionDescriptors()
|
ClassDescriptor |
getDescendantClassDescriptor(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. |
Collection |
getDescendantClassDescriptors()
|
String |
getExtend()
|
FieldDescriptor |
getFieldDescriptor(String fieldName)
Get the FieldDescriptor to used for a specific java bean attribute |
Collection |
getFieldDescriptors()
|
Map |
getFieldNames()
|
FieldDescriptor |
getIdFieldDescriptor()
|
Set |
getImplements()
|
String[] |
getJcrMixinTypes()
Retrieve the mixin types. |
String |
getJcrName(String fieldName)
Get the JCR name used for one of the object attributes |
String |
getJcrSuperTypes()
Get the JCR node super types. |
String |
getJcrType()
|
MappingDescriptor |
getMappingDescriptor()
|
FieldDescriptor |
getPathFieldDescriptor()
|
ClassDescriptor |
getSuperClassDescriptor()
|
FieldDescriptor |
getUuidFieldDescriptor()
|
boolean |
hasDescendants()
|
boolean |
hasDiscriminator()
|
boolean |
hasIdField()
Check if this class has an ID |
boolean |
hasInterfaces()
|
boolean |
hasUUIdField()
Check if this class has an UUID |
boolean |
isAbstract()
|
boolean |
isInterface()
|
void |
setAbstract(boolean flag)
|
void |
setClassName(String className)
|
void |
setDiscriminator(boolean flag)
|
void |
setExtend(String className)
|
void |
setImplements(Set interfaces)
|
void |
setInterface(boolean flag)
|
void |
setJcrMixinTypes(String mixinTypes)
|
void |
setJcrMixinTypes(String[] mixinTypes)
Sets a comma separated list of mixin types. |
void |
setJcrSuperTypes(String superTypes)
Setter for JCR super types. |
void |
setJcrType(String jcrType)
|
void |
setMappingDescriptor(MappingDescriptor mappingDescriptor)
|
void |
setSuperClassDescriptor(ClassDescriptor superClassDescriptor)
|
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 String getClassName()
public void setClassName(String className)
className
- The className to set.public String getJcrType()
public void setJcrType(String jcrType)
jcrType
- The jcrType to set.public void addFieldDescriptor(FieldDescriptor fieldDescriptor)
fieldDescriptor
- the new field descriptor to addpublic void addImplementDescriptor(ImplementDescriptor implementDescriptor)
public FieldDescriptor getFieldDescriptor(String fieldName)
fieldName
- The java bean attribute name
FieldDescriptor
found or nullpublic Collection getFieldDescriptors()
FieldDescriptor
defined in this ClassDescriptorpublic void addBeanDescriptor(BeanDescriptor beanDescriptor)
beanDescriptor
- the new bean descriptor to addpublic BeanDescriptor getBeanDescriptor(String fieldName)
fieldName
- The java bean attribute name
BeanDescriptor
found or nullpublic Collection getBeanDescriptors()
BeanDescriptor
defined in this ClassDescriptorpublic void addCollectionDescriptor(CollectionDescriptor collectionDescriptor)
collectionDescriptor
- the new collection descriptor to addpublic CollectionDescriptor getCollectionDescriptor(String fieldName)
fieldName
- The java bean attribute name
CollectionDescriptor
found or nullpublic Collection getCollectionDescriptors()
BeanDescriptor
defined in this ClassDescriptorpublic FieldDescriptor getIdFieldDescriptor()
public FieldDescriptor getPathFieldDescriptor()
public FieldDescriptor getUuidFieldDescriptor()
public boolean hasIdField()
public boolean hasUUIdField()
public String getJcrName(String fieldName)
fieldName
- the object attribute name (can be an atomic field, bean field or a collection field)
public Map getFieldNames()
public String getJcrSuperTypes()
public void setJcrSuperTypes(String superTypes)
superTypes
- Comma separated list of JCR node super typespublic String[] getJcrMixinTypes()
public void setJcrMixinTypes(String[] mixinTypes)
mixinTypes
- command separated list of mixinspublic void setJcrMixinTypes(String mixinTypes)
public MappingDescriptor getMappingDescriptor()
public void setMappingDescriptor(MappingDescriptor mappingDescriptor)
mappingDescriptor
- The mappingDescriptor to set.public void afterPropertiesSet()
public String getExtend()
public void setExtend(String className)
className
- public ClassDescriptor getSuperClassDescriptor()
public Collection getDescendantClassDescriptors()
public ClassDescriptor getDescendantClassDescriptor(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 Set getImplements()
public void setImplements(Set interfaces)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |