com.ptc.wvs.server.thumbnail.j3d
Class EDFileReader

java.lang.Object
  extended bycom.ptc.wvs.server.thumbnail.j3d.EDFileReader

public class EDFileReader
extends Object


Field Summary
(package private)  int componentCount
           
(package private)  String dir
           
(package private)  String edFile
           
(package private)  Group root
           
(package private)  int totalLoadCount
           
 
Constructor Summary
EDFileReader(String dir, String edFile)
           
 
Method Summary
(package private)  int getComponentCount()
           
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(Hashtable h, String name)
          get all property values from a posibly multi-valued property

Supported API: false COPIED FROM Structure.java
(package private)  Group getScene()
           
(package private)  int getTotalLoadCount()
           
 void load(boolean debugFlag, PrintWriter extFile, Group n, boolean doChildren)
           
 int loadAll(boolean debugFlag, PrintWriter extFile)
           
private  boolean read(BufferedReader br)
           
 boolean readFile()
           
private  void setTransforms(TransformGroup n, String parentUnit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

Group root

dir

String dir

edFile

String edFile

totalLoadCount

int totalLoadCount

componentCount

int componentCount
Constructor Detail

EDFileReader

public EDFileReader(String dir,
                    String edFile)
Method Detail

getScene

Group getScene()

getTotalLoadCount

int getTotalLoadCount()

getComponentCount

int getComponentCount()

readFile

public boolean readFile()

read

private boolean read(BufferedReader br)
              throws Exception
Throws:
Exception

setTransforms

private void setTransforms(TransformGroup n,
                           String parentUnit)

loadAll

public int loadAll(boolean debugFlag,
                   PrintWriter extFile)

load

public void load(boolean debugFlag,
                 PrintWriter extFile,
                 Group n,
                 boolean doChildren)

getFirstPropertyValue

public static String getFirstPropertyValue(Hashtable h,
                                           String name)
get the fist property value from a posibly multi-valued property

Supported API: false

Returns:
property value COPIED FROM Structure.java

getPropertyValues

public static String[] getPropertyValues(Hashtable h,
                                         String name)
get all property values from a posibly multi-valued property

Supported API: false COPIED FROM Structure.java


getLocationValue

public static String getLocationValue(Hashtable h)
try to get the value of the location property, for the case when there are multiple values, ie. a customer attribute called location is messing things up. COPIED FROM Structure.java, with modification to remove constant for "location"

Returns:
location value