com.ibm.ccd.ui.dataobjects.items
Class CatalogSpecParser

java.lang.Object
  extended by com.ibm.ccd.ui.dataobjects.items.CatalogSpecParser
Direct Known Subclasses:
CatalogItemParser

public class CatalogSpecParser
extends java.lang.Object

Provides the capabailiy of creating the CatalogSpec object by parsing the WPC CatalogSpec. XML Note: This comp. has to optimized for parsing.


Field Summary
static java.lang.String COMP_NAME
           
static java.lang.String STRING_VALUE_TRUE
           
 
Constructor Summary
CatalogSpecParser()
           
 
Method Summary
protected static Attribute getAttribute(org.w3c.dom.Element attributeElement)
           
protected static Attribute[] getCatalogAttribs(org.w3c.dom.Element catalogSpecElement)
           
protected static Attribute[] getCatalogAttribs(org.w3c.dom.Element catalogSpecElement, java.lang.String attributeName)
           
static ICatalogItem getCatalogSpecItem(org.w3c.dom.Element specElement)
          Creates and returns the CatalogItem representing the spec.
protected static FileUploadResource getFileUploadResource(org.w3c.dom.Element fileElement)
           
protected static double[] getNumberEnum(org.w3c.dom.Element enumElement)
           
static Attribute[] getSpecAttributes(org.w3c.dom.Element specElement)
           
protected static java.lang.String[] getStringEnum(org.w3c.dom.Element enumElement)
           
protected static boolean isPrimaryKeyAttribute(org.w3c.dom.Element attributeElement)
           
protected static void setCategorySpecificAttribute(Attribute[] attributes, java.lang.String categorySpecAttrib)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMP_NAME

public static final java.lang.String COMP_NAME
See Also:
Constant Field Values

STRING_VALUE_TRUE

public static final java.lang.String STRING_VALUE_TRUE
See Also:
Constant Field Values
Constructor Detail

CatalogSpecParser

public CatalogSpecParser()
Method Detail

getCatalogSpecItem

public static ICatalogItem getCatalogSpecItem(org.w3c.dom.Element specElement)
Creates and returns the CatalogItem representing the spec. by parsing the catalogSpecXML


getSpecAttributes

public static Attribute[] getSpecAttributes(org.w3c.dom.Element specElement)

isPrimaryKeyAttribute

protected static boolean isPrimaryKeyAttribute(org.w3c.dom.Element attributeElement)

setCategorySpecificAttribute

protected static void setCategorySpecificAttribute(Attribute[] attributes,
                                                   java.lang.String categorySpecAttrib)

getCatalogAttribs

protected static Attribute[] getCatalogAttribs(org.w3c.dom.Element catalogSpecElement)

getCatalogAttribs

protected static Attribute[] getCatalogAttribs(org.w3c.dom.Element catalogSpecElement,
                                               java.lang.String attributeName)

getAttribute

protected static Attribute getAttribute(org.w3c.dom.Element attributeElement)

getFileUploadResource

protected static final FileUploadResource getFileUploadResource(org.w3c.dom.Element fileElement)

getStringEnum

protected static final java.lang.String[] getStringEnum(org.w3c.dom.Element enumElement)

getNumberEnum

protected static final double[] getNumberEnum(org.w3c.dom.Element enumElement)