com.ohrasys.cad.gds.dao
Class Structure

java.lang.Object
  extended by com.ohrasys.cad.gds.dao.Structure
All Implemented Interfaces:
InfoProvider

public class Structure
extends java.lang.Object
implements InfoProvider

A structure data access object


Constructor Summary
Structure()
          Creates a new Structure object.
Structure(java.lang.String name)
          Creates a new Structure object.
Structure(java.lang.String name, java.util.Date accessed, java.util.Date modified, Element[] elements)
          Creates a new Structure object.
Structure(java.lang.String name, java.util.Date accessed, java.util.Date modified, int structureClass, Element[] elements)
          Creates a new Structure object.
Structure(java.lang.String name, Element[] elements)
          Creates a new Structure object.
 
Method Summary
 java.util.Date getAccessed()
          Getter for property accessed.
 Element[] getElements()
          Setter for the elements property
 java.lang.String getInfo()
          Returns a textual representation of the structure
 java.util.Date getModified()
          Getter for property modified.
 java.lang.String getName()
          Getter for property name.
 int getStructureClass()
          Getter for property structureClass.
 void setAccessed(java.util.Date accessed)
          Setter for property accessed.
 void setElements(Element[] elements)
          Setter for the elements property
 void setModified(java.util.Date modified)
          Setter for property modified.
 void setName(java.lang.String name)
          Setter for property name.
 void setStructureClass(int structureClass)
          Setter for property structureClass.
 java.lang.String toString()
          Returns a string representation of the structure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Structure

public Structure()
Creates a new Structure object.


Structure

public Structure(java.lang.String name)
Creates a new Structure object.

Parameters:
name - The name of the structure

Structure

public Structure(java.lang.String name,
                 Element[] elements)
Creates a new Structure object.

Parameters:
name - The name of the structure
elements - The elements that define the structure

Structure

public Structure(java.lang.String name,
                 java.util.Date accessed,
                 java.util.Date modified,
                 Element[] elements)
Creates a new Structure object.

Parameters:
name - The name of the strucuture
accessed - The date the structure was last accessed
modified - The date the structure was last modified
elements - The elements that define the structure

Structure

public Structure(java.lang.String name,
                 java.util.Date accessed,
                 java.util.Date modified,
                 int structureClass,
                 Element[] elements)
Creates a new Structure object.

Parameters:
name - The name of the structure
accessed - The date the structure was last accessed
modified - The data the structure was last modified
structureClass - The object group the structure belongs to
elements - The elements that define the structure
Method Detail

getAccessed

public java.util.Date getAccessed()
Getter for property accessed.

Returns:
Value of property accessed.

getElements

public Element[] getElements()
Setter for the elements property

Returns:
Value of the property elements

getInfo

public java.lang.String getInfo()
Returns a textual representation of the structure

Specified by:
getInfo in interface InfoProvider
Returns:
A textual representation of the structure

getModified

public java.util.Date getModified()
Getter for property modified.

Returns:
Value of property modified.

getName

public java.lang.String getName()
Getter for property name.

Returns:
Value of property name.

getStructureClass

public int getStructureClass()
Getter for property structureClass.

Returns:
Value of property structureClass.

setAccessed

public void setAccessed(java.util.Date accessed)
Setter for property accessed.

Parameters:
accessed - New value of property accessed.

setElements

public void setElements(Element[] elements)
Setter for the elements property

Parameters:
elements - The value of the elements property

setModified

public void setModified(java.util.Date modified)
Setter for property modified.

Parameters:
modified - New value of property modified.

setName

public void setName(java.lang.String name)
Setter for property name.

Parameters:
name - New value of property name.

setStructureClass

public void setStructureClass(int structureClass)
Setter for property structureClass.

Parameters:
structureClass - New value of property structureClass.

toString

public java.lang.String toString()
Returns a string representation of the structure

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the structure