Class InstanceID
- java.lang.Object
-
- org.eclipse.birt.report.engine.api.InstanceID
-
public class InstanceID extends java.lang.Object
a class that wraps around an identifier for a report element instance
-
-
Constructor Summary
Constructors Constructor Description InstanceID(InstanceID parent, long uid, long designId, DataID dataId)
Constructor.InstanceID(InstanceID parent, long designId, DataID dataId)
Constructor.InstanceID(InstanceID parent, InstanceID iid)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
append(java.lang.StringBuffer buffer)
Append unique id, designId, dataId to buffer.protected void
appendUniqueID(java.lang.StringBuffer buffer)
Append uniqueID to buffer.long
getComponentID()
returns the component id of the elementDataID
getDataID()
Get data id of the element.InstanceID
getParentID()
Get parent id of this report element instance.long
getUniqueID()
Get unique id of this report element instance.static InstanceID
parse(char[] buffer, int offset, int length)
Parse the input char buffer into an InstanceId object.static InstanceID
parse(java.lang.String instanceId)
Parse the input string into an InstanceId object.java.lang.String
toString()
java.lang.String
toUniqueString()
Returns a string representation of the uniqueID.
-
-
-
Field Detail
-
parentId
protected InstanceID parentId
-
uid
protected long uid
-
designId
protected long designId
-
dataId
protected DataID dataId
-
-
Constructor Detail
-
InstanceID
public InstanceID(InstanceID parent, long designId, DataID dataId)
Constructor.- Parameters:
parent
- instance id of parentdesignId
- design iddataId
- data id
-
InstanceID
public InstanceID(InstanceID parent, InstanceID iid)
-
InstanceID
public InstanceID(InstanceID parent, long uid, long designId, DataID dataId)
Constructor.- Parameters:
parent
- instance id of parentuid
-designId
-dataId
-
-
-
Method Detail
-
getParentID
public InstanceID getParentID()
Get parent id of this report element instance.- Returns:
- parentId
-
getUniqueID
public long getUniqueID()
Get unique id of this report element instance.- Returns:
- unique id
-
getComponentID
public long getComponentID()
returns the component id of the element
-
getDataID
public DataID getDataID()
Get data id of the element.- Returns:
- dataId
-
append
protected void append(java.lang.StringBuffer buffer)
Append unique id, designId, dataId to buffer.- Parameters:
buffer
-
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
appendUniqueID
protected void appendUniqueID(java.lang.StringBuffer buffer)
Append uniqueID to buffer.- Parameters:
buffer
-
-
toUniqueString
public java.lang.String toUniqueString()
Returns a string representation of the uniqueID.- Returns:
-
parse
public static InstanceID parse(java.lang.String instanceId)
Parse the input string into an InstanceId object.- Parameters:
instanceId
- the input string to parse- Returns:
- InstantceID object
-
parse
public static InstanceID parse(char[] buffer, int offset, int length)
Parse the input char buffer into an InstanceId object.- Parameters:
buffer
- the input char buffer to parseoffset
- offset of the bufferlength
- length of the buffer- Returns:
- InstanceID object
-
-