|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kb.oai.ore.AggregateBase
se.kb.oai.ore.Aggregation
public class Aggregation
An aggregation is a set of related resources (see AggregatedResource
), grouped
together such that the set can be treated as a single resource. This class is used to
manage the individual resources and also holds information for the aggregation as
a whole.
Field Summary |
---|
Fields inherited from class se.kb.oai.ore.AggregateBase |
---|
id, metadata, types |
Constructor Summary | |
---|---|
Aggregation(String id)
Create an Aggregation with the specified id. |
|
Aggregation(URI id)
Create an Aggregation with the specified id. |
Method Summary | |
---|---|
void |
addResource(AggregatedResource resource)
Add an AggreagatedResource to this Aggregation . |
AggregatedResource |
getResource(int index)
Get the AggreagatedResource at the specified index. |
AggregatedResource |
getResource(String id)
Get the AggreagatedResource with the given id. |
AggregatedResource |
getResource(URI id)
Get the AggreagatedResource with the given id. |
List<AggregatedResource> |
getResources()
Get this Aggregations list of AggreagatedResources . |
int |
numberOfResources()
Get the number of resources that this Aggregation has. |
void |
setResources(List<AggregatedResource> resources)
Set the list of resources. |
Methods inherited from class se.kb.oai.ore.AggregateBase |
---|
addMetadata, addType, getId, getMetadata, getMetadata, getTypes, setId, setMetadata, setTypes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Aggregation(String id) throws URISyntaxException
Aggregation
with the specified id.
id
- the id
URISyntaxException
public Aggregation(URI id)
Aggregation
with the specified id.
id
- the idMethod Detail |
---|
public int numberOfResources()
Aggregation
has.
public List<AggregatedResource> getResources()
Aggregations
list of AggreagatedResources
.
public AggregatedResource getResource(int index)
AggreagatedResource
at the specified index.
(There is no guarantee of the ordering of the resources for different
parsings of the same resource map!)
index
- the index
public AggregatedResource getResource(String id) throws URISyntaxException
AggreagatedResource
with the given id.
id
- the id of the resource
URISyntaxException
public AggregatedResource getResource(URI id)
AggreagatedResource
with the given id.
id
- the id of the resource
null
if no matchpublic void setResources(List<AggregatedResource> resources)
resources
- the list of resourcespublic void addResource(AggregatedResource resource)
AggreagatedResource
to this Aggregation
.
resource
- a resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |