|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wvs.server.util.Structure
Nested Class Summary | |
static class |
Structure.LengthOutputStream
|
Constructor Summary | |
private |
Structure()
|
Method Summary | |
static void |
addPropertyValue(DefaultMutableTreeNode n,
String name,
String value)
add the property name/value on the tree node, allows milti-value properties Supported API: false |
static void |
addPropertyValue(DefaultMutableTreeNode n,
String name,
String value,
String group)
add the property name/value on the tree node, allows milti-value properties, with group Supported API: false |
static void |
addPropertyValue(Hashtable h,
String name,
String value)
add the property name/value on the hashtable, allows milti-value properties Supported API: false |
static void |
addPropertyValue(Hashtable h,
String name,
String value,
String group)
add the property name/value on the hashtable, allows milti-value properties, with group Supported API: false |
static DefaultMutableTreeNode |
copyStructure(DefaultMutableTreeNode n)
preforms a deep copy of the structure. |
static boolean |
doesEDFileHavePropertyName(InputStream is,
String propName)
|
static boolean |
doesEDFileHavePropertyName(InputStream is,
String propName,
String charset)
|
static boolean |
doesEDFileHavePropertyValue(InputStream is,
String propValue)
|
static boolean |
doesEDFileHavePropertyValue(InputStream is,
String propValue,
String charset)
|
static String |
getEDFileCharset(File edFile)
|
static String |
getFirstPropertyValue(DefaultMutableTreeNode n,
String name)
get the fist property value from a posibly multi-valued property Supported API: false |
static String |
getFirstPropertyValue(Hashtable h,
String name)
get the fist property value from a posibly multi-valued property Supported API: false |
static String |
getLocationValue(Hashtable h)
try to get the value of the location property, for the case when there are multiple values, ie. |
static String[] |
getPropertyValues(DefaultMutableTreeNode n,
String name)
get all property values from a posibly multi-valued property Supported API: false |
static String[] |
getPropertyValues(Hashtable h,
String name)
get all property values from a posibly multi-valued property Supported API: false |
static boolean |
isComponentMergable(DefaultMutableTreeNode n)
|
static boolean |
isComponentMergable(Hashtable h)
|
static int |
lengthEDStructure(DefaultMutableTreeNode root)
conputes the lenth of the file that would be created if the node was written to a file Supported API: false |
static boolean |
mergeStructure(DefaultMutableTreeNode n,
DefaultMutableTreeNode subRoot)
merge the specified structure into the other node the merged nodes will be removed from the subRoot node as they can only have a single parent All the children of subRoot will be merged Supported API: false |
static boolean |
mergeStructure(DefaultMutableTreeNode n,
DefaultMutableTreeNode subRoot,
boolean allChildren)
merge the specified structure into the other node the merged nodes will be removed from the subRoot node as they can only have a single parent allChildren specifies if all children of subRoot or only those that do not have a Windchill object id will be merged, allows a representation for an assembly to to be merged, picking only the components that belong to the subRoot component Supported API: false |
static boolean |
mergeStructure(DefaultMutableTreeNode n,
DefaultMutableTreeNode subRoot,
boolean allChildren,
boolean allProperties)
|
static void |
putPropertyValue(DefaultMutableTreeNode n,
String name,
String value)
set the property name/value on the tree node Supported API: false |
static void |
putPropertyValue(DefaultMutableTreeNode n,
String name,
String value,
String group)
set the property name/value on the tree node, specifying a group Supported API: false |
static void |
putPropertyValue(Hashtable h,
String name,
String value)
set the property name/value on the hashtable Supported API: false |
static void |
putPropertyValue(Hashtable h,
String name,
String value,
String group)
set the property name/value on the hashtable, specifying a group Supported API: false |
static DefaultMutableTreeNode |
readEDStructure(File edTemp)
read an ED file from a file Supported API: false |
static DefaultMutableTreeNode |
readEDStructure(File edTemp,
String skipGroupName)
read an ED file from a file, skipping properties in the specified group name Supported API: false |
static DefaultMutableTreeNode |
readEDStructure(File edTemp,
String skipGroupName,
String charset)
read an ED file from a file, skipping properties in the specified group name and specifying a character set to read with. |
static DefaultMutableTreeNode |
readEDStructure(InputStream is)
read an ED file from an InputStream Supported API: false |
static DefaultMutableTreeNode |
readEDStructure(InputStream is,
String skipGroupName)
read an ED file from an InputStream, skipping properties in the specified group name Supported API: false |
static DefaultMutableTreeNode |
readEDStructure(InputStream is,
String skipGroupName,
String charset)
read an ED file from an InputStream, skipping properties in the specified group name and specifying a character set to read with. |
static DefaultMutableTreeNode |
readEDStructure(Reader reader)
read an ED file from a Reader Supported API: false |
static DefaultMutableTreeNode |
readEDStructure(Reader reader,
String skipGroupName)
read an ED file from a Reader, skipping properties in the specified group name Supported API: false |
static void |
removeProperty(DefaultMutableTreeNode n,
String name)
removes the property name from the tree node Supported API: false |
static void |
removeProperty(Hashtable h,
String name)
removes the property name from the hashtable Supported API: false |
private static String |
scaleLocation(String in,
double scaleFactor)
|
private static int |
writeEDIBAData(int id_count,
PrintWriter out,
String my_id,
String[] iba_strings,
Hashtable groupNames)
|
private static int |
writeEDProperty(int id_count,
PrintWriter out,
String my_id,
String pname,
Object pvalue,
Object groupName,
Hashtable groupNames)
|
static void |
writeEDStructure(DefaultMutableTreeNode root,
File edTemp)
write the structure from the specified node to a file Supported API: false |
static void |
writeEDStructure(DefaultMutableTreeNode root,
File edTemp,
String charset)
write the structure from the specified node to a file with specified character set Supported API: false |
static void |
writeEDStructure(DefaultMutableTreeNode root,
OutputStream os)
write the structure from the specified node to an output stream Supported API: false |
static void |
writeEDStructure(DefaultMutableTreeNode root,
OutputStream os,
String charset)
write the structure from the specified node to a file with specified character set Supported API: false |
static void |
writeEDStructure(DefaultMutableTreeNode root,
Writer writer)
write the structure from the specified node to a Writer Supported API: false |
private static int |
writeEDStructureInternal(int id_count,
PrintWriter out,
String parent_id,
Hashtable groupNames,
DefaultMutableTreeNode n)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String WRITE_SKIP_PREFIX
public static final String DISPLAY_ICON_ID
public static final String DISPLAY_INSTANCE_NAME
public static final String COMPONENT_BRANCH_LINK
public static final String PROPERTY_GROUP_LOOKUP
public static final String PROPERTY_COUNT
public static final String IGNORE_ON_MERGE
public static final String REFERENCE_STRUCTURE
public static final String DOCUMENT_REFERENCE
public static final String OUTOFDATE_REPRESENTATION
public static final String POSITIONING_ASSEMBLY
public static final String POSITIONING_ASSEMBLY_BRANCH
public static final String NO_BRANCH_REP
public static final String ADD_IBA_DATA
public static final String EDFILE_COMPONENT_ID
public static final String EDFILE_CHARSET
public static final String FILENAME_IS_ENCODED
public static final String X_COMP_PARENT_ID
public static final String X_COMP_COPY_ID
public static final String DOC_PREFIX
public static final String PART_PREFIX
public static final String PARTLINK_PREFIX
public static final String EPMDOC_PREFIX
public static final String EPMDOCLINK_PREFIX
public static final String OBJECT_ID
public static final String DOC_OBJECT_ID
public static final String PART_OBJECT_ID
public static final String PARTLINK_OBJECT_ID
public static final String EPMDOC_OBJECT_ID
public static final String EPMDOCLINK_OBJECT_ID
public static final String ITERATION
public static final String DOC_ITERATION
public static final String PART_ITERATION
public static final String EPMDOC_ITERATION
public static final String NAME
public static final String NUMBER
public static final String CONTAINER_NAME
public static final String ORGANIZATION_NAME
public static final String VIEW_NAME
public static final String CAD_NAME
public static final String FORMAT_NAME
public static final String DESCRIPTION
public static final String TITLE
public static final String PV_MARKUP_ICON
public static final String PV_BAD_COMP_ICON
public static final String PV_DOC_ICON
public static final String PV_PART_ICON
public static final String PV_EPMDOC_ICON
public static final String PV_PART_MASTER_ICON
public static final String PV_EPMDOC_MASTER_ICON
public static final String PV_PRODUCT_ICON
public static final String PV_PRODUCT_MASTER_ICON
public static final String PV_SNPART_ICON
public static final String PV_SNPART_MASTER_ICON
public static final String LENGTH_UNIT
public static final String UNIT_M
public static final String LOCATION
public static final String DEFAULT_LOCATION
public static final String HTMLDOC
public static final String EPM_HTMLDOC
public static final String PART_HTMLDOC
public static final String PARTMASTER_HTMLDOC
public static final String DOC_HTMLDOC
public static final String OBJECT_HTMLDOC
public static final String PRODUCTINSTANCE_HTMLDOC
public static final String PRODUCTCONFIGURATION_HTMLDOC
public static final String TRUE
public static final String FALSE
public static final String IDSHAPESOURCE
public static final String BBOX
public static final String SHAPESOURCE
public static final String DRAWING
public static final String DOCUMENT
public static final String IMAGE
public static final String FILE
public static final String ECAD
public static final String SIMULATION
public static final String OLEDOC
public static final String TEXTURE_LOOKUP
public static final String XREF_LOOKUP
public static final String PV_SOURCE_FILENAME
public static final String PV_SOURCE_PARTNAME
public static final String PV_SOURCE_FORMNAME
public static final String PV_SOURCE_FILEPATH
public static final String PV_SOURCE_WORKSPACE
private static final String ED_ZERO
private static final String ED_ZERO_ZERO
private static final String ED_ONE
private static final String ED_SPACE
private static final String ED_NULL
private static final String ED_T
private static final String ED_C
private static final String ED_I
private static final String ED_L
private static final String ED_P
private static final String ED_N
private static final String ED_V
private static final String ED_CHARSET
private static final char ED_CHARSET_CHAR
private static String defaultCharset
Constructor Detail |
private Structure()
Method Detail |
public static DefaultMutableTreeNode readEDStructure(File edTemp) throws Exception
Exception
public static DefaultMutableTreeNode readEDStructure(File edTemp, String skipGroupName) throws Exception
Exception
public static DefaultMutableTreeNode readEDStructure(File edTemp, String skipGroupName, String charset) throws Exception
Exception
public static DefaultMutableTreeNode readEDStructure(InputStream is) throws Exception
Exception
public static DefaultMutableTreeNode readEDStructure(InputStream is, String skipGroupName) throws Exception
Exception
public static DefaultMutableTreeNode readEDStructure(InputStream is, String skipGroupName, String charset) throws Exception
Exception
public static DefaultMutableTreeNode readEDStructure(Reader reader) throws Exception
Exception
public static DefaultMutableTreeNode readEDStructure(Reader reader, String skipGroupName) throws Exception
Exception
public static void putPropertyValue(DefaultMutableTreeNode n, String name, String value)
public static void putPropertyValue(Hashtable h, String name, String value)
public static void putPropertyValue(DefaultMutableTreeNode n, String name, String value, String group)
public static void putPropertyValue(Hashtable h, String name, String value, String group)
public static void addPropertyValue(DefaultMutableTreeNode n, String name, String value)
public static void addPropertyValue(Hashtable h, String name, String value)
public static void addPropertyValue(DefaultMutableTreeNode n, String name, String value, String group)
public static void addPropertyValue(Hashtable h, String name, String value, String group)
public static void removeProperty(Hashtable h, String name)
public static void removeProperty(DefaultMutableTreeNode n, String name)
public static String getFirstPropertyValue(DefaultMutableTreeNode n, String name)
public static String getFirstPropertyValue(Hashtable h, String name)
public static String[] getPropertyValues(DefaultMutableTreeNode n, String name)
public static String[] getPropertyValues(Hashtable h, String name)
public static String getLocationValue(Hashtable h)
public static DefaultMutableTreeNode copyStructure(DefaultMutableTreeNode n)
public static boolean mergeStructure(DefaultMutableTreeNode n, DefaultMutableTreeNode subRoot)
public static boolean mergeStructure(DefaultMutableTreeNode n, DefaultMutableTreeNode subRoot, boolean allChildren)
public static boolean mergeStructure(DefaultMutableTreeNode n, DefaultMutableTreeNode subRoot, boolean allChildren, boolean allProperties)
public static boolean isComponentMergable(DefaultMutableTreeNode n)
public static boolean isComponentMergable(Hashtable h)
private static String scaleLocation(String in, double scaleFactor)
public static int lengthEDStructure(DefaultMutableTreeNode root) throws Exception
Exception
public static void writeEDStructure(DefaultMutableTreeNode root, File edTemp) throws Exception
Exception
public static void writeEDStructure(DefaultMutableTreeNode root, File edTemp, String charset) throws Exception
Exception
public static void writeEDStructure(DefaultMutableTreeNode root, OutputStream os) throws Exception
Exception
public static void writeEDStructure(DefaultMutableTreeNode root, OutputStream os, String charset) throws Exception
Exception
public static void writeEDStructure(DefaultMutableTreeNode root, Writer writer) throws Exception
Exception
private static int writeEDStructureInternal(int id_count, PrintWriter out, String parent_id, Hashtable groupNames, DefaultMutableTreeNode n) throws Exception
Exception
private static int writeEDIBAData(int id_count, PrintWriter out, String my_id, String[] iba_strings, Hashtable groupNames)
private static int writeEDProperty(int id_count, PrintWriter out, String my_id, String pname, Object pvalue, Object groupName, Hashtable groupNames)
public static boolean doesEDFileHavePropertyValue(InputStream is, String propValue) throws Exception
Exception
public static boolean doesEDFileHavePropertyValue(InputStream is, String propValue, String charset) throws Exception
Exception
public static boolean doesEDFileHavePropertyName(InputStream is, String propName) throws Exception
Exception
public static boolean doesEDFileHavePropertyName(InputStream is, String propName, String charset) throws Exception
Exception
public static String getEDFileCharset(File edFile) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |