|
||||||||||
| 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. |
protected |
ClassPropertyReference(EntityReference reference,
EntityReference oldReference,
EntityReference newReference)
Clone an ClassPropertyReference, but replace one of the parent in the chain by a new one. |
|
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)
Deprecated. |
| Method Summary | |
|---|---|
ClassPropertyReference |
replaceParent(EntityReference oldParent,
EntityReference newParent)
Return a clone of this reference, but with one of its parent replaced by another one. |
protected void |
setParent(EntityReference parent)
Entity reference are immutable since 3.3M2, so this method is now protected. |
protected void |
setType(EntityType type)
Entity reference are immutable since 3.3M2, so this method is now protected. |
| Methods inherited from class org.xwiki.model.reference.EntityReference |
|---|
appendParent, compareTo, equals, extractReference, getName, getParameter, getParent, getReversedReferenceChain, getRoot, getType, hashCode, removeParent, setName, setParameter, setParameters, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassPropertyReference(EntityReference reference)
reference - the raw reference to build this object reference from
protected ClassPropertyReference(EntityReference reference,
EntityReference oldReference,
EntityReference newReference)
reference - the reference that is clonedoldReference - the old parent that will be replacednewReference - the new parent that will replace oldReference in the chain
public ClassPropertyReference(String propertyName,
DocumentReference classReference)
propertyName - the name of the property to create reference forclassReference - the reference to the class whose property is
@Deprecated
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 ispropertyName - the name of the property to refer to| Method Detail |
|---|
protected void setType(EntityType type)
Overridden to check the type to be a property type.
setType in class EntityReferencetype - the type for this entityEntityReference.setType(org.xwiki.model.EntityType)protected void setParent(EntityReference parent)
Overridden to ensure that the parent of a property is always an object.
setParent in class EntityReferenceparent - the parent for this entity, may be null for a root entity.EntityReference.setParent(org.xwiki.model.reference.EntityReference)
public ClassPropertyReference replaceParent(EntityReference oldParent,
EntityReference newParent)
EntityReference
replaceParent in class EntityReferenceoldParent - the old parent that will be replacednewParent - the new parent that will replace oldParent in the chain. If the same as oldParent,
this is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||