|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.ohf.stem.core.common.impl.DublinCoreImpl
public class DublinCoreImpl
An implementation of the model object 'Dublin Core'.
The following features are implemented:
Title
Identifier
Description
Creator
Date
Format
Publisher
Coverage
Contributor
Relation
Rights
Source
Subject
Type
Language
Bibliographic Citation
Created
License
Required
Spatial
Valid
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter> |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
org.eclipse.emf.ecore.InternalEObject.EStore |
Field Summary | |
---|---|
static java.lang.String |
END
This is the string used in the valid attribute to specify the
ending date of the valid date range. |
static java.lang.String |
START
This is the string used in the valid attribute to specify the
starting date of the valid date range. |
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
ELAST_EOBJECT_FLAG |
Fields inherited from interface org.eclipse.ohf.stem.core.common.DublinCore |
---|
FORMAT, IDENTIFIER, TITLE |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Constructor Summary | |
---|---|
DublinCoreImpl(org.eclipse.core.runtime.IConfigurationElement configElement)
This constructor is used to create and initialize a Dublin Core instance from an IConfigurationElement instance. |
Method Summary | |
---|---|
static java.util.Date |
createDateFromISO8601DateString(java.lang.String iso8601DateString)
Create a Date from a string that conforms to ISO 8601 http://www.w3.org/TR/NOTE-datetime. |
static java.lang.String |
createISO8601DateString(java.util.Date date)
Create a date string that conforms to ISO 8601 http://www.w3.org/TR/NOTE-datetime. |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
void |
eUnset(int featureID)
|
java.lang.String |
getBibliographicCitation()
|
java.lang.String |
getContributor()
|
java.lang.String |
getCoverage()
|
java.lang.String |
getCreated()
|
java.lang.String |
getCreator()
|
java.lang.String |
getDate()
|
java.lang.String |
getDescription()
|
java.lang.String |
getFormat()
|
java.lang.String |
getIdentifier()
|
java.lang.String |
getLanguage()
|
java.lang.String |
getLicense()
|
java.lang.String |
getPublisher()
|
java.lang.String |
getRelation()
|
java.lang.String |
getRequired()
|
java.lang.String |
getRights()
|
java.lang.String |
getSource()
|
java.lang.String |
getSpatial()
|
java.lang.String |
getSubject()
|
java.lang.String |
getTitle()
|
java.lang.String |
getType()
|
java.lang.String |
getValid()
|
java.util.Date |
getValidEndDate()
|
static java.util.Date |
getValidEndDate(java.lang.String validValue)
|
java.util.Date |
getValidStartDate()
|
static java.util.Date |
getValidStartDate(java.lang.String validValue)
|
static boolean |
isValidEndDateValid(java.lang.String validValue)
|
static boolean |
isValidStartDateValid(java.lang.String validValue)
|
DublinCore |
populate()
|
void |
setBibliographicCitation(java.lang.String newBibliographicCitation)
|
void |
setContributor(java.lang.String newContributor)
|
void |
setCoverage(java.lang.String newCoverage)
|
void |
setCreated(java.util.Date date)
Set the date the resource was created. |
void |
setCreated(java.lang.String newCreated)
|
void |
setCreator(java.lang.String newCreator)
|
void |
setDate(java.util.Date date)
Set the date. |
void |
setDate(java.lang.String newDate)
|
void |
setDescription(java.lang.String newDescription)
|
void |
setFormat(java.lang.String newFormat)
|
void |
setIdentifier(java.lang.String newIdentifier)
|
void |
setLanguage(java.lang.String newLanguage)
|
void |
setLicense(java.lang.String newLicense)
|
void |
setPublisher(java.lang.String newPublisher)
|
void |
setRelation(java.lang.String newRelation)
|
void |
setRequired(java.lang.String newRequired)
|
void |
setRights(java.lang.String newRights)
|
void |
setSource(java.lang.String newSource)
|
void |
setSpatial(java.lang.String newSpatial)
|
void |
setSubject(java.lang.String newSubject)
|
void |
setTitle(java.lang.String newTitle)
|
void |
setType(java.lang.String newType)
|
void |
setValid(java.util.Date startDate)
Set the starting date that the resource is value. |
void |
setValid(java.util.Date startDate,
java.util.Date endDate)
Set the starting and ending dates that the resource is valid. |
void |
setValid(java.lang.String newValid)
|
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
eNotificationRequired, eNotify |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
eNotificationRequired |
Field Detail |
---|
public static final java.lang.String START
valid
attribute to specify the
starting date of the valid date range.
public static final java.lang.String END
valid
attribute to specify the
ending date of the valid date range.
Constructor Detail |
---|
public DublinCoreImpl(org.eclipse.core.runtime.IConfigurationElement configElement)
configElement
- the configuration element from the plugin.xml fileMethod Detail |
---|
public java.lang.String getTitle()
getTitle
in interface DublinCore
public void setTitle(java.lang.String newTitle)
setTitle
in interface DublinCore
newTitle
- the new value of the 'Title' attribute.DublinCore.getTitle()
public java.lang.String getCreator()
getCreator
in interface DublinCore
public void setCreator(java.lang.String newCreator)
setCreator
in interface DublinCore
newCreator
- the new value of the 'Creator' attribute.DublinCore.getCreator()
public java.lang.String getSubject()
getSubject
in interface DublinCore
public void setSubject(java.lang.String newSubject)
setSubject
in interface DublinCore
newSubject
- the new value of the 'Subject' attribute.DublinCore.getSubject()
public java.lang.String getDescription()
getDescription
in interface DublinCore
public void setDescription(java.lang.String newDescription)
setDescription
in interface DublinCore
newDescription
- the new value of the 'Description' attribute.DublinCore.getDescription()
public java.lang.String getPublisher()
getPublisher
in interface DublinCore
public void setPublisher(java.lang.String newPublisher)
setPublisher
in interface DublinCore
newPublisher
- the new value of the 'Publisher' attribute.DublinCore.getPublisher()
public java.lang.String getContributor()
getContributor
in interface DublinCore
public void setContributor(java.lang.String newContributor)
setContributor
in interface DublinCore
newContributor
- the new value of the 'Contributor' attribute.DublinCore.getContributor()
public java.lang.String getDate()
getDate
in interface DublinCore
public void setDate(java.lang.String newDate)
setDate
in interface DublinCore
newDate
- the new value of the 'Date' attribute.DublinCore.getDate()
public void setDate(java.util.Date date)
DublinCore
setDate
in interface DublinCore
com.ibm.almaden.stem.common.DublinCore#setDate(java.util.Date)
public java.lang.String getType()
getType
in interface DublinCore
public void setType(java.lang.String newType)
setType
in interface DublinCore
newType
- the new value of the 'Type' attribute.DublinCore.getType()
public java.lang.String getFormat()
getFormat
in interface DublinCore
public void setFormat(java.lang.String newFormat)
setFormat
in interface DublinCore
newFormat
- the new value of the 'Format' attribute.DublinCore.getFormat()
public java.lang.String getIdentifier()
getIdentifier
in interface DublinCore
public void setIdentifier(java.lang.String newIdentifier)
setIdentifier
in interface DublinCore
newIdentifier
- the new value of the 'Identifier' attribute.DublinCore.getIdentifier()
public java.lang.String getSource()
getSource
in interface DublinCore
public void setSource(java.lang.String newSource)
setSource
in interface DublinCore
newSource
- the new value of the 'Source' attribute.DublinCore.getSource()
public java.lang.String getLanguage()
getLanguage
in interface DublinCore
public void setLanguage(java.lang.String newLanguage)
setLanguage
in interface DublinCore
newLanguage
- the new value of the 'Language' attribute.DublinCore.getLanguage()
public java.lang.String getRelation()
getRelation
in interface DublinCore
public void setRelation(java.lang.String newRelation)
setRelation
in interface DublinCore
newRelation
- the new value of the 'Relation' attribute.DublinCore.getRelation()
public java.lang.String getCoverage()
getCoverage
in interface DublinCore
public void setCoverage(java.lang.String newCoverage)
setCoverage
in interface DublinCore
newCoverage
- the new value of the 'Coverage' attribute.DublinCore.getCoverage()
public java.lang.String getRights()
getRights
in interface DublinCore
public void setRights(java.lang.String newRights)
setRights
in interface DublinCore
newRights
- the new value of the 'Rights' attribute.DublinCore.getRights()
public java.lang.String getBibliographicCitation()
getBibliographicCitation
in interface DublinCore
public void setBibliographicCitation(java.lang.String newBibliographicCitation)
setBibliographicCitation
in interface DublinCore
newBibliographicCitation
- the new value of the 'Bibliographic Citation' attribute.DublinCore.getBibliographicCitation()
public java.lang.String getCreated()
getCreated
in interface DublinCore
public void setCreated(java.lang.String newCreated)
setCreated
in interface DublinCore
newCreated
- the new value of the 'Created' attribute.DublinCore.getCreated()
public void setCreated(java.util.Date date)
DublinCore
setCreated
in interface DublinCore
date
- the creation date of the resourcecom.ibm.almaden.stem.common.DublinCore#setCreated(java.util.Date)
public java.lang.String getLicense()
getLicense
in interface DublinCore
public void setLicense(java.lang.String newLicense)
setLicense
in interface DublinCore
newLicense
- the new value of the 'License' attribute.DublinCore.getLicense()
public java.lang.String getRequired()
getRequired
in interface DublinCore
public void setRequired(java.lang.String newRequired)
setRequired
in interface DublinCore
newRequired
- the new value of the 'Required' attribute.DublinCore.getRequired()
public java.lang.String getSpatial()
getSpatial
in interface DublinCore
public void setSpatial(java.lang.String newSpatial)
setSpatial
in interface DublinCore
newSpatial
- the new value of the 'Spatial' attribute.DublinCore.getSpatial()
public java.lang.String getValid()
getValid
in interface DublinCore
public java.util.Date getValidEndDate()
getValidEndDate
in interface DublinCore
Date
of the valid date range, or
null
if the valid value is not set or the end date
is not specified, or the value is not correctly formatted as an
ISO 8601 date string
http://www.w3.org/TR/NOTE-datetime.DublinCore.getValidEndDate()
public static java.util.Date getValidEndDate(java.lang.String validValue)
DublinCore.getValidEndDate()
public static boolean isValidEndDateValid(java.lang.String validValue)
validValue
-
true
if the end date in the valid string does not
exist, or if it does, if it is properly formatted,
false
otherwise.public java.util.Date getValidStartDate()
getValidStartDate
in interface DublinCore
Date
of the valid date range, or
null
if the valid value is not set or is not
correctly formatted as an ISO 8601 date string
http://www.w3.org/TR/NOTE-datetime.DublinCore.getValidEndDate()
public static java.util.Date getValidStartDate(java.lang.String validValue)
DublinCore.getValidStartDate()
public static boolean isValidStartDateValid(java.lang.String validValue)
validValue
-
true
if the start date in the valid string exists
and is properly formattedpublic void setValid(java.lang.String newValid)
setValid
in interface DublinCore
newValid
- the new value of the 'Valid' attribute.DublinCore.getValid()
public DublinCore populate()
populate
in interface DublinCore
DublinCore.setCreated(String)
,
DublinCore.setDate(String)
,
DublinCore.setValid(String)
,
DublinCore.setCreator(String)
public void setValid(java.util.Date startDate, java.util.Date endDate)
DublinCore
setValid
in interface DublinCore
startDate
- the starting dateendDate
- the ending datecom.ibm.almaden.stem.common.DublinCore#setValid(java.util.Date,
java.util.Date)
public void setValid(java.util.Date startDate)
DublinCore
setValid
in interface DublinCore
startDate
- the starting datecom.ibm.almaden.stem.common.DublinCore#setValid(java.util.Date)
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.String toString()
toString
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public static java.lang.String createISO8601DateString(java.util.Date date)
getDate()
,
getCreated()
,
getValid()
public static java.util.Date createDateFromISO8601DateString(java.lang.String iso8601DateString) throws java.text.ParseException
java.text.ParseException
- if the date string is not of the format "yyyy-MM-dd"getDate()
,
getCreated()
,
getValid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |