com.ibm.ccd.ui.dataobjects.items
Class CatalogItemParser
java.lang.Object
com.ibm.ccd.ui.dataobjects.items.CatalogSpecParser
com.ibm.ccd.ui.dataobjects.items.CatalogItemParser
public class CatalogItemParser
- extends CatalogSpecParser
Provides the capabailiy of creating the item object by parsing the WPC CatalogItem details
Note: This comp. has to optimized for parsing.
Field Summary |
static java.lang.String |
COMP_NAME
|
Method Summary |
protected static void |
fillAttributes(java.util.HashMap attributesMap,
org.w3c.dom.Element tradeItemElement)
|
static FileUploadResource[] |
getFileUploadResourceValues(org.w3c.dom.Element valuesElement)
|
static java.lang.String[] |
getIntegerValues(org.w3c.dom.Element valuesElement)
Deprecated. This method is no longer used as all atributes will be stored as strings |
static java.lang.String[] |
getNumberValues(org.w3c.dom.Element valuesElement)
Deprecated. This method is no longer used as all atributes will be stored as strings |
static org.w3c.dom.Element[] |
getPeriodValues(org.w3c.dom.Element attributeElement)
|
static NVPair[] |
getRelationValues(org.w3c.dom.Element valuesElement)
|
static java.lang.String[] |
getStringValues(org.w3c.dom.Element valuesElement)
|
static java.net.URL[] |
getURLValues(org.w3c.dom.Element valuesElement)
Deprecated. This method is no longer used as all atributes will be stored as strings |
static ICatalogItem |
prepareItem(org.w3c.dom.Element specElement,
org.w3c.dom.Element tradeItemElement)
Creates the CatalogItem by parsing the Catalog Spec.XML and CatalogItemdetails XML
Note: CatalogSpec.XML contains mainly the metadata of the catalog, where as the
CatalogItedetails.XML contains attribute values of the item. |
static void |
prepareItem(ICatalogItem item,
org.w3c.dom.Element tradeItemElement)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMP_NAME
public static final java.lang.String COMP_NAME
- See Also:
- Constant Field Values
CatalogItemParser
public CatalogItemParser()
prepareItem
public static ICatalogItem prepareItem(org.w3c.dom.Element specElement,
org.w3c.dom.Element tradeItemElement)
- Creates the CatalogItem by parsing the Catalog Spec.XML and CatalogItemdetails XML
Note: CatalogSpec.XML contains mainly the metadata of the catalog, where as the
CatalogItedetails.XML contains attribute values of the item.
However the CatalogItem is modelled to represent the attributes both interms of metadata
and object data hence this uses CatalogSpecParser to parse the spec before populating the
item details.
prepareItem
public static void prepareItem(ICatalogItem item,
org.w3c.dom.Element tradeItemElement)
fillAttributes
protected static void fillAttributes(java.util.HashMap attributesMap,
org.w3c.dom.Element tradeItemElement)
getStringValues
public static java.lang.String[] getStringValues(org.w3c.dom.Element valuesElement)
getURLValues
public static java.net.URL[] getURLValues(org.w3c.dom.Element valuesElement)
- Deprecated. This method is no longer used as all atributes will be stored as strings
getRelationValues
public static NVPair[] getRelationValues(org.w3c.dom.Element valuesElement)
getFileUploadResourceValues
public static FileUploadResource[] getFileUploadResourceValues(org.w3c.dom.Element valuesElement)
getIntegerValues
public static java.lang.String[] getIntegerValues(org.w3c.dom.Element valuesElement)
- Deprecated. This method is no longer used as all atributes will be stored as strings
getNumberValues
public static java.lang.String[] getNumberValues(org.w3c.dom.Element valuesElement)
- Deprecated. This method is no longer used as all atributes will be stored as strings
getPeriodValues
public static org.w3c.dom.Element[] getPeriodValues(org.w3c.dom.Element attributeElement)