public abstract class InstancePath extends Object
Class Representing an path. A Path can be either a schema path or an instance path. A schema path points to an element in the model while an instance path points to an element in the instantiated model.
The difference is that in the instance tree both elements and data values are needed to point out a instance element.
 There are several ways to represent a path which are supported by
 this class. The two most important being as a String or as a array of
 ConfTag/ConfKey values.
 Instance of ConfEList - Applications usually does
 not have to deal with paths that are instances of ConfEList.
 Constructors that have this type is usually for internal use:
 InstancePath(ConfEBinary),InstancePath(ConfEList),
 InstancePath(ConfObject[])
 
ConfObject ConfObject[]
 where each element is either
 of the type ConfTag or ConfKey. To determine which type
 a instanceof test is required. Usually the application
 need to deal with this representations in different callback
 implementations and it is always reverted. The library
 invokes the user defined callbacks with this type of representation as
 one of the parameters.
 Application is seldom required to construct such arrays.
| Constructor and Description | 
|---|
InstancePath(ConfEBinary o)
Initialize a InstancePath. 
 | 
InstancePath(ConfEList o)
Initialize a InstancePath. 
 | 
InstancePath(ConfObject[] kp)
Initializes a new instance of this class from a given
 reverted ConfObject[] keypath where elements
 is either  
ConfTag or
 ConfKey. | 
InstancePath(MountIdInterface mountGetter,
            ConfObject[] kp)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
atoString()
Deprecated.  
 | 
ConfEList | 
encode()
Returns the path encoded as an ConfEList. 
 | 
ConfEList | 
encodeIKP()
Returns the path as ConfEList in IKP format. 
 | 
boolean | 
equals(Object o)  | 
MaapiSchemas.CSNode | 
getCSNode()
Returns MaapiSchemas node corresponding to the path. 
 | 
ConfObject[] | 
getKP()
 Returns an array of  
ConfTag and ConfKey
 objects which represents the path in reverted order. | 
List<String> | 
getLatestMountId()  | 
MountIdInterface | 
getMountIdGetter()  | 
int | 
hashCode()
Returns a hash code value for the path. 
 | 
boolean | 
isKey()  | 
boolean | 
isParsingDeferred()  | 
boolean | 
isRel()
Check if this is a relative path. 
 | 
void | 
setMountIdGetter(MountIdInterface mountGetter)  | 
String | 
toString()  | 
String | 
toXPathString()
Returns this path object as an XPath string. 
 | 
public InstancePath(ConfEBinary o) throws ConfException
o - element constitute a InstancePathConfExceptionpublic InstancePath(ConfEList o)
o - element (reversed) constitute a InstancePathConfExceptionpublic InstancePath(ConfObject[] kp)
ConfTag or
 ConfKey.kp - reverted keypathpublic InstancePath(MountIdInterface mountGetter, ConfObject[] kp)
public ConfEList encode()
public ConfEList encodeIKP()
public ConfObject[] getKP() throws ConfException
 Returns an array of ConfTag and ConfKey
 objects which represents the path in reverted order.
 
 This method requires that the path is absolute and that
 the schema prefix for the root element is defined, if not
 a ConfException is thrown.
 The ConfKey is composed of the proper
 ConfValue types which are determined by the
 loaded schema. However, if this the schema information is not available,
 and the type therefore cannot be determined the key elements are
 defaulted to ConfBinary.
 
InstancePathConfException - If schema information is not loaded,
         the path is not valid or the parsed path
         has no namespace information.@Deprecated public String atoString()
public boolean isKey()
public boolean isRel()
public String toXPathString()
public int hashCode()
java.util.Hashtable.
 The hash code is calculated from its component of ConfTag
 and ConfKey.public MaapiSchemas.CSNode getCSNode()
public MountIdInterface getMountIdGetter()
public void setMountIdGetter(MountIdInterface mountGetter) throws ConfException
ConfExceptionpublic boolean isParsingDeferred()