|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.metadata.iso.ISORecord
public class ISORecord
Represents an ISO 19115 MetadataRecord.
An ISO 19115 record can be either a data or a service metadata record. The root element name for both types of records is {http://www.isotc211.org/2005/gmd}MD_Metadata.
| Field Summary | |
|---|---|
static String |
ISO_RECORD_NS
Namespace for ISORecord elements |
static String |
SCHEMA_URL_GMD
Schema URL for ISO Data and Service Metadata records |
static String |
SCHEMA_URL_SRV
Additional schema URL for Service Metadata records |
| Constructor Summary | |
|---|---|
ISORecord(org.apache.axiom.om.OMElement root)
|
|
ISORecord(XMLStreamReader xmlStream)
|
|
| Method Summary | |
|---|---|
boolean |
eval(Filter filter)
Returns whether this MetadataRecord matches the given Filter expression. |
String[] |
getAbstract()
|
byte[] |
getAsByteArray()
|
org.apache.axiom.om.OMElement |
getAsOMElement()
Returns the root element of the record. |
XMLStreamReader |
getAsXMLStream()
|
Envelope[] |
getBoundingBox()
|
String |
getContributor()
|
String |
getCreator()
|
String[] |
getFormat()
|
String |
getIdentifier()
|
String |
getLanguage()
|
Date |
getModified()
|
QName |
getName()
|
org.apache.axiom.om.OMElement |
getNodeFromXPath(XPath xpath)
|
String |
getParentIdentifier()
|
ParsedProfileElement |
getParsedElement()
|
String |
getPublisher()
|
String[] |
getRelation()
|
String[] |
getRights()
|
String |
getSource()
|
Object[] |
getSpatial()
|
String |
getStringFromXPath(XPath xpath)
|
String[] |
getSubject()
|
String[] |
getTitle()
|
String |
getType()
|
boolean |
isHasSecurityConstraints()
|
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. |
String |
toString()
|
void |
update(ValueReference propName,
org.apache.axiom.om.OMElement newEl)
|
void |
update(ValueReference propName,
String s)
Updates the property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String ISO_RECORD_NS
public static final String SCHEMA_URL_GMD
public static final String SCHEMA_URL_SRV
| Constructor Detail |
|---|
public ISORecord(XMLStreamReader xmlStream)
public ISORecord(org.apache.axiom.om.OMElement root)
| Method Detail |
|---|
public QName getName()
getName in interface MetadataRecordpublic boolean eval(Filter filter)
MetadataRecordMetadataRecord matches the given Filter expression.
eval in interface MetadataRecordfilter - filter to evaluate, must not be null
public String[] getAbstract()
getAbstract in interface MetadataRecordpublic Envelope[] getBoundingBox()
getBoundingBox in interface MetadataRecordpublic String[] getFormat()
getFormat in interface MetadataRecordpublic String getIdentifier()
getIdentifier in interface MetadataRecordpublic Date getModified()
getModified in interface MetadataRecordpublic String[] getRelation()
getRelation in interface MetadataRecordpublic Object[] getSpatial()
getSpatial in interface MetadataRecordpublic String[] getTitle()
getTitle in interface MetadataRecordpublic String getType()
getType in interface MetadataRecordpublic String[] getSubject()
getSubject in interface MetadataRecord
public XMLStreamReader getAsXMLStream()
throws XMLStreamException
XMLStreamExceptionpublic org.apache.axiom.om.OMElement getAsOMElement()
MetadataRecord
getAsOMElement in interface MetadataRecordnull
public byte[] getAsByteArray()
throws FactoryConfigurationError
FactoryConfigurationError
public void serialize(XMLStreamWriter writer,
CSWConstants.ReturnableElement returnType)
throws XMLStreamException
MetadataRecord
serialize in interface MetadataRecordwriter - xml writer to write to, must not be nullreturnType - the element set to return, never null
XMLStreamException - if the writing of the XML fails
public void serialize(XMLStreamWriter writer,
String[] elementNames)
throws XMLStreamException
MetadataRecord
serialize in interface MetadataRecordwriter - xml writer to write to, must not be nullelementNames - the element set to return, must not be null.
XMLStreamException - if the writing of the XML failspublic DCRecord toDublinCore()
MetadataRecord
toDublinCore in interface MetadataRecordDCRecord.public boolean isHasSecurityConstraints()
public String getContributor()
getContributor in interface MetadataRecordpublic String getPublisher()
getPublisher in interface MetadataRecordpublic String[] getRights()
getRights in interface MetadataRecordpublic String getSource()
getSource in interface MetadataRecordpublic String getCreator()
getCreator in interface MetadataRecordpublic String getLanguage()
getLanguage in interface MetadataRecordpublic String getParentIdentifier()
public ParsedProfileElement getParsedElement()
public String getStringFromXPath(XPath xpath)
public org.apache.axiom.om.OMElement getNodeFromXPath(XPath xpath)
public void update(ValueReference propName,
String s)
MetadataRecord
update in interface MetadataRecordpropName - property name indicating the property to update, must not be nulls - the new string, must not be null
public void update(ValueReference propName,
org.apache.axiom.om.OMElement newEl)
update in interface MetadataRecordpropName - property name indicating the property to update, must not be nullnewEl - the new OMElement to update the, must not be nullpublic void removeNode(ValueReference propName)
removeNode in interface MetadataRecordpropName - property name indicating the property to remove, must not be nullpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||