uk.ac.essex.ia.opview.xml
Class Cell

java.lang.Object
  extended by uk.ac.essex.ia.opview.xml.Cell
All Implemented Interfaces:
java.io.Serializable

public class Cell
extends java.lang.Object
implements java.io.Serializable

Class Cell.

See Also:
Serialized Form

Constructor Summary
Cell()
           
 
Method Summary
 void deleteHeight()
           
 void deleteTopLeftX()
           
 void deleteTopLeftY()
           
 void deleteWidth()
           
 int getHeight()
          Returns the value of field 'height'.
 java.lang.String getId()
          Returns the value of field 'id'.
 java.lang.String getName()
          Returns the value of field 'name'.
 Parameters getParameters()
          Returns the value of field 'parameters'.
 Ports getPorts()
          Returns the value of field 'ports'.
 int getTopLeftX()
          Returns the value of field 'topLeftX'.
 int getTopLeftY()
          Returns the value of field 'topLeftY'.
 int getWidth()
          Returns the value of field 'width'.
 boolean hasHeight()
          Method hasHeight.
 boolean hasTopLeftX()
          Method hasTopLeftX.
 boolean hasTopLeftY()
          Method hasTopLeftY.
 boolean hasWidth()
          Method hasWidth.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setHeight(int height)
          Sets the value of field 'height'.
 void setId(java.lang.String id)
          Sets the value of field 'id'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setParameters(Parameters parameters)
          Sets the value of field 'parameters'.
 void setPorts(Ports ports)
          Sets the value of field 'ports'.
 void setTopLeftX(int topLeftX)
          Sets the value of field 'topLeftX'.
 void setTopLeftY(int topLeftY)
          Sets the value of field 'topLeftY'.
 void setWidth(int width)
          Sets the value of field 'width'.
static Cell unmarshal(java.io.Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cell

public Cell()
Method Detail

deleteHeight

public void deleteHeight()

deleteTopLeftX

public void deleteTopLeftX()

deleteTopLeftY

public void deleteTopLeftY()

deleteWidth

public void deleteWidth()

getHeight

public int getHeight()
Returns the value of field 'height'.

Returns:
the value of field 'Height'.

getId

public java.lang.String getId()
Returns the value of field 'id'.

Returns:
the value of field 'Id'.

getName

public java.lang.String getName()
Returns the value of field 'name'.

Returns:
the value of field 'Name'.

getParameters

public Parameters getParameters()
Returns the value of field 'parameters'.

Returns:
the value of field 'Parameters'.

getPorts

public Ports getPorts()
Returns the value of field 'ports'.

Returns:
the value of field 'Ports'.

getTopLeftX

public int getTopLeftX()
Returns the value of field 'topLeftX'.

Returns:
the value of field 'TopLeftX'.

getTopLeftY

public int getTopLeftY()
Returns the value of field 'topLeftY'.

Returns:
the value of field 'TopLeftY'.

getWidth

public int getWidth()
Returns the value of field 'width'.

Returns:
the value of field 'Width'.

hasHeight

public boolean hasHeight()
Method hasHeight.

Returns:
true if at least one Height has been added

hasTopLeftX

public boolean hasTopLeftX()
Method hasTopLeftX.

Returns:
true if at least one TopLeftX has been added

hasTopLeftY

public boolean hasTopLeftY()
Method hasTopLeftY.

Returns:
true if at least one TopLeftY has been added

hasWidth

public boolean hasWidth()
Method hasWidth.

Returns:
true if at least one Width has been added

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
java.io.IOException - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

setHeight

public void setHeight(int height)
Sets the value of field 'height'.

Parameters:
height - the value of field 'height'.

setId

public void setId(java.lang.String id)
Sets the value of field 'id'.

Parameters:
id - the value of field 'id'.

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.

Parameters:
name - the value of field 'name'.

setParameters

public void setParameters(Parameters parameters)
Sets the value of field 'parameters'.

Parameters:
parameters - the value of field 'parameters'.

setPorts

public void setPorts(Ports ports)
Sets the value of field 'ports'.

Parameters:
ports - the value of field 'ports'.

setTopLeftX

public void setTopLeftX(int topLeftX)
Sets the value of field 'topLeftX'.

Parameters:
topLeftX - the value of field 'topLeftX'.

setTopLeftY

public void setTopLeftY(int topLeftY)
Sets the value of field 'topLeftY'.

Parameters:
topLeftY - the value of field 'topLeftY'.

setWidth

public void setWidth(int width)
Sets the value of field 'width'.

Parameters:
width - the value of field 'width'.

unmarshal

public static Cell unmarshal(java.io.Reader reader)
                      throws org.exolab.castor.xml.MarshalException,
                             org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled uk.ac.essex.ia.opview.xml.Cell
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema