org.deegree.metadata
Class ISORecord

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

public class ISORecord
extends java.lang.Object
implements MetadataRecord

Represents an ISO 19115 MetadataRecord.

Version:
$Revision: 28178 $, $Date: 2010-11-14 19:41:54 +0100 (So, 14. Nov 2010) $
Author:
Markus Schneider, last edited by: $Author: sthomas $

Constructor Summary
ISORecord(org.apache.axiom.om.OMElement root, ISOMetadataStoreConfig.AnyText anyText)
           
ISORecord(javax.xml.stream.XMLStreamReader xmlStream, ISOMetadataStoreConfig.AnyText anyText)
           
 
Method Summary
 boolean eval(Filter filter)
          Returns whether this MetadataRecord matches the given Filter expression.
 java.lang.String[] getAbstract()
           
 java.lang.String getAnyText()
           
 byte[] getAsByteArray()
           
 org.apache.axiom.om.OMElement getAsOMElement()
           
 javax.xml.stream.XMLStreamReader getAsXMLStream()
           
 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 getParentIdentifier()
           
 ParsedProfileElement getParsedElement()
           
 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()
           
 boolean isHasSecurityConstraints()
           
 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

ISORecord

public ISORecord(javax.xml.stream.XMLStreamReader xmlStream,
                 ISOMetadataStoreConfig.AnyText anyText)
          throws MetadataStoreException
Throws:
MetadataStoreException

ISORecord

public ISORecord(org.apache.axiom.om.OMElement root,
                 ISOMetadataStoreConfig.AnyText anyText)
          throws MetadataStoreException
Throws:
MetadataStoreException
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

getTitle

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

getType

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

getSubject

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

getAsXMLStream

public javax.xml.stream.XMLStreamReader getAsXMLStream()
                                                throws javax.xml.stream.XMLStreamException
Returns:
the ISORecord as xmlStreamReader with skipped startDocument-preamble
Throws:
javax.xml.stream.XMLStreamException

getAsOMElement

public org.apache.axiom.om.OMElement getAsOMElement()

getAsByteArray

public byte[] getAsByteArray()
                      throws javax.xml.stream.XMLStreamException,
                             javax.xml.stream.FactoryConfigurationError
Throws:
javax.xml.stream.XMLStreamException
javax.xml.stream.FactoryConfigurationError

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.

isHasSecurityConstraints

public boolean isHasSecurityConstraints()

getContributor

public java.lang.String getContributor()
Specified by:
getContributor 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

getLanguage

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

getParentIdentifier

public java.lang.String getParentIdentifier()

getParsedElement

public ParsedProfileElement getParsedElement()


Copyright © 2011. All Rights Reserved.