|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.subsystems.qsys.api.IBMiAbsoluteName
public class IBMiAbsoluteName
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 | |
---|---|
IBMiAbsoluteName(String absoluteName)
Constructor that takes a fully formed absolute name |
Method Summary | |
---|---|
static String |
getAbsoluteFieldName(String libraryName,
String fileName,
String recordName,
String fieldName,
String hostname)
Static helper method to return the absolute name of a record in a file. |
static String |
getAbsoluteLibraryName(String libraryName,
String hostname)
For when we don't care about library subtype; when it's not being tracked as part of a library list. |
static String |
getAbsoluteLibraryName(String libraryName,
String subType,
String hostname)
For when we do care about library subtype; because we may be tracking it in the library list. |
static String |
getAbsoluteMemberName(String libraryName,
String fileName,
String memberName,
String hostname)
Static helper method to return the absolute name of a member in a file. |
static String |
getAbsoluteMessageIDName(String libraryName,
String fileName,
String messageID,
String hostname)
Static helper method to return the absolute name of a message in a message file. |
static String |
getAbsoluteObjectName(String libraryName,
String objectName,
String objectType,
String hostname)
Static helper method to return the absolute name of an object in a library. |
static String |
getAbsoluteRecordName(String libraryName,
String fileName,
String recordName,
String hostname)
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 qualifying 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 (For Library-type objects, return the Library 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 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 IBMiAbsoluteName(String absoluteName)
Method Detail |
---|
public String toString()
toString
in class Object
public static int getObjectNameType(String remoteObjectAbsoluteName)
public static String getAbsoluteLibraryName(String libraryName, String hostname)
public static String getAbsoluteLibraryName(String libraryName, String subType, String hostname)
libraryName
- subType
-
public static String getAbsoluteObjectName(String libraryName, String objectName, String objectType, String hostname)
libraryName/objectName OBJTYPE(objectType)
public static String getAbsoluteMemberName(String libraryName, String fileName, String memberName, String hostname)
libraryName/fileName(memberName)
public static String getAbsoluteRecordName(String libraryName, String fileName, String recordName, String hostname)
libraryName/fileName RCDNAME(recordName)
public static String getAbsoluteFieldName(String libraryName, String fileName, String recordName, String fieldName, String hostname)
libraryName/fileName RCDNAME(recordName) FLDNAME(fieldName)
public static String getAbsoluteMessageIDName(String libraryName, String fileName, String messageID, String hostname)
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 "libName OBJTYPE(*LIB)" so be careful!
public String getObjectType()
public String getObjectAttr()
public String getMemberName()
public String getMemberType()
public String getRecordName()
public String getFieldName()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |