L - Left end typeR - Right end typepublic abstract static class LinkManager.Link<L extends DataObject,R extends DataObject> extends IndexedLinkManager.Link<L,R> implements UIGenerator
Link objects are pseudo inner classes. We make the manage reference explicit to avoid Link being generic parameterised by itself.
The appropriate LinkManager Link should
always be subclasses to improve type safety. The getLeft()/getRight() methods are
made protected to force us to add sensibly named accessors in sub-classes
DEBUG, recordMAX_IDENTIFIER| Modifier | Constructor and Description |
|---|---|
protected |
Link(LinkManager<?,L,R> man,
Repository.Record res) |
| Modifier and Type | Method and Description |
|---|---|
ContentBuilder |
addContent(ContentBuilder builder) |
java.lang.String |
getIdentifier(int max_length)
Generate Identifier with advisory max length.
|
protected LinkManager |
getLinkManager()
allow sub-classes to get the LinkManager
don't make the return type generic its much easier for sub-classes to implement getFactory() methods
that cast correctly than have a generic signature that can be used use-fully
type checking is preserved by getting the constructor right
|
changeLeft, changeRight, getFactory, getIndexedLinkManager, getLeft, getLeftID, getRight, getRightID, isLeftPeer, isRightPeer, post_commit, pre_commit, release, setCachedLeft, setCachedRight, setupaddToMap, addToMap, addToMap, commit, delete, empty, equals, formUpdate, getContext, getDatabaseService, getFactoryTag, getID, getIdentifier, getLogger, getMap, getMap, getOwningFactory, getRecord, getRecord, getRecord, getSQLContext, getUniqueIdName, hashCode, isLocked, lock, postCreate, setContents, setDirty, setMap, toStringprotected Link(LinkManager<?,L,R> man, Repository.Record res)
protected LinkManager getLinkManager()
public java.lang.String getIdentifier(int max_length)
IdentifiedgetIdentifier in interface IdentifiedgetIdentifier in class DataObjectmax_length - advisory max lengthpublic ContentBuilder addContent(ContentBuilder builder)
addContent in interface UIGenerator