|
||||||||||
| 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.ObjectPropertyReference
public class ObjectPropertyReference
References a property in an object in a document (the value of the property).
| Constructor Summary | |
|---|---|
ObjectPropertyReference(EntityReference reference)
Constructor which would raise exceptions if the source entity reference does not have the appropriate type or parent, etc. |
|
ObjectPropertyReference(String propertyName,
ObjectReference objectReference)
Builds a property reference for the passed property in the passed object. |
|
ObjectPropertyReference(String wiki,
String space,
String page,
String objectName,
String propertyName)
|
|
| Method Summary | |
|---|---|
void |
setParent(EntityReference parent)
Overridden to ensure that the parent of a property is always an object. |
void |
setType(EntityType type)
Overridden to check the type to be a property 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 ObjectPropertyReference(EntityReference reference)
reference - the raw reference to build this object reference from
public ObjectPropertyReference(String propertyName,
ObjectReference objectReference)
propertyName - the name of the property to create reference forobjectReference - the reference to the object whose property is
public ObjectPropertyReference(String wiki,
String space,
String page,
String objectName,
String propertyName)
wiki - the wiki of the document where the parent object of this property isspace - the space of the document where the parent object of this property ispage - the document where the parent object of this property isobjectName - the name of the parent object of this propertypropertyName - the name of the property to refer to| Method Detail |
|---|
public void setType(EntityType type)
setType in class EntityReferenceEntityReference.setType(org.xwiki.model.EntityType)public void setParent(EntityReference parent)
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 | |||||||||