org.deegree.metadata
Interface MetadataRecord

All Known Implementing Classes:
AdhocQuery, Association, Classification, ClassificationNode, DCRecord, ExtrinsicObject, ISORecord, RegistryObject, RegistryPackage

public interface MetadataRecord

Base interface for metadata records.

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

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.
 

Method Detail

getName

QName getName()

getIdentifier

String getIdentifier()

getTitle

String[] getTitle()

getType

String getType()

getFormat

String[] getFormat()

getRelation

String[] getRelation()

getModified

Date getModified()

getAbstract

String[] getAbstract()

getSpatial

Object[] getSpatial()

getSubject

String[] getSubject()

getSource

String getSource()

getRights

String[] getRights()

getCreator

String getCreator()

getPublisher

String getPublisher()

getContributor

String getContributor()

getLanguage

String getLanguage()

getBoundingBox

Envelope[] getBoundingBox()

getAsOMElement

org.apache.axiom.om.OMElement getAsOMElement()
Returns the root element of the record.

Returns:
the root element, never null

toDublinCore

DCRecord toDublinCore()
Returns the Dublin Core representation of the requested record.

Returns:
DCRecord.

eval

boolean eval(Filter filter)
Returns whether this MetadataRecord matches the given Filter expression.

Parameters:
filter - filter to evaluate, must not be null
Returns:
true, if the record matches the filter, false otherwise

serialize

void serialize(XMLStreamWriter writer,
               CSWConstants.ReturnableElement returnType)
               throws XMLStreamException
Writes the XML representation of this record to the given XML stream.

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

void serialize(XMLStreamWriter writer,
               String[] elementNames)
               throws XMLStreamException
Writes the XML representation of the specified elements to the given XML stream.

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

update

void update(ValueReference propName,
            String replaceValue)
Updates the property.

Parameters:
propName - property name indicating the property to update, must not be null
replaceValue - the new string, must not be null

update

void update(ValueReference propName,
            org.apache.axiom.om.OMElement replaceValue)
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

void removeNode(ValueReference propName)
Parameters:
propName - property name indicating the property to remove, must not be null


Copyright © 2011. All Rights Reserved.