com.novell.nds.dirxml.job
Class JobUtil.StructuredValue

java.lang.Object
  extended bycom.novell.nds.dirxml.job.JobUtil.StructuredValue
Enclosing class:
JobUtil

public static class JobUtil.StructuredValue
extends Object

Class to report values for structured eDirectory attribute syntaxes.


Method Summary
 String getComponent(String componentName)
          Get a component by name.
 Iterator iterator()
          Return an Iterator for the components in the attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getComponent

public String getComponent(String componentName)
Get a component by name. Note that some structured syntaxes (e.g., Postal Address) have multiple components with the same name. For such syntaxes use iterator().

Parameters:
componentName - name
Returns:
component value or null, if there is no such component in the attribute value.

iterator

public Iterator iterator()
Return an Iterator for the components in the attribute value.

The return of the Iterator's next() method is a two-element array of Strings. Element 0 is the component name; element 1 is the value.

Returns:
Iterator instance