public final class EtpHelper extends Object
Constructor and Description |
---|
EtpHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
createUid()
Create a unique ID.
|
static EtpObject |
newEtpObject(WitsmlObject witsmlObject)
Create an ETP object from a WITSML object.
|
static <T extends WitsmlObject> |
newInstance(Class<T> baseClass,
EtpSession etpSession,
String name,
EtpResource parentResource)
Create a new WITSML object that may be added to the ETP server later.
|
static WitsmlObject |
newWitsmlObject(EtpResource etpResource)
Convert the specified ETP resource to its equivalent WitsmlObject.
|
static void |
refresh(WitsmlObject witsmlObject,
String xml)
Refresh the specified WITSML object based on the associated XML.
|
public static String createUid()
public static EtpObject newEtpObject(WitsmlObject witsmlObject)
witsmlObject
- WITSML object to create ETP object from. Non-null.public static <T extends WitsmlObject> T newInstance(Class<T> baseClass, EtpSession etpSession, String name, EtpResource parentResource)
T
- Witsml object type to create.baseClass
- Modelling (generic) class of object to create. Non-null.etpSession
- ETP session. Non-null.name
- Object name.parentResource
- Parent resource. Never null.public static WitsmlObject newWitsmlObject(EtpResource etpResource)
etpResource
- ETP resource to consider. Non-null.public static void refresh(WitsmlObject witsmlObject, String xml)
witsmlObject
- WITSML object to refresh. Non-null.xml
- XML. Non-null.IllegalArgumentException
- If witsmlObject or xml is null.Copyright © 2023 Petroware AS - https://petroware.no