org.deegree.metadata.ebrim
Class RegistryObject

java.lang.Object
  extended by org.deegree.metadata.ebrim.RegistryObject
All Implemented Interfaces:
MetadataRecord
Direct Known Subclasses:
AdhocQuery, Association, Classification, ClassificationNode, ExtrinsicObject, RegistryPackage

public class RegistryObject
extends Object
implements MetadataRecord

Base type for all ebRIM MetadataRecords.

Version:
$Revision: $, $Date: $
Author:
Lyn Goltz, last edited by: $Author: lyn $

Field Summary
protected  XMLAdapter adapter
           
protected static NamespaceBindings ns
           
static String RIM_NS
           
 
Constructor Summary
RegistryObject(org.apache.axiom.om.OMElement record)
           
RegistryObject(XMLStreamReader xmlStream)
           
 
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 getDesc()
           
 org.apache.axiom.om.OMElement getElement()
           
 String getExtId()
           
 String[] getFormat()
           
 Geometry getGeometrySlotValue(String slotName)
           
 String getHome()
           
 String getId()
           
 String getIdentifier()
           
 String getLanguage()
           
 String getLid()
           
 Date getModified()
           
 QName getName()
           
 String getObjectType()
           
 String getPublisher()
           
 String[] getRelation()
           
 String[] getRights()
           
 RIMType getRIMType()
          Returns the RIMType.
 String getROName()
           
 String[] getSlotNames()
           
 String getSlotValue(String slotName)
           
 String[] getSlotValueList(String slotName)
           
 String getSource()
           
 Object[] getSpatial()
           
 String getStatus()
           
 String[] getSubject()
           
 String[] getTitle()
           
 String getType()
           
 String getVersionInfo()
           
 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

ns

protected static final NamespaceBindings ns

RIM_NS

public static final String RIM_NS
See Also:
Constant Field Values

adapter

protected XMLAdapter adapter
Constructor Detail

RegistryObject

public RegistryObject(org.apache.axiom.om.OMElement record)

RegistryObject

public RegistryObject(XMLStreamReader xmlStream)
Method Detail

getRIMType

public RIMType getRIMType()
Returns the RIMType.

Returns:
RIMType, never null

getName

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

getIdentifier

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

getTitle

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

getType

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

getFormat

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

getRelation

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

getModified

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

getAbstract

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

getSpatial

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

getSubject

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

getSource

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

getRights

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

getCreator

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

getPublisher

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

getContributor

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

getLanguage

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

getBoundingBox

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

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

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.

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

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

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

getId

public String getId()
Returns:
the id

getROName

public String getROName()
Returns:
the name

getDesc

public String getDesc()
Returns:
the desc

getExtId

public String getExtId()
Returns:
the extId

getHome

public String getHome()
Returns:
the home

getLid

public String getLid()
Returns:
the lid

getStatus

public String getStatus()
Returns:
the status

getVersionInfo

public String getVersionInfo()
Returns:
the versionInfo

getObjectType

public String getObjectType()
Returns:
the objectType

getGeometrySlotValue

public Geometry getGeometrySlotValue(String slotName)

getSlotValueList

public String[] getSlotValueList(String slotName)

getSlotValue

public String getSlotValue(String slotName)

getSlotNames

public String[] getSlotNames()

getElement

public org.apache.axiom.om.OMElement getElement()
Returns:
the encapsulated XML


Copyright © 2011. All Rights Reserved.