|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Composite An interface for SPKI components that have an internal structure. Used for traversing SPKI data structures.
Method Summary | |
int |
add(Component addThis)
Add a new component to a composite. |
boolean |
check(Component addition)
Checks if the component to be added is of correct type. |
Component |
get(Component childClass)
Returns the first element x that fullfills (x instanceof childClass). |
Component |
get(int number)
Get returns the wanted child by it's number. |
java.util.Iterator |
iterator()
Returns an iterator over all the children. |
boolean |
remove(Component child)
Removes the first occurrence of this object. |
int |
size()
|
Methods inherited from interface fi.hut.tcm.spki.Component |
accept |
Method Detail |
public int add(Component addThis) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
public boolean check(Component addition) throws java.lang.IllegalStateException
public Component get(int number) throws java.lang.ArrayIndexOutOfBoundsException
public Component get(Component childClass)
public boolean remove(Component child)
public java.util.Iterator iterator()
public int size()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |