com.infoengine.administration
Class MetaDescriptor

java.lang.Object
  extended bycom.infoengine.administration.MetaDescriptor

public class MetaDescriptor
extends Object

object representation of a single ptcPropertyValue from an LDAP entry with an objectClass of ptcServiceMeta


Field Summary
private  String desc
           
private  String display
           
private  String help
           
private  Hashtable idHash
           
private  Hashtable keyHash
           
(package private)  boolean listed
           
private  int max
           
private  int min
           
(package private)  boolean multiValued
           
private  String property
           
(package private)  boolean ranged
           
(package private)  boolean required
           
(package private)  int startIndex
           
private  String type
           
(package private)  Vector valueList
           
 
Constructor Summary
MetaDescriptor(String desc)
          create a MetaDescriptor object out of an unparsed descriptor string
MetaDescriptor(String desc, Hashtable idHash, Hashtable keyHash)
           
MetaDescriptor(String desc, String resourceBundle)
          create a MetaDescriptor object out of an unparsed descriptor string with localized labels
 
Method Summary
static MetaDescriptor findDescriptor(String prop, Vector descs)
          search a vector for a MetaDescriptor object based on property name
private  void getBundle(String resourceBundle)
           
static Vector getDescriptorList(Enumeration descs)
          build an alphabetically ordered list of MetaDescriptors
static Vector getDescriptorList(Enumeration descs, String order)
          build an ordered list of MetaDescriptors
static Vector getDescriptorList(Enumeration descs, String order, String resourceBundle)
          build an ordered, localized list of MetaDescriptors
 String getDisplay()
           
 String getHelp()
           
 Hashtable getIdHash()
           
 Hashtable getKeyHash()
           
 int getMax()
           
 int getMin()
           
 String getProperty()
           
 int getStartIndex()
           
 String getType()
           
 Enumeration getValueList()
           
 boolean isListed()
           
 boolean isMultiValued()
           
 boolean isRanged()
           
 boolean isRequired()
           
private  void parse()
           
 void setDisplay(String display)
           
 void setHelp(String help)
           
 void setMax(int max)
           
 void setMin(int min)
           
 void setProperty(String property)
           
 void setType(String type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

desc

private String desc

property

private String property

display

private String display

type

private String type

help

private String help

min

private int min

max

private int max

ranged

boolean ranged

listed

boolean listed

valueList

Vector valueList

keyHash

private Hashtable keyHash

idHash

private Hashtable idHash

multiValued

boolean multiValued

required

boolean required

startIndex

int startIndex
Constructor Detail

MetaDescriptor

public MetaDescriptor(String desc)
               throws javax.servlet.jsp.JspException
create a MetaDescriptor object out of an unparsed descriptor string


MetaDescriptor

public MetaDescriptor(String desc,
                      String resourceBundle)
               throws javax.servlet.jsp.JspException
create a MetaDescriptor object out of an unparsed descriptor string with localized labels


MetaDescriptor

public MetaDescriptor(String desc,
                      Hashtable idHash,
                      Hashtable keyHash)
               throws javax.servlet.jsp.JspException
Method Detail

parse

private void parse()
            throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

isMultiValued

public boolean isMultiValued()

isRequired

public boolean isRequired()

getStartIndex

public int getStartIndex()

setProperty

public void setProperty(String property)

getProperty

public String getProperty()

setDisplay

public void setDisplay(String display)
                throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

getDisplay

public String getDisplay()

getBundle

private void getBundle(String resourceBundle)

getIdHash

public Hashtable getIdHash()

getKeyHash

public Hashtable getKeyHash()

setHelp

public void setHelp(String help)
             throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

getHelp

public String getHelp()

setType

public void setType(String type)

getType

public String getType()

setMin

public void setMin(int min)

getMin

public int getMin()

setMax

public void setMax(int max)

getMax

public int getMax()

getValueList

public Enumeration getValueList()

isRanged

public boolean isRanged()

isListed

public boolean isListed()

toString

public String toString()

findDescriptor

public static MetaDescriptor findDescriptor(String prop,
                                            Vector descs)
search a vector for a MetaDescriptor object based on property name

Parameters:
prop - - the property name
descs - - the vector of descriptors
Returns:
a MetaDescriptor or null if not found

getDescriptorList

public static Vector getDescriptorList(Enumeration descs)
                                throws javax.servlet.jsp.JspException
build an alphabetically ordered list of MetaDescriptors

Parameters:
descs - - enumeration of unparsed string descriptors
Returns:
an ordered vector of MetaDescriptor objects
Throws:
javax.servlet.jsp.JspException

getDescriptorList

public static Vector getDescriptorList(Enumeration descs,
                                       String order)
                                throws javax.servlet.jsp.JspException
build an ordered list of MetaDescriptors

Parameters:
descs - - enumeration of unparsed string descriptors
order - - comma separated list of property names, may be null.
Returns:
an ordered vector of MetaDescriptor objects
Throws:
javax.servlet.jsp.JspException

getDescriptorList

public static Vector getDescriptorList(Enumeration descs,
                                       String order,
                                       String resourceBundle)
                                throws javax.servlet.jsp.JspException
build an ordered, localized list of MetaDescriptors

Parameters:
descs - - enumeration of unparsed string descriptors
order - - comma separated list of property names, may be null.
resourceBundle - - where to get localized messages from
Returns:
an ordered vector of MetaDescriptor objects
Throws:
javax.servlet.jsp.JspException