|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kb.oai.ore.AggregateBase
public abstract class AggregateBase
Abstract base class for those classes that make up an aggregation, i.e.
Aggregation
and AggregatedResource
. It can be used to
get and set Types
and Metadata
.
Field Summary | |
---|---|
protected URI |
id
|
protected List<Metadata> |
metadata
|
protected List<Type> |
types
|
Constructor Summary | |
---|---|
AggregateBase(URI id)
Creates an AggregateBase with the specified id. |
Method Summary | |
---|---|
void |
addMetadata(Metadata meta)
Add a Metadata to the list of metadata. |
void |
addType(Type type)
Add a Type to this object. |
URI |
getId()
Get the id. |
List<Metadata> |
getMetadata()
Get a list of all the Metadata for this object. |
List<Metadata> |
getMetadata(QName name)
Get a list of only the Metadata that matches
the qualified name for this object. |
List<Type> |
getTypes()
Get all types associated with this object. |
void |
setId(URI id)
Set the id. |
void |
setMetadata(List<Metadata> metadata)
Set the metadata for this object. |
void |
setTypes(List<Type> types)
Set the types associated with this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected URI id
protected List<Type> types
protected List<Metadata> metadata
Constructor Detail |
---|
public AggregateBase(URI id)
AggregateBase
with the specified id.
id
- the idMethod Detail |
---|
public URI getId()
public void setId(URI id)
id
- the idpublic List<Type> getTypes()
public void setTypes(List<Type> types)
types
- a list of typespublic void addType(Type type)
Type
to this object.
type
- a typepublic List<Metadata> getMetadata()
Metadata
for this object.
public List<Metadata> getMetadata(QName name)
Metadata
that matches
the qualified name for this object.
name
- a qualified name
public void setMetadata(List<Metadata> metadata)
metadata
- a list with metadatapublic void addMetadata(Metadata meta)
Metadata
to the list of metadata.
meta
- a metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |