|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.caleigo.core.Qualifier
org.caleigo.core.ProxyQualifier
A ProxyQualifier acts as a proxy to another Qualifier object that may set by simple access a methods. All events are forwarded transparently. If a ProxyQualifier does not have a source object it does not qualify any entities of any type, making them effectivelly useless. In other words it allways returns false on calls to doesSelect, canSelect and canUniquelySelect.
Nested Class Summary |
Nested classes inherited from class org.caleigo.core.Qualifier |
Qualifier.RelayListener |
Constructor Summary | |
ProxyQualifier()
Creates new ProxyQualifier |
|
ProxyQualifier(Qualifier qualifier)
Creates new ProxyQualifier |
Method Summary | |
void |
addProxyListener(IProxyListener listener)
Adds IProxyListener to receive notifications of performed data operations on the Qualifier object. |
boolean |
canDirectlyQualify(IEntityDescriptor entityDescriptor)
This abstract method must return true if the qualifier can select entities of the type defined by the provided entity descriptor without the nead of any complementary data. |
boolean |
canQualify(IEntityDescriptor entityDescriptor)
This abstract method must return true if the qualifier can select entities of the type defined by the provided entity descriptor. |
boolean |
canUniquelyQualify(IEntityDescriptor entityDescriptor)
This abstract method must return true if the qualifier can uniquely select entities of the type defined by the provided entity descriptor. |
boolean |
doesQualify(IEntity entity)
This abstract method must return true if the qualifier does select the provided entity object. |
protected void |
fireProxyEvent(int eventType)
Fires a ProxyEvent with the provided operation type to all registered IProxyListener objects. |
Qualifier |
getRemoteQualifier()
Access method that returns the remote Qualifier of the proxy. |
Qualifier |
getSourceQualifier()
Access method that returns the source Qualifier of the proxy. |
boolean |
hasRemoteQualifier()
Boolean access method that returns true if the proxy has a remote Qualifier if false then getRemoteQualifier() will return null. |
boolean |
hasSourceQualifier()
Boolean access method that returns true if the proxy has a source Qualifier if false then getSourceQualifier() will return null. |
void |
removeProxyListener(IProxyListener listener)
Removes the specified IProxyListener from the Qualifier object. |
void |
setRemoteQualifier(Qualifier qualifier)
Optional mutation method that throws an UnsupportedOperationException if the implementing class does not support the method. |
java.lang.String |
toString()
The toString method returns an "abstract" expression of what the qualifier selects. |
Methods inherited from class org.caleigo.core.Qualifier |
addQualifierListener, and, and, and, combine, create, create, fireContentChangedEvent, fireQualifierEvent, fireStructureChangedEvent, negate, or, or, or, removeQualifierListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ProxyQualifier()
public ProxyQualifier(Qualifier qualifier)
Method Detail |
public boolean doesQualify(IEntity entity)
doesQualify
in class Qualifier
public boolean canQualify(IEntityDescriptor entityDescriptor)
canQualify
in class Qualifier
public boolean canDirectlyQualify(IEntityDescriptor entityDescriptor)
canDirectlyQualify
in class Qualifier
public boolean canUniquelyQualify(IEntityDescriptor entityDescriptor)
canUniquelyQualify
in class Qualifier
public java.lang.String toString()
public boolean hasRemoteQualifier()
public Qualifier getRemoteQualifier()
public boolean hasSourceQualifier()
public Qualifier getSourceQualifier()
public void setRemoteQualifier(Qualifier qualifier)
public void addProxyListener(IProxyListener listener)
public void removeProxyListener(IProxyListener listener)
protected void fireProxyEvent(int eventType)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |