com.ibm.ccd.ui.dataobjects.view
Class CatalogViewParser

java.lang.Object
  extended by com.ibm.ccd.ui.dataobjects.view.CatalogViewParser
All Implemented Interfaces:
ICatalogViewKeys

public class CatalogViewParser
extends java.lang.Object
implements ICatalogViewKeys

Provides the functionality to parse the the CatalogView XML


Field Summary
 
Fields inherited from interface com.ibm.ccd.ui.dataobjects.view.ICatalogViewKeys
ATTRIB_COL, ATTRIB_COLS, ATTRIB_LIST, ATTRIB_NAME, ATTRIB_TYPE, ATTRIBUTE, CATALOG_VIEW, CATALOG_VIEW_LIST, CATALOG_VIEW_NAME, SPEC_LIST, SPEC_NAME, TAB, TAB_GROUP, TAG_ATTIB_NAME, TAG_ATTRIB, TAG_GROUPATTRIB, VIEW_CONTAINER, VIEW_CONTAINER_NAME
 
Constructor Summary
CatalogViewParser()
           
 
Method Summary
protected static AttributeCollectionView[] getAllAttributeCollectionView(org.w3c.dom.Element viewRootElement, org.w3c.dom.Element tab)
          get the AttributeCollectionView object from XML Element
protected static java.lang.String[] getAttributeNames(org.w3c.dom.Element viewRoot, java.lang.String attributeColName)
          return the AttributeNames for the given AttributeCollection Element
static CatalogViewMaster getCatalogView(org.w3c.dom.Element viewRootElement)
          create and returns the CatalogViewMaster Object from XML Element
static CatalogViewMaster getCatalogView(java.lang.String viewResponseXML)
          create and returns the CatalogViewMaster Object from the viewXML
static java.util.List getCatalogViewNameList(org.w3c.dom.Element viewRoot)
           
protected static TabView[] getSingleView(org.w3c.dom.Element root)
          return one single view without tab
protected static TabView[] getTabView(org.w3c.dom.Element root)
          Get TabView from the XML Element
static CatalogViewMaster getWorkFlowView(org.w3c.dom.Element viewRootElement)
          create and returns the CatalogViewMaster Object from XML Element
static boolean isTabGrouped(org.w3c.dom.Element root)
          return true if Attribute Collection is grouped under Tab
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogViewParser

public CatalogViewParser()
Method Detail

getCatalogView

public static CatalogViewMaster getCatalogView(java.lang.String viewResponseXML)
create and returns the CatalogViewMaster Object from the viewXML

Parameters:
viewResponseXML -
Returns:
catalogviewMaster

getCatalogView

public static CatalogViewMaster getCatalogView(org.w3c.dom.Element viewRootElement)
create and returns the CatalogViewMaster Object from XML Element

Parameters:
viewRootElement -
Returns:
catalogviewMaster

getWorkFlowView

public static CatalogViewMaster getWorkFlowView(org.w3c.dom.Element viewRootElement)
create and returns the CatalogViewMaster Object from XML Element

Parameters:
viewRootElement -
Returns:
catalogViewMaster

isTabGrouped

public static boolean isTabGrouped(org.w3c.dom.Element root)
return true if Attribute Collection is grouped under Tab

Parameters:
root -
Returns:
boolean

getSingleView

protected static TabView[] getSingleView(org.w3c.dom.Element root)
return one single view without tab

Parameters:
root -
Returns:
tabviews

getTabView

protected static TabView[] getTabView(org.w3c.dom.Element root)
Get TabView from the XML Element

Parameters:
root -
Returns:
tabviews

getAllAttributeCollectionView

protected static AttributeCollectionView[] getAllAttributeCollectionView(org.w3c.dom.Element viewRootElement,
                                                                         org.w3c.dom.Element tab)
get the AttributeCollectionView object from XML Element

Parameters:
tab -
Returns:
attributeCollectionViews

getAttributeNames

protected static java.lang.String[] getAttributeNames(org.w3c.dom.Element viewRoot,
                                                      java.lang.String attributeColName)
return the AttributeNames for the given AttributeCollection Element

Parameters:
viewRoot -
attributeColName -
Returns:
strings

getCatalogViewNameList

public static java.util.List getCatalogViewNameList(org.w3c.dom.Element viewRoot)