com.ptc.epm.commands.XMLutil
Class XMLAttributeHelper

java.lang.Object
  extended bycom.ptc.epm.commands.XMLutil.XMLAttributeHelper

public class XMLAttributeHelper
extends Object

Helper class for creating/modifying IBAs found in the XML representation


Field Summary
static String PRIMARY_ASSEMBLY
           
 
Constructor Summary
XMLAttributeHelper()
           
 
Method Summary
static void addAttributes(ECADDocument designDoc, Element node)
           
static void addAttributesToECADDoc(ECADDocument ecadDoc, Vector elementIBAs)
           
private static Object createAttributeValue(AttributeDefDefaultView attrDef, String value)
           
static EPMDocument findPrimaryAssembly(List designDocs)
           
static Vector getElementIBAs(Element current, String number)
           
private static AttributeDefDefaultView getIBADefinition(String name)
           
static void intializeContent(ECADDocument doc)
           
static boolean isPrimaryAssembly(ECADDocument designDoc, Element node)
           
static void updateAttributes(ECADDocument designDoc, Element node)
           
static boolean validatePrimaryAssembly(ECADDocument designDoc, Element node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMARY_ASSEMBLY

public static final String PRIMARY_ASSEMBLY
See Also:
Constant Field Values
Constructor Detail

XMLAttributeHelper

public XMLAttributeHelper()
Method Detail

addAttributes

public static void addAttributes(ECADDocument designDoc,
                                 Element node)
                          throws IllegalArgumentException,
                                 IBAConstraintException,
                                 WTException
Throws:
IllegalArgumentException
IBAConstraintException
WTException

addAttributesToECADDoc

public static void addAttributesToECADDoc(ECADDocument ecadDoc,
                                          Vector elementIBAs)
                                   throws IllegalArgumentException,
                                          IBAConstraintException,
                                          WTException
Throws:
IllegalArgumentException
IBAConstraintException
WTException

updateAttributes

public static void updateAttributes(ECADDocument designDoc,
                                    Element node)
                             throws IllegalArgumentException,
                                    IBAConstraintException,
                                    WTException
Throws:
IllegalArgumentException
IBAConstraintException
WTException

getElementIBAs

public static Vector getElementIBAs(Element current,
                                    String number)

intializeContent

public static void intializeContent(ECADDocument doc)
                             throws WTException
Throws:
WTException

getIBADefinition

private static AttributeDefDefaultView getIBADefinition(String name)

createAttributeValue

private static Object createAttributeValue(AttributeDefDefaultView attrDef,
                                           String value)
                                    throws WTException
Throws:
WTException

findPrimaryAssembly

public static EPMDocument findPrimaryAssembly(List designDocs)
                                       throws IllegalArgumentException,
                                              IBAConstraintException,
                                              WTException
Throws:
IllegalArgumentException
IBAConstraintException
WTException

validatePrimaryAssembly

public static boolean validatePrimaryAssembly(ECADDocument designDoc,
                                              Element node)
                                       throws IllegalArgumentException,
                                              IBAConstraintException,
                                              WTException
Throws:
IllegalArgumentException
IBAConstraintException
WTException

isPrimaryAssembly

public static boolean isPrimaryAssembly(ECADDocument designDoc,
                                        Element node)
                                 throws IllegalArgumentException,
                                        IBAConstraintException,
                                        WTException
Throws:
IllegalArgumentException
IBAConstraintException
WTException