edu.indiana.extreme.lead.metadata.util
Class MinimalLEADMetadata

java.lang.Object
  extended by edu.indiana.extreme.lead.metadata.util.MinimalLEADMetadata

public class MinimalLEADMetadata
extends java.lang.Object


Field Summary
static java.text.DateFormat calendarDate
          Calendar dates need to be in YYYYMMDD format (FGDC-STD-001-1998, p.
static java.lang.String DEFAULT_ACCCONST
           
static java.lang.String DEFAULT_METSTDN
           
static java.lang.String DEFAULT_METSTDV
           
static java.lang.String DEFAULT_RESOURCEID
           
static java.lang.String[] DEFAULT_THEMEKEY
           
static java.lang.String DEFAULT_THEMEKT
           
static java.lang.String DEFAULT_UPDATE
           
static java.lang.String DEFAULT_USECONST
           
static java.lang.String NO_DESCRIPTION_PROVIDED
           
static java.text.DateFormat timeDate
          Time dates need to be in HHMMSSSSshhmm format (FGDC-STD-001-1998, p.
 
Constructor Summary
MinimalLEADMetadata(java.lang.String userDN, java.lang.String name, java.lang.String description)
           
 
Method Summary
 void addLink(java.lang.String link)
          Add a link to this object.
 void construct()
          Constructs the LEAD Metadata Schema document corresponding to this object's attributes.
 java.lang.String getDescription()
           
 edu.indiana.extreme.lead.metadata.LEADresourceDocument getLeadResourceDoc()
           
 java.lang.String getName()
           
 java.lang.String getResourceId()
           
 java.lang.String getUserDN()
           
static void main(java.lang.String[] args)
          Takes three arguments.
 void setDescription(java.lang.String description)
           
 void setLeadResourceDoc(edu.indiana.extreme.lead.metadata.LEADresourceDocument leadResourceDoc)
           
 void setName(java.lang.String name)
           
 void setResourceId(java.lang.String resourceId)
          Use this method to override the default resource identifier used in the metadata.
 void setUserDN(java.lang.String userDN)
           
 java.lang.String toString()
          Calls construct() if it hasn't already been called, before returning string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

calendarDate

public static final java.text.DateFormat calendarDate
Calendar dates need to be in YYYYMMDD format (FGDC-STD-001-1998, p. viii)


timeDate

public static final java.text.DateFormat timeDate
Time dates need to be in HHMMSSSSshhmm format (FGDC-STD-001-1998, p. ix) where HHMMSSSS is hour, minutes and seconds with decimal part to desired precision. s is "+" or "-" for timezone offset and hhmm is the amount of timezone offset in hours and minutes. This date format follows this precisely, which the addition that it gives millisecond (three decimal places) precision.


DEFAULT_RESOURCEID

public static final java.lang.String DEFAULT_RESOURCEID
See Also:
Constant Field Values

DEFAULT_UPDATE

public static final java.lang.String DEFAULT_UPDATE
See Also:
Constant Field Values

DEFAULT_ACCCONST

public static final java.lang.String DEFAULT_ACCCONST
See Also:
Constant Field Values

DEFAULT_USECONST

public static final java.lang.String DEFAULT_USECONST
See Also:
Constant Field Values

DEFAULT_THEMEKT

public static final java.lang.String DEFAULT_THEMEKT
See Also:
Constant Field Values

DEFAULT_THEMEKEY

public static final java.lang.String[] DEFAULT_THEMEKEY

DEFAULT_METSTDN

public static final java.lang.String DEFAULT_METSTDN
See Also:
Constant Field Values

DEFAULT_METSTDV

public static final java.lang.String DEFAULT_METSTDV
See Also:
Constant Field Values

NO_DESCRIPTION_PROVIDED

public static final java.lang.String NO_DESCRIPTION_PROVIDED
See Also:
Constant Field Values
Constructor Detail

MinimalLEADMetadata

public MinimalLEADMetadata(java.lang.String userDN,
                           java.lang.String name,
                           java.lang.String description)
Method Detail

construct

public void construct()
Constructs the LEAD Metadata Schema document corresponding to this object's attributes.


toString

public java.lang.String toString()
Calls construct() if it hasn't already been called, before returning string.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

main

public static void main(java.lang.String[] args)
Takes three arguments.
  1. Owner - the entity that owns the object of this metadata
  2. Name - name of the object
  3. Description - a description of this object

Parameters:
Arguments, - expects three strings

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getLeadResourceDoc

public edu.indiana.extreme.lead.metadata.LEADresourceDocument getLeadResourceDoc()
Returns:
the XMLBean for this metadata document

setLeadResourceDoc

public void setLeadResourceDoc(edu.indiana.extreme.lead.metadata.LEADresourceDocument leadResourceDoc)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getUserDN

public java.lang.String getUserDN()

setUserDN

public void setUserDN(java.lang.String userDN)

getResourceId

public java.lang.String getResourceId()

setResourceId

public void setResourceId(java.lang.String resourceId)
Use this method to override the default resource identifier used in the metadata.

Parameters:
resourceId -

addLink

public void addLink(java.lang.String link)
Add a link to this object.

Parameters:
link - a hyperlink or some other URI


Copyright © 2006-2007 LEAD. All Rights Reserved.