com.tivoli.twg.engine
Class TWGNativeAddressEntryShadow

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGNativeAddressEntryShadow
All Implemented Interfaces:
AddressEntryShadow

public class TWGNativeAddressEntryShadow
extends java.lang.Object
implements AddressEntryShadow

Implementation of address entry shadow for TWGNativeManagedObject.


Field Summary
static int MAGIC_NUMBER
          Our record magic number
 
Constructor Summary
TWGNativeAddressEntryShadow()
          Default constructor
 
Method Summary
static byte[] buildAddressEntryRecord(java.lang.String ipcpath)
          Build address entry record using given parameters
 java.lang.String getAddressAttribute(java.lang.String symname)
          Get string representation of attribute with given symbolic name
 java.lang.String[] getAddressAttributeIDs()
          Get symbolic names for all attributes supported
 java.lang.String getAddressAttributeLabel(java.lang.String symname, java.util.Locale loc)
          Get label for attribute with given symbolic name
 java.lang.String getIPCPath()
          Get IPC path for native client
 void initAddressEntry(byte[] buf, int start, int len)
          Deliver address entry record to initialize AddressEntryShadow data content
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAGIC_NUMBER

public static final int MAGIC_NUMBER
Our record magic number

See Also:
Constant Field Values
Constructor Detail

TWGNativeAddressEntryShadow

public TWGNativeAddressEntryShadow()
Default constructor

Method Detail

initAddressEntry

public void initAddressEntry(byte[] buf,
                             int start,
                             int len)
                      throws AddressEntryFormatException
Deliver address entry record to initialize AddressEntryShadow data content

Specified by:
initAddressEntry in interface AddressEntryShadow
Parameters:
buf - - buffer containing address entry record
start - - offset of start of record in buffer
len - - length of record in buffer
Throws:
AddressEntryFormatException - if improper address record

getAddressAttributeIDs

public java.lang.String[] getAddressAttributeIDs()
Get symbolic names for all attributes supported

Specified by:
getAddressAttributeIDs in interface AddressEntryShadow
Returns:
string array of address attribute symbol names

getAddressAttribute

public java.lang.String getAddressAttribute(java.lang.String symname)
Get string representation of attribute with given symbolic name

Specified by:
getAddressAttribute in interface AddressEntryShadow
Parameters:
symname - - symbolic name of attribute to request
Returns:
string value of attribute (null if no value)

getAddressAttributeLabel

public java.lang.String getAddressAttributeLabel(java.lang.String symname,
                                                 java.util.Locale loc)
Get label for attribute with given symbolic name

Specified by:
getAddressAttributeLabel in interface AddressEntryShadow
Parameters:
symname - - symbolic name of attribute to get label
loc - - locale to use for label information
Returns:
label string

getIPCPath

public java.lang.String getIPCPath()
Get IPC path for native client

Returns:
IPC path string, or null if not currently available

buildAddressEntryRecord

public static byte[] buildAddressEntryRecord(java.lang.String ipcpath)
Build address entry record using given parameters

Parameters:
ipcpath - - IPC path