public class PDRObject
extends java.lang.Object
Constructor and Description |
---|
PDRObject(java.lang.String xmlContent)
Constructor with XML formatted PDR object.
|
Modifier and Type | Method and Description |
---|---|
int |
getInstance()
Returns the instance number of the object.
|
Identifier |
getModifiedIdentifier()
Returns the modified PDR ID of the object.
|
Identifier |
getOriginalIdentifier()
Returns the original ID of the object.
|
int |
getProject()
Return the project number of the object.
|
java.util.List<java.util.Date> |
getRevisionTimestamps()
Returns dates from all timestamps of the object's revisions.
|
PDRType |
getType()
Returns the type of the object.
|
java.lang.String |
getXMLContent()
Liefert die XML-Repräsentation des Objektes.
|
void |
modifyIdentifier(Identifier newIdentifier)
Replaces all occurances of the current PDR ID by the provided ID.
|
void |
setXMLContent(java.lang.String xmlContent)
Sets object's XML content.
|
public PDRObject(java.lang.String xmlContent) throws ValidationException
xmlContent
- XML formatted PDR object.ValidationException
- Could not instantiate PDR object.public final void modifyIdentifier(Identifier newIdentifier)
newIdentifier
- New ID.public final Identifier getModifiedIdentifier()
public final Identifier getOriginalIdentifier()
public final int getInstance()
public final PDRType getType()
public final int getProject()
public final java.lang.String getXMLContent()
public final void setXMLContent(java.lang.String xmlContent)
xmlContent
- XML-Repräsentation des Objektes.public final java.util.List<java.util.Date> getRevisionTimestamps() throws java.text.ParseException
java.text.ParseException
- Invalid timestamp.