|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacorb.poa.util.POAUtil
This class collects some useful routines for the POA.
Method Summary | |
---|---|
static java.lang.String |
convert(byte[] data)
convert outputs a byte oid in a hex string dump formatted
like e.g.:
49 6d 52 ImR
.... |
static java.lang.String |
convert(Policy policy,
int policy_type)
reads the policy value from the specified policy and converts it into a string |
static java.lang.String |
convert(State state)
converts the state into a string |
static java.lang.String |
extractImplName(byte[] object_key)
extracts the impl name from a specified object key |
static byte[] |
extractOID(byte[] object_key)
extracts the oid from a specified object key |
static byte[] |
extractOID(Object reference)
extracts the oid from a specified object reference |
static java.lang.String |
extractPOAName(byte[] object_key)
extracts the poa name from a specified object key |
static java.util.List |
extractScopedPOANames(java.lang.String poa_name)
extractScopedPOANames returns a list containing the
poa_names. |
static Policy |
getPolicy(Policy[] policies,
int policy_type)
returns the policy with the specified policy_type from a policy list |
static boolean |
isActive(State state)
|
static boolean |
isDiscarding(State state)
|
static boolean |
isHolding(State state)
|
static boolean |
isInactive(State state)
|
static byte[] |
maskId(byte[] id)
masks the object key separator bytes |
static java.lang.String |
maskStr(java.lang.String str)
masks the object key separator chars |
static java.lang.String |
toHex(byte b)
toHex converts a byte into a readable string. |
static byte[] |
unmaskId(byte[] id)
unmasks the object key separator bytes |
static java.lang.String |
unmaskStr(java.lang.String str)
unmasks the object key separator chars |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String convert(byte[] data)
convert
outputs a byte oid in a hex string dump formatted
like e.g.:
49 6d 52 ImR
....
String
valuepublic static java.lang.String convert(Policy policy, int policy_type)
public static java.lang.String convert(State state)
public static java.lang.String extractImplName(byte[] object_key)
public static byte[] extractOID(byte[] object_key)
public static byte[] extractOID(Object reference)
public static java.lang.String extractPOAName(byte[] object_key)
public static java.util.List extractScopedPOANames(java.lang.String poa_name)
extractScopedPOANames
returns a list containing the
poa_names. This method is faster than using a StringTokenizer.
poa_name
- is a String
value which may contain
poa_names separated by
OBJECT_KEY_SEPARATOR
Vector
valuepublic static Policy getPolicy(Policy[] policies, int policy_type)
public static boolean isActive(State state)
public static boolean isDiscarding(State state)
public static boolean isHolding(State state)
public static boolean isInactive(State state)
public static byte[] maskId(byte[] id)
public static java.lang.String maskStr(java.lang.String str)
public static java.lang.String unmaskStr(java.lang.String str)
public static byte[] unmaskId(byte[] id)
public static final java.lang.String toHex(byte b)
toHex
converts a byte into a readable string.
b
- a byte
value
String
value
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |