public abstract class Resource
extends com.exalead.gni.GNIObject
Modifier and Type | Field and Description |
---|---|
protected int |
lang |
Constructor and Description |
---|
Resource(java.lang.String name,
java.lang.String path) |
Resource(java.lang.String name,
java.lang.String path,
int lang) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
_getParametersDigest() |
protected abstract void |
allocate()
Function you should override to perform allocation of the underlying
data.
|
boolean |
equals(java.lang.Object otherObject) |
protected void |
finalize() |
protected abstract void |
free()
Function you should override to perform deallocation of the underlying
data.
|
java.lang.String |
getExpandedPath() |
static java.lang.String |
getExpandedPath(java.lang.String path) |
static java.lang.String |
getExpandedPath(java.lang.String path,
java.lang.String name) |
java.lang.String |
getExpandedPathIfExists() |
static java.lang.String |
getExpandedPathIfExists(java.lang.String path) |
java.lang.String |
getIdentifier() |
int |
getLang() |
java.lang.String |
getLangName() |
java.lang.String |
getName() |
int |
hashCode() |
boolean |
hasPath() |
void |
register()
Register the resource in the global dictionary; allocate it if it's new.
|
void |
register(boolean ignoreRegistered) |
void |
release()
Release the resource to the global dictionary; free it if required.
|
void |
release(boolean forceDecref) |
public Resource(java.lang.String name, java.lang.String path)
public Resource(java.lang.String name, java.lang.String path, int lang)
protected abstract void free()
protected abstract void allocate() throws ResourceAllocationFailedException, ResourceNotFoundException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public static java.lang.String getExpandedPath(java.lang.String path) throws ResourceNotFoundException
ResourceNotFoundException
public static java.lang.String getExpandedPath(java.lang.String path, java.lang.String name) throws ResourceNotFoundException
ResourceNotFoundException
public static java.lang.String getExpandedPathIfExists(java.lang.String path)
public java.lang.String getExpandedPathIfExists()
public java.lang.String getExpandedPath() throws ResourceNotFoundException
ResourceNotFoundException
public boolean hasPath()
protected java.lang.String _getParametersDigest()
public java.lang.String getIdentifier() throws ResourceNotFoundException
ResourceNotFoundException
public int getLang()
public java.lang.String getLangName()
public java.lang.String getName()
public void register() throws ResourceAllocationFailedException, ResourceNotFoundException
public void register(boolean ignoreRegistered) throws ResourceAllocationFailedException, ResourceNotFoundException
public void release()
public void release(boolean forceDecref)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
Copyright © 2013 Dassault Systèmes, All Rights Reserved.