|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.xml.databases.existlibrary.MOStringHelper
public class MOStringHelper
This class allows to read the basic fields from a string representing the MO as well to update the body section of the MO
| Constructor Summary | |
|---|---|
MOStringHelper(java.lang.String metadata)
Create a new MOReader for the given MO |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MOStringHelper(java.lang.String metadata)
metadata - a full XML representation of a Metadata Object| Method Detail |
|---|
public java.lang.String getID()
throws java.lang.Exception
java.lang.Exception - if no OID element is found
public java.lang.String getCreationTime()
throws java.lang.Exception
java.lang.Exception - if no creation element is found
public java.lang.String getLastUpdateTime()
throws java.lang.Exception
java.lang.Exception - if no lastUpdate element is found
public java.lang.String getTargetID()
throws java.lang.Exception
java.lang.Exception - if no targetID element is found
public java.lang.String getGeneratedByMOID()
throws java.lang.Exception
java.lang.Exception - if no generatedByMoid element is found
public java.lang.String getCollectionID()
throws java.lang.Exception
java.lang.Exception - if no member-of element is foundpublic java.lang.String getMetadata()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||