com.novell.admin.ns.nds
Class PostalAddressFacade

java.lang.Object
  extended bycom.novell.admin.ns.ValueListFacade
      extended bycom.novell.admin.ns.nds.PostalAddressFacade

public final class PostalAddressFacade
extends ValueListFacade

Facade for NDS Postal Address syntax.


Field Summary
 
Fields inherited from class com.novell.admin.ns.ValueListFacade
valueList
 
Constructor Summary
PostalAddressFacade(ValueList comp)
          Facade constructor
 
Method Summary
static ValueList createValueList(java.lang.String[] lines)
          Creates an NDS Postal Address ValueList.
static ValueList createValueList(java.lang.String[] lines, Syntax syn)
          Creates an NDS Postal Address ValueList.
 java.lang.String getLine(int index)
          Retrieves a particular line of the postal address.
 java.lang.String[] getLines()
          Retrieves the Postal Address.
 void replaceLine(java.lang.String newLine, int index)
          Replaces a particular line of the postal address.
 
Methods inherited from class com.novell.admin.ns.ValueListFacade
getValueList, replaceBooleanValue, replaceHexValue, replaceLongValue, replaceStringValue, replaceValueList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostalAddressFacade

public PostalAddressFacade(ValueList comp)
                    throws IncompatibleComponentException
Facade constructor

Parameters:
comp - The ValueList that represents the postal address data.
Throws:
IncompatibleComponentException - Not used.
Method Detail

createValueList

public static ValueList createValueList(java.lang.String[] lines)
Creates an NDS Postal Address ValueList. This form is provided for backward compatibility and assumes NDS syntax.

Parameters:
lines - Refer to NDS Schema Reference.
Returns:
A new Postal Address ValueList.

createValueList

public static ValueList createValueList(java.lang.String[] lines,
                                        Syntax syn)
Creates an NDS Postal Address ValueList.

Parameters:
lines - Refer to NDS Schema Reference.
syn - The syntax for this value, either NDSSyntax.SYN_PO_ADDRESS or LDAPSyntax.SYN_POSTAL_ADDRESS.
Returns:
A new Postal Address ValueList.

getLine

public java.lang.String getLine(int index)
                         throws java.lang.ArrayIndexOutOfBoundsException
Retrieves a particular line of the postal address.

Parameters:
index - The index of the postal address line to retrieve.
Returns:
The postal address line.
Throws:
java.lang.ArrayIndexOutOfBoundsException - index in not in range of list.

getLines

public java.lang.String[] getLines()
Retrieves the Postal Address.

Returns:
The Postal Address.

replaceLine

public void replaceLine(java.lang.String newLine,
                        int index)
                 throws java.lang.ArrayIndexOutOfBoundsException
Replaces a particular line of the postal address.

Parameters:
newLine - The new value.
index - The index of the postal address line to replace.
Throws:
java.lang.ArrayIndexOutOfBoundsException - index in not in range of list.


API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated September 2 2004 0111.