org.autopipes
Class ConfigurationMgrImp

java.lang.Object
  extended by org.autopipes.ConfigurationMgrImp
All Implemented Interfaces:
ConfigurationMgr, JAXBWrapper

public class ConfigurationMgrImp
extends java.lang.Object
implements ConfigurationMgr

Primary implementation of ConfigurationMgr.


Nested Class Summary
static class ConfigurationMgrImp.LayerImp
          Primary implementation of ConfigurationMgr.Layer.
 
Nested classes/interfaces inherited from interface org.autopipes.ConfigurationMgr
ConfigurationMgr.Layer
 
Constructor Summary
ConfigurationMgrImp()
          Empty default constructor.
 
Method Summary
 double getAngularDelta()
          Gets tolerance for angular measurements selected for the drawing.
 java.lang.String getDrawingName()
          Gets name of the drawing containing this configuration.
 ConfigurationMgr.Layer getLayer(java.lang.String name)
          Gets layer-depended confiuration selected for the drawing.
 double getLinearDelta()
          Gets tolerance for linear measurements selected for the drawing.
static javax.xml.namespace.QName getQName()
           
 java.lang.String getVendor()
          Gets the fitting vendor name used by the drawing.
 boolean isLoaded()
          Checks if contents is present.
 void load(org.xml.sax.InputSource in)
          Hydrates from a source.
 void load(org.w3c.dom.Node in)
          Hydrates from a node.
 void unload()
          Discards current contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationMgrImp

public ConfigurationMgrImp()
Empty default constructor.

Method Detail

getQName

public static javax.xml.namespace.QName getQName()

load

public void load(org.xml.sax.InputSource in)
          throws javax.xml.bind.JAXBException
Hydrates from a source.

Specified by:
load in interface JAXBWrapper
Parameters:
in - the source
Throws:
javax.xml.bind.JAXBException

load

public void load(org.w3c.dom.Node in)
          throws javax.xml.bind.JAXBException
Description copied from interface: JAXBWrapper
Hydrates from a node.

Specified by:
load in interface JAXBWrapper
Parameters:
in - the node
Throws:
javax.xml.bind.JAXBException

unload

public void unload()
Discards current contents.

Specified by:
unload in interface JAXBWrapper

isLoaded

public boolean isLoaded()
Checks if contents is present.

Specified by:
isLoaded in interface JAXBWrapper
Returns:
true if it is

getAngularDelta

public double getAngularDelta()
                       throws java.lang.IllegalAccessException
Gets tolerance for angular measurements selected for the drawing.

Specified by:
getAngularDelta in interface ConfigurationMgr
Returns:
the tolerance
Throws:
java.lang.IllegalAccessException - if no contents

getLinearDelta

public double getLinearDelta()
                      throws java.lang.IllegalAccessException
Gets tolerance for linear measurements selected for the drawing.

Specified by:
getLinearDelta in interface ConfigurationMgr
Returns:
the tolerance
Throws:
java.lang.IllegalAccessException - if no contents

getVendor

public java.lang.String getVendor()
                           throws java.lang.IllegalAccessException
Gets the fitting vendor name used by the drawing.

Specified by:
getVendor in interface ConfigurationMgr
Returns:
the vendor name
Throws:
java.lang.IllegalAccessException - if no contents

getDrawingName

public java.lang.String getDrawingName()
                                throws java.lang.IllegalAccessException
Gets name of the drawing containing this configuration.

Specified by:
getDrawingName in interface ConfigurationMgr
Returns:
the drawing name
Throws:
java.lang.IllegalAccessException - if no contents

getLayer

public ConfigurationMgr.Layer getLayer(java.lang.String name)
                                throws java.lang.IllegalAccessException
Gets layer-depended confiuration selected for the drawing.

Specified by:
getLayer in interface ConfigurationMgr
Parameters:
name - layer name
Returns:
the configuration record
Throws:
java.lang.IllegalAccessException - if no contents