org.deegree.metadata
Class DCRecord

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

public class DCRecord
extends java.lang.Object
implements MetadataRecord

DublinCore MetadataRecord.

Version:
$Revision: 27406 $, $Date: 2010-10-19 18:43:48 +0200 (Di, 19. Okt 2010) $
Author:
Markus Schneider, last edited by: $Author: sthomas $

Constructor Summary
DCRecord(MetadataRecord record)
           
 
Method Summary
 boolean eval(Filter filter)
          Returns whether this MetadataRecord matches the given Filter expression.
 java.lang.String[] getAbstract()
           
 java.lang.String getAnyText()
           
 Envelope[] getBoundingBox()
           
 java.lang.String getContributor()
           
 java.lang.String getCreator()
           
 java.lang.String[] getFormat()
           
 java.lang.String[] getIdentifier()
           
 java.lang.String getLanguage()
           
 Date[] getModified()
           
 javax.xml.namespace.QName getName()
           
 java.lang.String getPublisher()
           
 java.lang.String[] getRelation()
           
 java.lang.String[] getRights()
           
 java.lang.String getSource()
           
 java.lang.Object[] getSpatial()
           
 java.lang.String[] getSubject()
           
 java.lang.String[] getTitle()
           
 java.lang.String getType()
           
 void serialize(javax.xml.stream.XMLStreamWriter writer, CSWConstants.ReturnableElement returnType)
          Writes the XML representation of this record to the given XML stream.
 void serialize(javax.xml.stream.XMLStreamWriter writer, java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DCRecord

public DCRecord(MetadataRecord record)
Method Detail

getName

public javax.xml.namespace.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 java.lang.String[] getAbstract()
Specified by:
getAbstract in interface MetadataRecord

getAnyText

public java.lang.String getAnyText()
Specified by:
getAnyText in interface MetadataRecord

getBoundingBox

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

getFormat

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

getIdentifier

public java.lang.String[] getIdentifier()
Specified by:
getIdentifier in interface MetadataRecord

getModified

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

getRelation

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

getSpatial

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

getSubject

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

getTitle

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

getType

public java.lang.String getType()
Specified by:
getType in interface MetadataRecord

serialize

public void serialize(javax.xml.stream.XMLStreamWriter writer,
                      CSWConstants.ReturnableElement returnType)
               throws javax.xml.stream.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:
javax.xml.stream.XMLStreamException - if the writing of the XML fails

serialize

public void serialize(javax.xml.stream.XMLStreamWriter writer,
                      java.lang.String[] elementNames)
               throws javax.xml.stream.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:
javax.xml.stream.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 java.lang.String getContributor()
Specified by:
getContributor in interface MetadataRecord

getLanguage

public java.lang.String getLanguage()
Specified by:
getLanguage in interface MetadataRecord

getPublisher

public java.lang.String getPublisher()
Specified by:
getPublisher in interface MetadataRecord

getRights

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

getSource

public java.lang.String getSource()
Specified by:
getSource in interface MetadataRecord

getCreator

public java.lang.String getCreator()
Specified by:
getCreator in interface MetadataRecord


Copyright © 2011. All Rights Reserved.