Package org.dlese.dpc.schemedit.ndr.util
Class NsdlDcWriter
java.lang.Object
org.dlese.dpc.schemedit.ndr.util.NsdlDcWriter
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.
- Version:
- $Id: NsdlDcWriter.java,v 1.2 2009/03/20 23:33:56 jweather Exp $
- Author:
- Jonathan Ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the NsdlDcWriter objectNsdlDcWriter(String title, String description, String subject) Constructor for the NsdlDcWriter object, given title, description and type values. -
Method Summary
Modifier and TypeMethodDescriptionorg.dom4j.ElementReturns serviceDescription as an dom4j.Element.static voidThe main program for the NsdlDcWriter classvoidsetDescription(String description) Sets the description attribute of the NsdlDcWriter objectvoidsetIdentifier(String type) Sets the identifier attribute of the NsdlDcWriter objectvoidSets the title attribute of the NsdlDcWriter objectvoidSets the type attribute of the NsdlDcWriter object
-
Constructor Details
-
NsdlDcWriter
public NsdlDcWriter()Constructor for the NsdlDcWriter object -
NsdlDcWriter
Constructor for the NsdlDcWriter object, given title, description and type values.- Parameters:
title- NOT YET DOCUMENTEDdescription- NOT YET DOCUMENTEDtype- NOT YET DOCUMENTED
-
-
Method Details
-
setTitle
Sets the title attribute of the NsdlDcWriter object- Parameters:
title- The new title value
-
setDescription
Sets the description attribute of the NsdlDcWriter object- Parameters:
description- The new description value
-
setType
Sets the type attribute of the NsdlDcWriter object- Parameters:
type- The new type value
-
setIdentifier
Sets the identifier attribute of the NsdlDcWriter object- Parameters:
type- The new identifier value
-
asElement
public org.dom4j.Element asElement()Returns serviceDescription as an dom4j.Element.- Returns:
- NOT YET DOCUMENTED
-
main
The main program for the NsdlDcWriter class- Parameters:
args- The command line arguments- Throws:
Exception- NOT YET DOCUMENTED
-