public interface DomainObjectLink
DomainObjectNode
s.Modifier and Type | Method and Description |
---|---|
<R> R |
accept(DomainObjectLinkVisitor<R,?> visitor)
Visitor pattern for
DomainObjectLinkVisitor s |
<R,P> R |
accept(DomainObjectLinkVisitor<R,P> visitor,
P p)
Visitor pattern for
DomainObjectLinkVisitor s |
String |
describe()
Gets a string representation of the link.
|
List<? extends DomainObjectBase> |
findDependantsOfObject(DomainObjectBase dependency)
Given a dependency, this will find all dependant objects that have this dependency.
|
DomainObjectNode |
getDependant()
Gets the
DomainObjectNode that is the dependant. |
DomainObjectNode |
getDependency()
Gets the
DomainObjectNode that is the dependency |
DomainObjectBase |
getDependencyObject(DomainObjectBase dependant)
This function will return the dependency object for a given dependant.
|
DomainObjectBase |
getDependencyObjectIdOnly(DomainObjectBase dependant)
Same as
getDependencyObject(DomainObjectBase) , but the returned object will only
have the id set. |
boolean |
isWeakDependency()
A weak dependency is one that isn't strictly enforced, and should be considered after non-
weak dependencies.
|
void |
setDependencyObject(DomainObjectBase dependant,
DomainObjectBase dependency)
This function will set the dependency object for a given dependant.
|
String |
shortDescribe()
A very short description (usually one word)
|
<R> R accept(DomainObjectLinkVisitor<R,?> visitor)
DomainObjectLinkVisitor
s<R,P> R accept(DomainObjectLinkVisitor<R,P> visitor, P p)
DomainObjectLinkVisitor
sDomainObjectNode getDependant()
DomainObjectNode
that is the dependant.DomainObjectNode getDependency()
DomainObjectNode
that is the dependencyDomainObjectBase getDependencyObject(DomainObjectBase dependant)
DomainObjectBase getDependencyObjectIdOnly(DomainObjectBase dependant)
getDependencyObject(DomainObjectBase)
, but the returned object will only
have the id set. Use this as a performance booster when you only need the id and class.void setDependencyObject(DomainObjectBase dependant, DomainObjectBase dependency)
List<? extends DomainObjectBase> findDependantsOfObject(DomainObjectBase dependency)
boolean isWeakDependency()
String describe()
String shortDescribe()
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.