com.ptc.epm.commands.XMLutil
Class XMLAttributeHelper
java.lang.Object
com.ptc.epm.commands.XMLutil.XMLAttributeHelper
- public class XMLAttributeHelper
- extends Object
Helper class for creating/modifying IBAs found in the XML representation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRIMARY_ASSEMBLY
public static final String PRIMARY_ASSEMBLY
- See Also:
- Constant Field Values
XMLAttributeHelper
public XMLAttributeHelper()
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