org.deegree.metadata
Class DCRecord

java.lang.Object
  extended by org.deegree.metadata.DCRecord
All Implemented Interfaces:
MetadataRecord

public class DCRecord
extends Object
implements MetadataRecord

DublinCore MetadataRecord.

Version:
$Revision: 31658 $, $Date: 2011-08-25 20:09:40 +0200 (Thu, 25 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Field Summary
static String DC_RECORD_NS
           
static String SCHEMA_URL
           
 
Constructor Summary
DCRecord(MetadataRecord record)
           
 
Method Summary
 boolean eval(Filter filter)
          Returns whether this MetadataRecord matches the given Filter expression.
 String[] getAbstract()
           
 org.apache.axiom.om.OMElement getAsOMElement()
          Returns the root element of the record.
 Envelope[] getBoundingBox()
           
 String getContributor()
           
 String getCreator()
           
 String[] getFormat()
           
 String getIdentifier()
           
 String getLanguage()
           
 Date getModified()
           
 QName getName()
           
 String getPublisher()
           
 String[] getRelation()
           
 String[] getRights()
           
 String getSource()
           
 Object[] getSpatial()
           
 String[] getSubject()
           
 String[] getTitle()
           
 String getType()
           
 void removeNode(ValueReference propName)
           
 void serialize(XMLStreamWriter writer, CSWConstants.ReturnableElement returnType)
          Writes the XML representation of this record to the given XML stream.
 void serialize(XMLStreamWriter writer, String[] elementNames)
          Writes the XML representation of the specified elements to the given XML stream.
 DCRecord toDublinCore()
          Returns the Dublin Core representation of the requested record.
 void update(ValueReference propName, org.apache.axiom.om.OMElement replaceValue)
           
 void update(ValueReference propName, String replaceValue)
          Updates the property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DC_RECORD_NS

public static String DC_RECORD_NS

SCHEMA_URL

public static final String SCHEMA_URL
See Also:
Constant Field Values
Constructor Detail

DCRecord

public DCRecord(MetadataRecord record)
Method Detail

getName

public QName getName()
Specified by:
getName in interface MetadataRecord

eval

public boolean eval(Filter filter)
Description copied from interface: MetadataRecord
Returns whether this MetadataRecord matches the given Filter expression.

Specified by:
eval in interface MetadataRecord
Parameters:
filter - filter to evaluate, must not be null
Returns:
true, if the record matches the filter, false otherwise

getAbstract

public String[] getAbstract()
Specified by:
getAbstract in interface MetadataRecord

getBoundingBox

public Envelope[] getBoundingBox()
Specified by:
getBoundingBox in interface MetadataRecord

getFormat

public String[] getFormat()
Specified by:
getFormat in interface MetadataRecord

getIdentifier

public String getIdentifier()
Specified by:
getIdentifier in interface MetadataRecord

getModified

public Date getModified()
Specified by:
getModified in interface MetadataRecord

getRelation

public String[] getRelation()
Specified by:
getRelation in interface MetadataRecord

getSpatial

public Object[] getSpatial()
Specified by:
getSpatial in interface MetadataRecord

getSubject

public String[] getSubject()
Specified by:
getSubject in interface MetadataRecord

getTitle

public String[] getTitle()
Specified by:
getTitle in interface MetadataRecord

getType

public String getType()
Specified by:
getType in interface MetadataRecord

serialize

public void serialize(XMLStreamWriter writer,
                      CSWConstants.ReturnableElement returnType)
               throws XMLStreamException
Description copied from interface: MetadataRecord
Writes the XML representation of this record to the given XML stream.

Specified by:
serialize in interface MetadataRecord
Parameters:
writer - xml writer to write to, must not be null
returnType - the element set to return, never null
Throws:
XMLStreamException - if the writing of the XML fails

serialize

public void serialize(XMLStreamWriter writer,
                      String[] elementNames)
               throws XMLStreamException
Description copied from interface: MetadataRecord
Writes the XML representation of the specified elements to the given XML stream.

Specified by:
serialize in interface MetadataRecord
Parameters:
writer - xml writer to write to, must not be null
elementNames - the element set to return, must not be null.
Throws:
XMLStreamException - if the writing of the XML fails

toDublinCore

public DCRecord toDublinCore()
Description copied from interface: MetadataRecord
Returns the Dublin Core representation of the requested record.

Specified by:
toDublinCore in interface MetadataRecord
Returns:
DCRecord.

getContributor

public String getContributor()
Specified by:
getContributor in interface MetadataRecord

getLanguage

public String getLanguage()
Specified by:
getLanguage in interface MetadataRecord

getPublisher

public String getPublisher()
Specified by:
getPublisher in interface MetadataRecord

getRights

public String[] getRights()
Specified by:
getRights in interface MetadataRecord

getSource

public String getSource()
Specified by:
getSource in interface MetadataRecord

getCreator

public String getCreator()
Specified by:
getCreator in interface MetadataRecord

update

public void update(ValueReference propName,
                   String replaceValue)
Description copied from interface: MetadataRecord
Updates the property.

Specified by:
update in interface MetadataRecord
Parameters:
propName - property name indicating the property to update, must not be null
replaceValue - the new string, must not be null

update

public void update(ValueReference propName,
                   org.apache.axiom.om.OMElement replaceValue)
Specified by:
update in interface MetadataRecord
Parameters:
propName - property name indicating the property to update, must not be null
replaceValue - the new OMElement to update the, must not be null

removeNode

public void removeNode(ValueReference propName)
Specified by:
removeNode in interface MetadataRecord
Parameters:
propName - property name indicating the property to remove, must not be null

getAsOMElement

public org.apache.axiom.om.OMElement getAsOMElement()
Description copied from interface: MetadataRecord
Returns the root element of the record.

Specified by:
getAsOMElement in interface MetadataRecord
Returns:
the root element, never null


Copyright © 2011. All Rights Reserved.