AROM-2_2_13

arom.kr.model
Class Link

java.lang.Object
  |
  +--arom.kr.model.Link

public class Link
extends Object

A Link is an object that maps role names to AROM objects. A Link cannot contain duplicate role name and a role name match to exactly one object.

Link objects are immutable objects.

Author:
Christophe Bruley

Constructor Summary
Link(String[] roleNames, AMObject[] objects)
           
 
Method Summary
 boolean containsObject(AMObject object)
           
 boolean containsRoleName(String roleName)
           
 AMObject get(String roleName)
           
 Iterator instances()
           
 Iterator roleNames()
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Link

public Link(String[] roleNames,
            AMObject[] objects)
     throws IllegalArgumentException
Method Detail

instances

public Iterator instances()

get

public AMObject get(String roleName)

roleNames

public Iterator roleNames()

size

public int size()

containsRoleName

public boolean containsRoleName(String roleName)

containsObject

public boolean containsObject(AMObject object)

AROM-2_2_13