com.ptc.epm.commands.XMLutil
Class ECADComponent

java.lang.Object
  extended bycom.ptc.epm.commands.XMLutil.ECADXMLAbstractObject
      extended bycom.ptc.epm.commands.XMLutil.ECADComponent
All Implemented Interfaces:
Serializable

public class ECADComponent
extends ECADXMLAbstractObject

ECADComponent holds the data read from the defining XML file necessary for adding an Components to an ECADAssembly document. Each Component will be linked to the parent doc by an EPMMemberLink with an EPMUseOccurrence for each referenceDesignator name.

See Also:
Serialized Form

Field Summary
private  Vector attributes
           
private static String COMPONENT_ITEM_ATTR
           
static String COMPONENT_TAG
           
private  HashMap parentNodes
           
private  int quantity
           
static String QUANTITY_TAG
           
static String QUANTITY_UNIT_ATTR
           
private static String QUANTITY_UNIT_DEFAULT
           
static String QUANTITY_VALUE_ATTR
           
private  String quantityUnits
           
static String REFERENCE_DESIGNATOR_NAME_ATTR
           
static String REFERENCE_DESIGNATOR_TAG
           
private  Vector referenceDesignatorNames
           
private  Vector usesOccurrenceLinks
           
 
Fields inherited from class com.ptc.epm.commands.XMLutil.ECADXMLAbstractObject
CHECKIN_COMMENT_ATTR, DESCRIPTION_ATTR, NAME_ATTR, NUMBER_ATTR, REVISION_ATTR
 
Constructor Summary
ECADComponent(Element node)
           
 
Method Summary
 void addParentNode(ECADDocument _parent)
           
 void appendRefDesignator(String name)
           
 Vector getAttributes()
           
 int getCapacity()
           
 String getItem()
           
 ECADDocument getParentNode(String number)
           
 Object[] getParents()
           
 int getQuantity()
           
 String getQuantityUnits()
           
 Vector getReferenceDesignatorNames()
           
private  void initQuantity()
           
private  void initRefDesignators()
           
 void removeParentNode(String number)
           
 void setAttributes(Vector attrs)
           
 String toString()
           
 
Methods inherited from class com.ptc.epm.commands.XMLutil.ECADXMLAbstractObject
getCheckInComment, getDescription, getName, getNode, getNumber, getRevision, setAttribute, setCheckInComment, setDescription, setName, setNumber, setRevision
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPONENT_TAG

public static final String COMPONENT_TAG
See Also:
Constant Field Values

COMPONENT_ITEM_ATTR

private static final String COMPONENT_ITEM_ATTR
See Also:
Constant Field Values

QUANTITY_TAG

public static final String QUANTITY_TAG
See Also:
Constant Field Values

QUANTITY_VALUE_ATTR

public static final String QUANTITY_VALUE_ATTR
See Also:
Constant Field Values

QUANTITY_UNIT_ATTR

public static final String QUANTITY_UNIT_ATTR
See Also:
Constant Field Values

REFERENCE_DESIGNATOR_TAG

public static final String REFERENCE_DESIGNATOR_TAG
See Also:
Constant Field Values

REFERENCE_DESIGNATOR_NAME_ATTR

public static final String REFERENCE_DESIGNATOR_NAME_ATTR
See Also:
Constant Field Values

QUANTITY_UNIT_DEFAULT

private static final String QUANTITY_UNIT_DEFAULT
See Also:
Constant Field Values

parentNodes

private HashMap parentNodes

referenceDesignatorNames

private Vector referenceDesignatorNames

usesOccurrenceLinks

private Vector usesOccurrenceLinks

quantity

private int quantity

quantityUnits

private String quantityUnits

attributes

private Vector attributes
Constructor Detail

ECADComponent

public ECADComponent(Element node)
              throws WTException
Method Detail

getParentNode

public ECADDocument getParentNode(String number)

addParentNode

public void addParentNode(ECADDocument _parent)

removeParentNode

public void removeParentNode(String number)

getParents

public Object[] getParents()

getItem

public String getItem()

getReferenceDesignatorNames

public Vector getReferenceDesignatorNames()

appendRefDesignator

public void appendRefDesignator(String name)

getAttributes

public Vector getAttributes()

setAttributes

public void setAttributes(Vector attrs)

getCapacity

public int getCapacity()

getQuantity

public int getQuantity()

getQuantityUnits

public String getQuantityUnits()

initQuantity

private void initQuantity()

initRefDesignators

private void initRefDesignators()

toString

public String toString()