public class InstanceElement extends java.lang.Object implements InstanceElement
| Modifier and Type | Field and Description |
|---|---|
protected long |
cObjPtr |
| Constructor and Description |
|---|
InstanceElement() |
InstanceElement(long cObjPtr) |
| Modifier and Type | Method and Description |
|---|---|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result) |
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist) |
org.omg.CORBA.Object |
_duplicate() |
org.omg.CORBA.DomainManager[] |
_get_domain_managers() |
org.omg.CORBA.Object |
_get_interface_def() |
org.omg.CORBA.Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_a(java.lang.String repositoryIdentifier) |
boolean |
_is_equivalent(org.omg.CORBA.Object other) |
boolean |
_non_existent() |
void |
_release() |
org.omg.CORBA.Request |
_request(java.lang.String operation) |
org.omg.CORBA.Object |
_set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add) |
void |
addInstanceAttribute(NameValueUnit instAttr)
Add an instance attribute to the instance.
|
T_LONGLONG |
compare(InstanceElement ieObj)
Compare two instance elements.
|
T_LONGLONG |
compare(InstanceElement instanceElement)
Compare two instance elements.
|
InstanceElement[] |
createRelatedInstances(ApplicationRelation applicationRelation,
NameValueSeqUnit[] nameValueSeqUnit,
ApplicationRelationInstanceElementSeq[] applicationRelationInstanceElementSeq)
Create a list with instances which are related to the
actual instance element.
|
void |
createRelation(ApplicationRelation relation,
InstanceElement instElem)
Create a relation between the current and the given
instance.
|
InstanceElement |
deepCopy(java.lang.String newName,
java.lang.String newVersion)
Provides an easy-to-use and effective copy mechanismn for
instance element hierarchies inside the server (e.g. copy
a project with all tests or copy a test with all
measurements).
|
void |
destroy()
Destroy the object on the server.
|
boolean |
equals(java.lang.Object obj) |
protected void |
finalize() |
ApplicationElement |
getApplicationElement()
Get the application element of the instance element.
|
java.lang.String |
getAsamPath()
Get the ASAM-Path of the instance element.
|
T_LONGLONG |
getId()
Get the Id of the instance element.
|
InitialRight[] |
getInitialRights()
Retrieve access control list information for the initial
rights of the given object.
|
java.lang.String |
getName()
Get the name of the instance element.
|
InstanceElementIterator |
getRelatedInstances(ApplicationRelation applRel,
java.lang.String iePattern)
Get the related instances.
|
InstanceElementIterator |
getRelatedInstancesByRelationship(Relationship ieRelationship,
java.lang.String iePattern)
Get the list of related instances.
|
ACL[] |
getRights()
Retrieve access control list information of the given
object.
|
NameValueUnit |
getValue(java.lang.String attrName)
Get the attribute value (name, value and unit) of the
given attribute of the instance element.
|
NameValueUnit |
getValueByBaseName(java.lang.String baseAttrName)
Get the attribute value (value and unit) of the attribute
inherited from the given base attribute of the instance
element.
|
NameValueUnit |
getValueInUnit(NameUnit attr)
Get the attribute value (name, value and unit) of the
given attribute of the instance element.
|
NameValueUnit[] |
getValueSeq(java.lang.String[] attrNames)
Get the sequence of the values of the application or instance attributes,
specified by their names.
|
java.lang.String[] |
listAttributes(java.lang.String iaPattern,
AttrType aType)
Get the attribute names from the instance element.
|
NameIterator |
listRelatedInstances(ApplicationRelation ieRelation,
java.lang.String iePattern)
Get the names of the related instances.
|
NameIterator |
listRelatedInstancesByRelationship(Relationship ieRelationship,
java.lang.String iePattern)
Get the names of the related instances.
|
void |
removeInstanceAttribute(java.lang.String attrName)
Remove an instance attribute.
|
void |
removeRelation(ApplicationRelation applRel,
InstanceElement instElem_nm)
Remove the relation between the current instance and the
given instance.
|
void |
renameInstanceAttribute(java.lang.String oldName,
java.lang.String newName)
Rename the instance attribute.
|
void |
setInitialRights(InstanceElement usergroup,
int rights,
T_LONGLONG refAid,
RightsSet set)
The given usergroup the initial rights should be set for.
|
void |
setName(java.lang.String iaName)
Set the name of an instance element.
|
void |
setRights(InstanceElement usergroup,
int rights,
RightsSet set)
The given usergroup the rights should be set for.
|
void |
setValue(NameValueUnit value)
Set the value of an application or instance attribute.
|
void |
setValueSeq(NameValueUnit[] values)
Set a sequences of values of an application or instance
attributes.
|
InstanceElement |
shallowCopy(java.lang.String newName,
java.lang.String newVersion)
Provides an easy-to-use and effective copy mechanismn for
instance elements inside the server.
|
Measurement |
upcastMeasurement()
Cast an instance element to a measurement.
|
ODSFile |
upcastODSFile()
(14033)
Upcast the InstanceElement object to the corresponding ODSFile
interface for an instance.
|
SubMatrix |
upcastSubMatrix()
Cast an instance element to a submatrix.
|
public InstanceElement()
public InstanceElement(long cObjPtr)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void addInstanceAttribute(NameValueUnit instAttr) throws AoException
addInstanceAttribute in interface InstanceElementOperationsinstAttr - The instance attribute to be added.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic void createRelation(ApplicationRelation relation, InstanceElement instElem) throws AoException
createRelation in interface InstanceElementOperationsrelation - The application relation.instElem - The instance element.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATION
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic T_LONGLONG compare(InstanceElement ieObj) throws AoException
AoException - with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_BAD_PARAMETERpublic ApplicationElement getApplicationElement() throws AoException
getApplicationElement in interface InstanceElementOperationsAoException - with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic java.lang.String getAsamPath()
throws AoException
getAsamPath in interface InstanceElementOperationsAoException - with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic T_LONGLONG getId() throws AoException
getId in interface InstanceElementOperationsAoException - with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic java.lang.String getName()
throws AoException
getName in interface InstanceElementOperationsAoException - with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic InstanceElementIterator getRelatedInstances(ApplicationRelation applRel, java.lang.String iePattern) throws AoException
getRelatedInstances in interface InstanceElementOperationsapplRel - The application relation.iePattern - The name or the search pattern for the
related instance names.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATION
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic InstanceElementIterator getRelatedInstancesByRelationship(Relationship ieRelationship, java.lang.String iePattern) throws AoException
getRelatedInstancesByRelationship in interface InstanceElementOperationsieRelationship - The requested relationship.iePattern - The name or the search pattern for the
related instance names.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATIONSHIP
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic NameValueUnit getValue(java.lang.String attrName) throws AoException
getValue in interface InstanceElementOperationsattrName - The name of the requested attribute.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic NameValueUnit getValueByBaseName(java.lang.String baseAttrName) throws AoException
getValueByBaseName in interface InstanceElementOperationsbaseAttrName - The base name of the requested
attribute.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic java.lang.String[] listAttributes(java.lang.String iaPattern,
AttrType aType)
throws AoException
listAttributes in interface InstanceElementOperationsiaPattern - The name or the search pattern for the
attribute names.aType - The requested attribute type.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_ATTRIBUTE_TYPE
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic NameIterator listRelatedInstances(ApplicationRelation ieRelation, java.lang.String iePattern) throws AoException
listRelatedInstances in interface InstanceElementOperationsieRelation - The application relation.iePattern - The name or the search pattern for the
related instance names.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic NameIterator listRelatedInstancesByRelationship(Relationship ieRelationship, java.lang.String iePattern) throws AoException
listRelatedInstancesByRelationship in interface InstanceElementOperationsieRelationship - The requested relationship.iePattern - The name or the search pattern for the
related instance names.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATIONSHIP
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic void removeInstanceAttribute(java.lang.String attrName)
throws AoException
removeInstanceAttribute in interface InstanceElementOperationsattrName - The name of the attribute to be removed.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic void removeRelation(ApplicationRelation applRel, InstanceElement instElem_nm) throws AoException
removeRelation in interface InstanceElementOperationsapplRel - The relation to be removed.instElem_nm - The instance element for specific
delete from n:m relations.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATION
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic void renameInstanceAttribute(java.lang.String oldName,
java.lang.String newName)
throws AoException
renameInstanceAttribute in interface InstanceElementOperationsoldName - The old instance attribute name.newName - The new instance attribute name.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_DUPLICATE_NAME
AO_IMPLEMENTATION_PROBLEM
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic void setName(java.lang.String iaName)
throws AoException
setName in interface InstanceElementOperationsiaName - The instance attribute name.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic void setValue(NameValueUnit value) throws AoException
setValue in interface InstanceElementOperationsvalue - The value to be set in the instance
element.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_DUPLICATE_VALUE
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic Measurement upcastMeasurement() throws AoException
upcastMeasurement in interface InstanceElementOperationsAoException - with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic SubMatrix upcastSubMatrix() throws AoException
upcastSubMatrix in interface InstanceElementOperationsAoException - with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic NameValueUnit getValueInUnit(NameUnit attr) throws AoException
getValueInUnit in interface InstanceElementOperationsattr - The name of the requested attribute and the
unit of the attribute value.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_INCOMPATIBLE_UNITS
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic NameValueUnit[] getValueSeq(java.lang.String[] attrNames) throws AoException
getValueSeq in interface InstanceElementOperationsattrNames - The names of the attributes to be reported.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic void setValueSeq(NameValueUnit[] values) throws AoException
setValueSeq in interface InstanceElementOperationsvalues - The sequence of the values to be set at
the instance element.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_DUPLICATE_VALUE
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic void setRights(InstanceElement usergroup, int rights, RightsSet set) throws AoException
setRights in interface InstanceElementOperationsusergroup - The usergroup for which the rights will
be modified.rights - The new right for the usergroup. The
rights constants are defined in the
interface SecurityRights. The interface
definition language IDL does not allow to
set the values of enumerations thus the
constant definitions had to be done in an
interface.set - What to do with the new right.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic ACL[] getRights() throws AoException
getRights in interface InstanceElementOperationsAoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic InitialRight[] getInitialRights() throws AoException
getInitialRights in interface InstanceElementOperationsAoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic void setInitialRights(InstanceElement usergroup, int rights, T_LONGLONG refAid, RightsSet set) throws AoException
setInitialRights in interface InstanceElementOperationsusergroup - The usergroup for which the initial
rights will be modified.rights - The new initial rights for the usergroup.
The rights constants are defined in the
interface SecurityRights. The interface
definition language IDL does not allow to
set the values of enumerations thus the
constant definitions had to be done in an
interface.refAid - The Id of referencing application element
for which the initial rights will be used.
If no refAid is set the initial rights
will be used for each new instance element
independent of the application element.set - What to do with the new initial rights.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic InstanceElement shallowCopy(java.lang.String newName, java.lang.String newVersion) throws AoException
shallowCopy in interface InstanceElementOperationsnewName - The name of the new instance element. If
a new version shall be created this
parameter may be NULL to use the same
name for the copy. In this case a new
version must be provided.newVersion - The version of the new instance
element. This parameter may be NULL if
a new name is provided.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic InstanceElement deepCopy(java.lang.String newName, java.lang.String newVersion) throws AoException
deepCopy in interface InstanceElementOperationsnewName - The name of the new instance element. If
a new version shall be created this
parameter may be NULL to use the same
name for the copy. In this case a new
version must be provided.newVersion - The version of the new instance
element. This parameter may be NULL if
a new name is provided.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic InstanceElement[] createRelatedInstances(ApplicationRelation applicationRelation, NameValueSeqUnit[] nameValueSeqUnit, ApplicationRelationInstanceElementSeq[] applicationRelationInstanceElementSeq) throws AoException
createRelatedInstances in interface InstanceElementOperationsapplRel - The application relation for wich the
related instances will be created.attributes - The attributes of the new created
instances.relatedInstances - The list with related instances
for different application
relations.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVE
AO_INVALID_REQUESTpublic void destroy()
throws AoException
destroy in interface InstanceElementOperationsAoException - with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic T_LONGLONG compare(InstanceElement instanceElement) throws AoException
compare in interface InstanceElementOperationscompIeObj - The instance element to compare with.AoException - with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic ODSFile upcastODSFile() throws AoException
upcastODSFile in interface InstanceElementOperationsAoException - with the following possible error codes:
AO_INVALID_BASETYPE
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _duplicate()
_duplicate in interface org.omg.CORBA.Objectpublic org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _get_interface_def()
_get_interface_def in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy in interface org.omg.CORBA.Objectpublic int _hash(int maximum)
_hash in interface org.omg.CORBA.Objectpublic boolean _is_a(java.lang.String repositoryIdentifier)
_is_a in interface org.omg.CORBA.Objectpublic boolean _is_equivalent(org.omg.CORBA.Object other)
_is_equivalent in interface org.omg.CORBA.Objectpublic boolean _non_existent()
_non_existent in interface org.omg.CORBA.Objectpublic void _release()
_release in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _request(java.lang.String operation)
_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
_set_policy_override in interface org.omg.CORBA.Object