|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.schemedit.ndr.util.ServiceDescription
public class ServiceDescription
Class to construct serviceDescription elements to be used in NDR Objects (i.e., MetadataProvider and Aggregator), as described at http://ndr.comm.nsdl.org/cgi-bin/wiki.pl?addMetadataProvider.
| Nested Class Summary | |
|---|---|
class |
ServiceDescription.Image
Class representing an Image attribute of the serviceDescription. |
| Constructor Summary | |
|---|---|
ServiceDescription()
Constructor for the ServiceDescription object |
|
ServiceDescription(Element element)
|
|
ServiceDescription(String title,
String description,
String identifier)
Constructor for the ServiceDescription object, given title, description and type values. |
|
| Method Summary | |
|---|---|
void |
addContact(Contact contact)
Adds a contact instance to the serviceDescription. |
void |
addContact(String name,
String email,
String info)
Creates a Contact instance and adds it to the serviceDescription. |
Element |
asElement()
Returns serviceDescription as an dom4j.Element. |
List |
getContacts()
|
static ServiceDescription |
getFakeServiceDescription()
Gets the fakeServiceDescription attribute of the ServiceDescription class |
ServiceDescription.Image |
getImage()
|
static void |
main(String[] args)
The main program for the ServiceDescription class |
static ServiceDescription |
makeServiceDescription(DleseCollectionDocReader reader,
NDRConstants.NDRObjectType ndrObjType)
Creates a service description instance based on information provided as DleseCollectionDocReader. |
static ServiceDescription |
makeServiceDescription(NCSCollectReader ncsDocReader,
NDRConstants.NDRObjectType ndrObjType)
Creates a service description instance based on information provided as NCSCollectReader. |
void |
setDescription(String description)
Sets the description attribute of the ServiceDescription object |
void |
setIdentifier(String type)
Sets the identifier attribute of the ServiceDescription object |
void |
setImage(ServiceDescription.Image image)
Sets the image attribute of the ServiceDescription object |
void |
setImage(String brandUrl,
String title,
String width,
String height,
String alttext)
Creates an image instance and adds it to the ServiceDescription object |
void |
setTitle(String title)
Sets the title attribute of the ServiceDescription object |
void |
setType(String type)
Sets the type attribute of the ServiceDescription object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceDescription()
public ServiceDescription(String title,
String description,
String identifier)
title - NOT YET DOCUMENTEDdescription - NOT YET DOCUMENTEDtype - NOT YET DOCUMENTEDpublic ServiceDescription(Element element)
| Method Detail |
|---|
public void addContact(String name,
String email,
String info)
name - contact nameemail - contact emailinfo - contact infopublic void addContact(Contact contact)
contact - The Contact to be addedpublic List getContacts()
public void setImage(String brandUrl,
String title,
String width,
String height,
String alttext)
brandUrl - image brandUrltitle - image titlewidth - image widthheight - image heightalttext - image alttextpublic void setImage(ServiceDescription.Image image)
image - The new image valuepublic ServiceDescription.Image getImage()
public void setTitle(String title)
title - The new title valuepublic void setDescription(String description)
description - The new description valuepublic void setType(String type)
type - The new type valuepublic void setIdentifier(String type)
type - The new identifier valuepublic Element asElement()
public static void main(String[] args)
throws Exception
args - The command line arguments
Exception - NOT YET DOCUMENTED
public static ServiceDescription makeServiceDescription(NCSCollectReader ncsDocReader,
NDRConstants.NDRObjectType ndrObjType)
ncsDocReader - reader for a ncs_collect record.
public static ServiceDescription makeServiceDescription(DleseCollectionDocReader reader,
NDRConstants.NDRObjectType ndrObjType)
reader - reader representing a dlese_collect record
public static ServiceDescription getFakeServiceDescription()
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||