public final class EtpObject extends Object
Constructor and Description |
---|
EtpObject(EtpResource resource,
String xml)
Create an ETP object.
|
Modifier and Type | Method and Description |
---|---|
DataObject |
asDataObject()
Return this ETP object as an Energistics DataObject instance.
|
EtpResource |
getResource()
Return the resource of this ETP object.
|
String |
getXml()
Return the XML string defining this ETP object.
|
String |
toString() |
public EtpObject(EtpResource resource, String xml)
resource
- Resource representing the object.xml
- Corresponding XML defining the object.IllegalArgumentException
- If resource or xml is null.public EtpResource getResource()
public String getXml()
public DataObject asDataObject()
Copyright © 2023 Petroware AS - https://petroware.no