|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.profile.ResourceAttributes
public class ResourceAttributes
Resource attribuets. Objects of this class are resource attributes of profiles.
| Field Summary | |
|---|---|
protected String |
aggregation
Aggregation. |
protected String |
clazz
Clazz. |
protected List |
contexts
Contexts, one or more list of Strings. |
protected List |
contributors
Contributors. |
protected List |
coverages
Coverages. |
protected List |
creators
Creators. |
protected List |
dates
Dates. |
protected String |
description
Descriptions. |
protected List |
formats
Formats. |
protected String |
identifier
Identifer. |
protected List |
languages
Languages. |
protected List |
locations
Locations, zero or more Strings. |
protected Profile |
profile
Profile I describe. |
protected List |
publishers
Publishers. |
protected List |
relations
Relations. |
protected List |
rights
Rights. |
protected List |
sources
Sources. |
protected List |
subjects
Subjects. |
protected String |
title
Titles. |
protected List |
types
Types. |
| Constructor Summary | |
|---|---|
ResourceAttributes()
Create blank profile attributes. |
|
ResourceAttributes(Profile profile)
Create blank profile attributes belonging to a certain profile. |
|
ResourceAttributes(Profile profile,
Node root)
Create resource attributes from an XML document. |
|
ResourceAttributes(Profile profile,
String identifier,
String title,
List formats,
String description,
List creators,
List subjects,
List publishers,
List contributors,
List dates,
List types,
List sources,
List languages,
List relations,
List coverages,
List rights,
List contexts,
String aggregation,
String clazz,
List locations)
Create resource attributes from constituent attributes. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
int |
compareTo(Object rhs)
|
static Document |
createResAttributesDocument()
Create a <resAttributes> document using the profiles DTD. |
boolean |
equals(Object rhs)
|
List |
getContributors()
Get the contributors. |
List |
getCoverages()
Get the coverages. |
List |
getCreators()
Get the creators. |
List |
getDates()
Get the dates. |
String |
getDescription()
Get the description. |
List |
getFormats()
Get the formats. |
String |
getIdentifier()
Get the identifier. |
List |
getLanguages()
Get the languages. |
List |
getPublishers()
Get the publishers. |
List |
getRelations()
Get the relations. |
String |
getResAggregation()
Get the aggregation. |
String |
getResClass()
Get the class. |
List |
getResContexts()
Get the contexts. |
List |
getResLocations()
Get the locations. |
List |
getRights()
Get the rights. |
List |
getSources()
Get the sources. |
List |
getSubjects()
Get the subjects. |
String |
getTitle()
Get the title. |
List |
getTypes()
Get the types. |
URI |
getURI()
|
int |
hashCode()
|
protected void |
initializeLists()
Initialize all the various List fields. |
void |
setDescription(String description)
Set the description. |
void |
setIdentifier(String identifier)
Set the identifier. |
void |
setResAggregation(String aggregation)
Set the aggregation. |
void |
setResClass(String clazz)
Set the class. |
void |
setTitle(String title)
Set the title. |
String |
toString()
|
Node |
toXML(Document doc)
Serialize this attributes as an XML node. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Profile profile
protected String identifier
protected String title
protected List formats
protected String description
protected List creators
protected List subjects
protected List publishers
protected List contributors
protected List dates
protected List types
protected List sources
protected List languages
protected List relations
protected List coverages
protected List rights
protected List contexts
Strings.
protected String aggregation
protected String clazz
protected List locations
Strings.
| Constructor Detail |
|---|
public ResourceAttributes()
public ResourceAttributes(Profile profile)
profile - Owning profile.
public ResourceAttributes(Profile profile,
Node root)
profile - Owning profile.root - The <resAttributes> element.
public ResourceAttributes(Profile profile,
String identifier,
String title,
List formats,
String description,
List creators,
List subjects,
List publishers,
List contributors,
List dates,
List types,
List sources,
List languages,
List relations,
List coverages,
List rights,
List contexts,
String aggregation,
String clazz,
List locations)
String.
profile - Owning profile.identifier - The unique identifier.title - Title of the resource.formats - Format of the resource.description - Description of the resource.creators - Who/what created the resource.subjects - Subject matter covered by the resource.publishers - Who/what published the resrouce.contributors - Who/what contributed to the resource.dates - When the resource was created (collection of Date.types - Type of the resource.sources - Source of the resource.languages - Language in which the resource is written.relations - Relationships to the resource.coverages - Coverage of the resource.rights - Rights of the resource.contexts - Context of the resource.aggregation - Aggregation of the resource.clazz - Class of the resource.locations - Location of the resource.| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object rhs)
equals in class Objectpublic int compareTo(Object rhs)
compareTo in interface Comparablepublic String toString()
toString in class Objectpublic Object clone()
clone in class Objectpublic URI getURI()
public String getIdentifier()
public void setIdentifier(String identifier)
identifier - The identifier.public String getTitle()
public void setTitle(String title)
title - The title.public List getFormats()
public void setDescription(String description)
description - The new description.public String getDescription()
public List getCreators()
public List getSubjects()
public List getPublishers()
public List getContributors()
public List getDates()
public List getTypes()
public List getSources()
public List getLanguages()
public List getRelations()
public List getCoverages()
public List getRights()
public List getResContexts()
Strings.public String getResAggregation()
public void setResAggregation(String aggregation)
aggregation - The aggregation.public String getResClass()
public void setResClass(String clazz)
clazz - The class.public List getResLocations()
Strings.protected void initializeLists()
List fields.
public Node toXML(Document doc)
throws DOMException
toXML in interface Documentabledoc - The document that will own this node.
DOMException - If an error occurs creating the XML nodes.public static Document createResAttributesDocument()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||