|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.replication.unit.ReferenceItem
ReferenceItem defines a link between a PartItem and a referenced DocumentItem.
Supported API: false
Extendable: false
PartItem
,
DocumentItem
Field Summary | |
private boolean |
modified
|
private PartItem |
referencedBy
|
private WTPartReferenceLink |
referenceLink
|
private DocumentItem |
references
|
Constructor Summary | |
ReferenceItem()
Create an empty ReferenceItem. |
|
ReferenceItem(PartItem referenced_by,
DocumentItem references)
Create a ReferenceItem associating the specified PartItem and DocumentItem. |
|
ReferenceItem(PartItem referenced_by,
DocumentItem references,
WTPartReferenceLink reference_link)
Create a ReferenceItem associating the specified PartItem and DocumentItem using the existing ReferenceInterfaceLink. |
Method Summary | |
void |
create()
Create a new WTPartReferenceLink using the current state of this object. |
void |
delete()
Delete the referenced WTPartReferenceLink. |
PartItem |
getReferencedBy()
Get the PartItem to be referenced by the document item |
WTPartReferenceLink |
getReferenceLink()
Get the actual ReferenceInterfaceLink. |
DocumentItem |
getReferences()
Return the referenced DocumentItem |
boolean |
isModified()
Return the modified flag. |
void |
setModified(boolean modified)
Set the modified flag. |
void |
setReferencedBy(PartItem referencedBy)
Set the PartItem to be referenced by the document item |
void |
setReferenceLink(WTPartReferenceLink usage_link)
Set the actual ReferenceInterfaceLink. |
void |
setReferences(DocumentItem references)
Set the referenced DocumentItem |
String |
toString()
Return a string for debugging. |
void |
update()
Update the WTPartReferenceLink using the current state of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private WTPartReferenceLink referenceLink
private boolean modified
private DocumentItem references
private PartItem referencedBy
Constructor Detail |
public ReferenceItem()
public ReferenceItem(PartItem referenced_by, DocumentItem references)
referenced_by
- the PartItem referencedreferences
- the DocumentItem referencedpublic ReferenceItem(PartItem referenced_by, DocumentItem references, WTPartReferenceLink reference_link)
referenced_by
- the PartItem referencedreferences
- the DocumentItem referencedreference_link
- the existing reference linkMethod Detail |
public void setModified(boolean modified)
modified
- the new value for the modified flagpublic boolean isModified()
public void create() throws WTException
create
in interface Updateable
WTException
WTException
public void update() throws WTException
update
in interface Updateable
WTException
WTException
public void delete() throws WTException
delete
in interface Updateable
WTException
WTException
public void setReferenceLink(WTPartReferenceLink usage_link)
public WTPartReferenceLink getReferenceLink()
public void setReferences(DocumentItem references)
public DocumentItem getReferences()
public void setReferencedBy(PartItem referencedBy)
referencedBy
- the referenced PartItempublic PartItem getReferencedBy()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |