Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.core.references
Class SystemReferencingObject

java.lang.Object
  extended by 

org.eclipse.rse.core.model.RSEPersistableObject
      extended by 

org.eclipse.rse.core.model.PropertySetContainer
          extended by 

org.eclipse.rse.core.model.RSEModelObject
              extended by 
org.eclipse.rse.core.references.SystemReferencingObject
All Implemented Interfaces:
IPropertySetContainer, IRSEModelObject, IRSEPersistableContainer, IRSEBaseReferencingObject, IRSEReferencingObject
Direct Known Subclasses:
SystemFilterReference

public abstract class SystemReferencingObject
extends RSEModelObject
implements IRSEReferencingObject

A class to encapsulate the operations required of an object which is merely a reference to another object, something we call a shadow. Such shadows are needed to support a UI which displays the same object in multiple places. To enable that, it is necessary not to use the same physical object in each UI representation as the UI will only know how to update/refresh the first one it finds.

Since:
org.eclipse.rse.core 3.0

Field Summary
protected  boolean referenceBroken
           
 
Fields inherited from interface org.eclipse.rse.core.model. IRSEPersistableContainer
NO_CHILDREN
 
Constructor Summary
protected SystemReferencingObject ()
          Default constructor.
 
Method Summary
  String getDescription ()
           
protected   SystemReferencingObjectHelper getHelper ()
           
  IRSEBaseReferencedObject getReferencedObject ()
           
 boolean isReferenceBroken ()
          Return true if this reference is currently broken/unresolved
 int removeReference ()
          Fastpath to getReferencedObject().removeReference(this).
 void setReferenceBroken (boolean broken)
          Set to true if this reference is currently broken/unresolved
 void setReferencedObject ( IRSEBaseReferencedObject obj)
          Set the object to which we reference
 
Methods inherited from class org.eclipse.rse.core.model. PropertySetContainer
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet
 
Methods inherited from class org.eclipse.rse.core.model. RSEPersistableObject
compareStrings, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.rse.core.model. IRSEModelObject
getName
 
Methods inherited from interface org.eclipse.rse.core.model. IPropertySetContainer
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet
 
Methods inherited from interface org.eclipse.rse.core.model. IRSEPersistableContainer
commit, getPersistableChildren, getPersistableParent, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored
 

Field Detail

referenceBroken

protected boolean referenceBroken
Constructor Detail

SystemReferencingObject

protected SystemReferencingObject()
Default constructor.

Method Detail

setReferencedObject

public void setReferencedObject(
IRSEBaseReferencedObject obj)
Description copied from interface: IRSEBaseReferencingObject
Set the object to which we reference

Specified by:
setReferencedObject in interface IRSEBaseReferencingObject
Parameters:
obj - the object to reference

getReferencedObject

public 
IRSEBaseReferencedObject getReferencedObject()
Specified by:
getReferencedObject in interface IRSEBaseReferencingObject
Returns:
the object which we reference

removeReference

public int removeReference()
Description copied from interface: IRSEBaseReferencingObject
Fastpath to getReferencedObject().removeReference(this).

Specified by:
removeReference in interface IRSEBaseReferencingObject
Returns:
new reference count of master object

setReferenceBroken

public void setReferenceBroken(boolean broken)
Set to true if this reference is currently broken/unresolved

Specified by:
setReferenceBroken in interface IRSEBaseReferencingObject
Parameters:
broken - true if this reference is currently broken/unresolved

isReferenceBroken

public boolean isReferenceBroken()
Return true if this reference is currently broken/unresolved

Specified by:
isReferenceBroken in interface IRSEBaseReferencingObject
Returns:
true if this reference is currently broken/unresolved

getDescription

public 
String getDescription()
Specified by:
getDescription in interface IRSEModelObject
Overrides:
getDescription in class RSEModelObject

getHelper

protected final 
SystemReferencingObjectHelper getHelper()

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire