ch.elca.el4j.util.objectwrapper.interfaces
Interface Linked

All Superinterfaces:
Wrappable
All Known Implementing Classes:
LinkedHibernateImpl

public interface Linked
extends Wrappable

Apsect of having links to other objects. These links can be simple (fields containing the targets) or collections containing targets.

Author:
David Bernhard (DBD)
File-location:
Linked
Last check-in date:
2010-01-08 13:32:17 +0100 (Fr, 08. Jan 2010) by jonasha for revision 4083

Method Summary
 Object[] getAllLinked()
          Convenience method that returns all linked objects regardless of their location.
 Collection<?> getCollectionLinkByName(String name)
          Get a collection of links by name.
 String[] getCollectionLinkNames()
           
 Object getlinkByName(String linkName)
          Get a linked object by name.
 String[] getLinkNames()
           
 

Method Detail

getLinkNames

String[] getLinkNames()
Returns:
The names of all (simple) links this object has.

getCollectionLinkNames

String[] getCollectionLinkNames()
Returns:
The names of all collection links this object has.

getlinkByName

Object getlinkByName(String linkName)
Get a linked object by name.

Parameters:
linkName - The link name (from getLinkNames).
Returns:
The linked object.

getCollectionLinkByName

Collection<?> getCollectionLinkByName(String name)
Get a collection of links by name.

Parameters:
name - The collection link name.
Returns:
The collection.

getAllLinked

Object[] getAllLinked()
Convenience method that returns all linked objects regardless of their location.

Returns:
All linked objects.


Copyright © 2005-2011 ELCA. All Rights Reserved.