|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.core.api.ISeriesAbsoluteName
Throughout the iSeries support, we often have to turn remote objects into absolute names, and decompose absolute names into constituent parts.
This is needed by the remote systems framework, which needs to be able to uniquely identify a remote object within a connection (well, subsystem) since its binary address within a particular view can change on a refresh.
We found ourselves redundantly writing such code in many places, causing a maintenance problem if we chose to change the format of a particular object's absolute name.
Field Summary | |
---|---|
static String |
copyright
|
static int |
OBJTYPE_FLD
|
static int |
OBJTYPE_LIB
|
static int |
OBJTYPE_MBR
|
static int |
OBJTYPE_MSGD
|
static int |
OBJTYPE_OBJ
|
static int |
OBJTYPE_RCD
|
static int |
OBJTYPE_UNKNOWN
|
Constructor Summary | |
---|---|
ISeriesAbsoluteName(String absoluteName)
Constructor that takes a fully formed absolute name |
Method Summary | |
---|---|
static String |
getAbsoluteFieldName(String libraryName,
String fileName,
String recordName,
String fieldName)
Static helper method to return the absolute name of a record in a file. |
static String |
getAbsoluteLibraryName(String libraryName)
Static helper method to return the absolute name of a library. |
static String |
getAbsoluteMemberName(String libraryName,
String fileName,
String memberName)
Static helper method to return the absolute name of a member in a file. |
static String |
getAbsoluteMessageIDName(String libraryName,
String fileName,
String messageID)
Static helper method to return the absolute name of a message in a message file. |
static String |
getAbsoluteObjectName(String libraryName,
String objectName,
String objectType)
Static helper method to return the absolute name of an object in a library. |
static String |
getAbsoluteRecordName(String libraryName,
String fileName,
String recordName)
Static helper method to return the absolute name of a record in a file. |
String |
getFieldName()
Return the field name part of this absolute name, or null if this is not deducible or applicable |
String |
getLibraryName()
Return the library name part of this absolute name |
String |
getMemberName()
Return the member name part of this absolute name, or null if this is not deducible or not applicable. |
String |
getMemberType()
Return the member type part of this absolute name, or null if this is not deducible or not applicable. |
String |
getObjectAbsoluteName()
Rather than just returning the raw name of the object, this returns the absolute name of the object. |
String |
getObjectAttr()
Return the object type part of this absolute name, or "*" if this is not deducible |
String |
getObjectName()
Return the object name part of this absolute name |
int |
getObjectNameType()
Non-static method to return the type of object represented by this absolute name. |
static int |
getObjectNameType(String remoteObjectAbsoluteName)
Static method to return the type of object represented by the given absolute name. |
String |
getObjectType()
Return the object type part of this absolute name, or null if this is not deducible |
String |
getRecordName()
Return the field name part of this absolute name, or null if this is not deducible or applicable |
String |
toString()
Return this absolute name as a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String copyright
public static final int OBJTYPE_UNKNOWN
public static final int OBJTYPE_FLD
public static final int OBJTYPE_RCD
public static final int OBJTYPE_MBR
public static final int OBJTYPE_OBJ
public static final int OBJTYPE_LIB
public static final int OBJTYPE_MSGD
Constructor Detail |
public ISeriesAbsoluteName(String absoluteName)
Method Detail |
public String toString()
public static int getObjectNameType(String remoteObjectAbsoluteName)
public static String getAbsoluteLibraryName(String libraryName)
libraryName
public static String getAbsoluteObjectName(String libraryName, String objectName, String objectType)
libraryName/objectName OBJTYPE(objectType)
public static String getAbsoluteMemberName(String libraryName, String fileName, String memberName)
libraryName/fileName(memberName)
public static String getAbsoluteRecordName(String libraryName, String fileName, String recordName)
libraryName/fileName RCDNAME(recordName)
public static String getAbsoluteFieldName(String libraryName, String fileName, String recordName, String fieldName)
libraryName/fileName RCDNAME(recordName) FLDNAME(fieldName)
public static String getAbsoluteMessageIDName(String libraryName, String fileName, String messageID)
libraryName/fileName MSGID(messageID)
public int getObjectNameType()
public String getLibraryName()
public String getObjectName()
public String getObjectAbsoluteName()
For objects, we can simply return the original absolute name. For libraries, we return "QSYS/libName OBJTYPE(*LIB)" so be careful!
public String getObjectType()
public String getObjectAttr()
public String getMemberName()
public String getMemberType()
public String getRecordName()
public String getFieldName()
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |