public abstract class WitsmlObject extends Object
This class is thread safe. Instances are protected by a read/write lock under the assumption that reads will out-number modifications. Multiple threads can read the instance concurrently, while only a single thread can modify the instance at the time.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Check if the specified object is equal to this instance.
|
WitsmlQuery |
getAddQuery()
Return the current "add query" of this instance.
|
List<Alias> |
getAliases()
Return the citation of this instance.
|
Citation |
getCitation()
Return the citation of this instance.
|
CommonData |
getCommonData()
Return the common data of this instance.
|
EtpResource |
getEtpResource() |
EtpServer |
getEtpServer()
Return the ETP client backing this instance.
|
String |
getId()
Return ID of this instance.
|
String |
getName()
Return name of this instance.
|
WitsmlObject |
getParent()
Return parent of this instance.
|
String |
getParentId()
Return ID of parent instance.
|
Lock |
getReadLock()
Return the read lock of this instance.
|
Object |
getServer()
Return the back-end server communication object, being either
a WitsmlServer or an EtpServer.
|
WitsmlVersion |
getVersion()
Return the WITSML version of this instance.
|
WitsmlServer |
getWitsmlServer()
Return the WITSML server backing this instance.
|
WitsmlType |
getWitsmlType()
Return the WITSML type of this instance.
|
Lock |
getWriteLock()
Return the write lock of this instance.
|
int |
hashCode() |
List<Alias> |
newAliases()
Create an empty citation instance for this WitsmlObject.
|
Citation |
newCitation()
Create an empty citation instance for this WitsmlObject.
|
CommonData |
newCommonData()
Create an empty common data instance for this WitsmlObject.
|
void |
setEtpResource(EtpResource etpResource) |
void |
setName(String name)
Set name of this instance.
|
String |
toString() |
public Lock getReadLock()
Should not be used with client code.
public Lock getWriteLock()
Should not be used with client code.
public WitsmlQuery getAddQuery()
The add query is used when the instance is finally added to the remote WITSML server by WitsmlServer.add().
NOTE: This method is public as a side effect. It is not meant to be called by client applications.
public String getId()
public String getName()
public void setName(String name)
name
- Name to set. May be null indicating absent.public EtpResource getEtpResource()
public void setEtpResource(EtpResource etpResource)
public WitsmlType getWitsmlType()
public Object getServer()
public WitsmlServer getWitsmlServer()
public EtpServer getEtpServer()
public WitsmlVersion getVersion()
public String getParentId()
public WitsmlObject getParent()
public CommonData getCommonData()
public CommonData newCommonData()
public Citation getCitation()
public Citation newCitation()
public List<Alias> getAliases()
public List<Alias> newAliases()
public boolean equals(Object object)
Copyright © 2023 Petroware AS - https://petroware.no