public final class EtpResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EtpResource.Type
The different resource types.
|
Constructor and Description |
---|
EtpResource(EtpSession etpSession,
String uri,
String uid,
EtpResource.Type type,
String name,
String contentType,
int nChildren,
long lastChanged,
boolean isSubscribable,
boolean isNotifiable)
Create an ETP resource instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getContentType()
Return content type of the object this resource represents.
|
EtpSession |
getEtpSession()
Get the ETP session instance backing this resource.
|
long |
getLastChanged()
Return last changed time stamp.
|
String |
getName()
Return display name of this resource.
|
int |
getNChildren()
Return number of children.
|
EtpResource |
getParent() |
EtpResource.Type |
getType()
Return type of this resource.
|
String |
getUid()
Return UID of this resource.
|
String |
getUri()
Return URI for this resource.
|
WitsmlType |
getWitsmlType()
Extract WITSML type from the content type of this resource.
|
WitsmlVersion |
getWitsmlVersion()
Return the WITSML version of this resource.
|
int |
hashCode() |
boolean |
isNotifiable()
Return if this resource is notifiable or not.
|
boolean |
isSubscribable()
Return if this resource is subscribable or not.
|
String |
toString() |
public EtpResource(EtpSession etpSession, String uri, String uid, EtpResource.Type type, String name, String contentType, int nChildren, long lastChanged, boolean isSubscribable, boolean isNotifiable)
etpSession
- ETP session backing this instance. Non-null.uri
- Resource URI. Non-null.uid
- Data object UID. Null if resource is not a DataObject.type
- Resource type. Non-null.name
- Display name. Non-null.contentType
- Content type.nChildren
- Number of children. -1 if unknown. [-1,>.lastChanged
- Last changed time stamp.isSubscribable
- TODOisNotifiable
- TODOpublic EtpSession getEtpSession()
public EtpResource getParent()
public String getUri()
public String getUid()
public EtpResource.Type getType()
public String getName()
public String getContentType()
public WitsmlVersion getWitsmlVersion()
public WitsmlType getWitsmlType()
public int getNChildren()
public long getLastChanged()
public boolean isSubscribable()
public boolean isNotifiable()
Copyright © 2023 Petroware AS - https://petroware.no