|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.model.reference.EntityReference
org.xwiki.model.reference.ClassPropertyReference
public class ClassPropertyReference
References a property in a class in a document (the description of the property).
| Constructor Summary | |
|---|---|
ClassPropertyReference(EntityReference reference)
Constructor which would raise exceptions if the source entity reference does not have the appropriate type or parent, etc. |
|
ClassPropertyReference(String propertyName,
DocumentReference classReference)
Builds a property reference for the passed property in the passed object. |
|
ClassPropertyReference(String wiki,
String space,
String page,
String propertyName)
|
|
| Method Summary | |
|---|---|
void |
setParent(EntityReference parent)
|
void |
setType(EntityType type)
|
| Methods inherited from class org.xwiki.model.reference.EntityReference |
|---|
clone, compareTo, equals, extractReference, getChild, getName, getParent, getRoot, getType, hashCode, setChild, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassPropertyReference(EntityReference reference)
reference - the raw reference to build this object reference from
public ClassPropertyReference(String propertyName,
DocumentReference classReference)
propertyName - the name of the property to create reference forclassReference - the reference to the class whose property is
public ClassPropertyReference(String wiki,
String space,
String page,
String propertyName)
wiki - the wiki of the document where the parent class of this property isspace - the space of the document where the parent class of this property ispage - the document where the parent class of this property isobjectName - the name of the parent class of this propertypropertyName - the name of the property to refer to| Method Detail |
|---|
public void setType(EntityType type)
Overridden to check the type to be a property type.
setType in class EntityReferenceEntityReference.setType(org.xwiki.model.EntityType)public void setParent(EntityReference parent)
Overridden to ensure that the parent of a property is always an object.
setParent in class EntityReferenceEntityReference.setParent(org.xwiki.model.reference.EntityReference)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||