public class MOStringHelper
extends java.lang.Object
Constructor and Description |
---|
MOStringHelper(java.lang.String metadata)
Create a new MOReader for the given MO
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCollectionID()
Get the member-of text value of the Metadata Object
|
java.lang.String |
getCreationTime()
Get the creation text value of the Metadata Object
|
java.lang.String |
getGeneratedByMOID()
Get the generatedByMoid value of the Metadata Object
|
java.lang.String |
getID()
Get the OID text value of the Metadata Object
|
java.lang.String |
getLastUpdateTime()
Get the lastUpdate text value of the Metadata Object
|
java.lang.String |
getMetadata()
Get the entire Metadata Object as string
|
java.lang.String |
getTargetID()
Get the targetID text value of the Metadata Object
|
public MOStringHelper(java.lang.String metadata)
metadata
- a full XML representation of a Metadata Objectpublic java.lang.String getID() throws java.lang.Exception
java.lang.Exception
- if no OID element is foundpublic java.lang.String getCreationTime() throws java.lang.Exception
java.lang.Exception
- if no creation element is foundpublic java.lang.String getLastUpdateTime() throws java.lang.Exception
java.lang.Exception
- if no lastUpdate element is foundpublic java.lang.String getTargetID() throws java.lang.Exception
java.lang.Exception
- if no targetID element is foundpublic java.lang.String getGeneratedByMOID() throws java.lang.Exception
java.lang.Exception
- if no generatedByMoid element is foundpublic java.lang.String getCollectionID() throws java.lang.Exception
java.lang.Exception
- if no member-of element is foundpublic java.lang.String getMetadata()