|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.cddb.Resource
com.antelmann.cddb.Group
public class Group
Group is a resource made up by multiple individual resources; this could be an artist, a band, an orchestra, a chorus or anything similar - including yet another group.
Though normally a group would normally contain Artists rather than plain Resources, it is conceivable that a group also just contains Resource objects (let's say an orchestra or group is famous for using a specific instrument or something similar).
Role,
Artist,
Resource,
Composition,
Serialized Form| Constructor Summary | |
|---|---|
Group(String name,
String description)
|
|
| Method Summary | |
|---|---|
boolean |
add(Resource resource)
|
boolean |
contains(Resource resource)
only looks at the directly added resources (ignores matches in sub-groups) |
boolean |
find(Resource resource)
searches through sub-groups as well |
Set<Resource> |
getCompositionContributions()
provides an unmodifiable view of the embedded resources |
boolean |
remove(Resource resource)
|
| Methods inherited from class com.antelmann.cddb.Resource |
|---|
compareTo, equals, getDescription, getName, hashCode, setDescription, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Group(String name,
String description)
| Method Detail |
|---|
public boolean contains(Resource resource)
public boolean find(Resource resource)
public boolean add(Resource resource)
throws RecursiveCycleException
RecursiveCycleException - if the resource is a group that is already
contained in a sub-levelpublic boolean remove(Resource resource)
public Set<Resource> getCompositionContributions()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||