@Test public void setXClassReference() { BaseObject baseObject = new BaseObject(); DocumentReference documentReference = new DocumentReference("wiki", "space", "page"); baseObject.setDocumentReference(documentReference); DocumentReference classReference = new DocumentReference("otherwiki", "space", "class"); baseObject.setXClassReference(classReference); assertEquals(new DocumentReference("wiki", "space", "class"), baseObject.getXClassReference()); assertEquals(new EntityReference("class", EntityType.DOCUMENT, new EntityReference("space", EntityType.SPACE)), baseObject.getRelativeXClassReference()); }
@Override public void setXClassReference(EntityReference xClassReference) { super.setXClassReference(xClassReference); this.referenceCache = null; }
BaseObject extends BaseCollection<BaseObjectReference> implements ObjectInterface, Serializable, Cloneable { @Override public void setXClassReference(EntityReference xClassReference) { super.setXClassReference(xClassReference); this.referenceCache = null; } }
BaseObject extends BaseCollection<BaseObjectReference> implements ObjectInterface, Serializable, Cloneable { @Override public void setXClassReference(EntityReference xClassReference) { super.setXClassReference(xClassReference); this.referenceCache = null; }  }
BaseObject extends BaseCollection<BaseObjectReference> implements ObjectInterface, Serializable, Cloneable { @Override public void setXClassReference(EntityReference xClassReference) { super.setXClassReference(xClassReference); this.referenceCache = null; }  @Deprecated @Override String getName(); @Deprecated @Override void setName(String name); @Override void setNumber(int number); @Override void setXClassReference(EntityReference xClassReference); void displayHidden(StringBuffer buffer, String name, String prefix, XWikiContext context); void displayView(StringBuffer buffer, String name, String prefix, XWikiContext context); void displayEdit(StringBuffer buffer, String name, String prefix, XWikiContext context); String displayHidden(String name, String prefix, XWikiContext context); String displayView(String name, String prefix, XWikiContext context); String displayEdit(String name, String prefix, XWikiContext context); String displayHidden(String name, XWikiContext context); String displayView(String name, XWikiContext context); String displayEdit(String name, XWikiContext context); @Override BaseObject clone(); BaseObject duplicate(); BaseObject duplicate(DocumentReference documentReference); @Override boolean equals(Object obj); @Override int hashCode(); @Override void fromXML(Element oel); @Override List<ObjectDiff> getDiff(Object oldEntity, XWikiContext context); com.xpn.xwiki.api.Object newObjectApi(BaseObject obj, XWikiContext context); void set(String fieldname, java.lang.Object value, XWikiContext context); String getGuid(); void setGuid(String guid); @Override void setOwnerDocument(XWikiDocument ownerDocument); }
BaseObject extends BaseCollection<BaseObjectReference> implements ObjectInterface, Serializable, Cloneable { @Override public void setXClassReference(EntityReference xClassReference) { super.setXClassReference(xClassReference); this.referenceCache = null; }  @Deprecated @Override String getName(); @Deprecated @Override void setName(String name); @Override void setNumber(int number); @Override void setXClassReference(EntityReference xClassReference); void displayHidden(StringBuffer buffer, String name, String prefix, XWikiContext context); void displayView(StringBuffer buffer, String name, String prefix, XWikiContext context); void displayEdit(StringBuffer buffer, String name, String prefix, XWikiContext context); String displayHidden(String name, String prefix, XWikiContext context); String displayView(String name, String prefix, XWikiContext context); String displayEdit(String name, String prefix, XWikiContext context); String displayHidden(String name, XWikiContext context); String displayView(String name, XWikiContext context); String displayEdit(String name, XWikiContext context); @Override BaseObject clone(); BaseObject duplicate(); BaseObject duplicate(DocumentReference documentReference); @Override boolean equals(Object obj); @Override int hashCode(); @Override void fromXML(Element oel); @Override List<ObjectDiff> getDiff(Object oldEntity, XWikiContext context); com.xpn.xwiki.api.Object newObjectApi(BaseObject obj, XWikiContext context); void set(String fieldname, java.lang.Object value, XWikiContext context); String getGuid(); void setGuid(String guid); @Override void setOwnerDocument(XWikiDocument ownerDocument);  }