public class ResourceAttributes extends Object implements Serializable, Cloneable, Comparable, Documentable
Modifier and Type | Field and Description |
---|---|
protected String |
aggregation
Aggregation.
|
protected String |
clazz
Clazz.
|
protected List |
contexts
Contexts, one or more list of
String s. |
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
String s. |
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 String aggregation
protected String clazz
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.public int compareTo(Object rhs)
compareTo
in interface Comparable
public 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()
String
s.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()
String
s.protected void initializeLists()
List
fields.public Node toXML(Document doc) throws DOMException
toXML
in interface Documentable
doc
- The document that will own this node.DOMException
- If an error occurs creating the XML nodes.public static Document createResAttributesDocument()
Copyright © 1999-2015 Apache OODT. All Rights Reserved.