org.opennms.web.map.db
Class DbElement

java.lang.Object
  extended by org.opennms.web.map.db.DbElement
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
VElement

public class DbElement
extends Object
implements Cloneable

DbElement class.

Since:
1.8.1
Version:
$Id: $
Author:
Antonio Russo, DJ Gregor TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates, Antonio Russo, DJ Gregor TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
protected  String type
           
 
Constructor Summary
protected DbElement()
          Constructor for DbElement.
  DbElement(DbElement e)
          Constructor for DbElement.
  DbElement(int mapId, int id, String type, String label, String sysoid, String iconName, int x, int y)
          Constructor for DbElement.
 
Method Summary
 DbElement clone()
          clone
 String getIcon()
          Getter for the field icon.
 int getId()
          Getter for the field id.
 String getLabel()
          Getter for the field label.
 int getMapId()
          Getter for the field mapId.
 String getSysoid()
          Getter for the field sysoid.
 String getType()
          Getter for the field type.
 int getX()
          Getter for the field x.
 int getY()
          Getter for the field y.
 boolean isHideMap()
          isHideMap
 boolean isHideNode()
          isHideNode
 boolean isMap()
          isMap
 boolean isNode()
          isNode
 void setIcon(String iconName)
          Setter for the field icon.
 void setId(int id)
          Setter for the field id.
 void setLabel(String label)
          Setter for the field label.
 void setMapId(int mapId)
          Setter for the field mapId.
 void setSysoid(String sysoid)
          Setter for the field sysoid.
 void setType(String type)
          Setter for the field type.
 void setX(int x)
          Setter for the field x.
 void setY(int y)
          Setter for the field y.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected String type
Constructor Detail

DbElement

protected DbElement()

Constructor for DbElement.


DbElement

public DbElement(DbElement e)
          throws MapsException

Constructor for DbElement.

Parameters:
e - a DbElement object.
Throws:
MapsException - if any.

DbElement

public DbElement(int mapId,
                 int id,
                 String type,
                 String label,
                 String sysoid,
                 String iconName,
                 int x,
                 int y)
          throws MapsException

Constructor for DbElement.

Parameters:
mapId - a int.
id - a int.
type - a String object.
label - a String object.
sysoid - a String object.
iconName - a String object.
x - a int.
y - a int.
Throws:
MapsException - if any.
Method Detail

getSysoid

public String getSysoid()

Getter for the field sysoid.

Returns:
a String object.

setSysoid

public void setSysoid(String sysoid)

Setter for the field sysoid.

Parameters:
sysoid - a String object.

getIcon

public String getIcon()

Getter for the field icon.

Returns:
Returns the iconName.

setIcon

public void setIcon(String iconName)

Setter for the field icon.

Parameters:
iconName - The iconName to set.

getLabel

public String getLabel()

Getter for the field label.

Returns:
Returns the label.

setLabel

public void setLabel(String label)

Setter for the field label.

Parameters:
label - The label to set.

getX

public int getX()

Getter for the field x.

Returns:
Returns the x.

setX

public void setX(int x)

Setter for the field x.

Parameters:
x - The x to set.

getY

public int getY()

Getter for the field y.

Returns:
Returns the y.

setY

public void setY(int y)

Setter for the field y.

Parameters:
y - The y to set.

getType

public String getType()

Getter for the field type.

Returns:
Returns the type.

setType

public void setType(String type)
             throws MapsException

Setter for the field type.

Parameters:
type - The type to set.
Throws:
MapsException - if any.

getMapId

public int getMapId()

Getter for the field mapId.

Returns:
a int.

setMapId

public void setMapId(int mapId)

Setter for the field mapId.

Parameters:
mapId - a int.

getId

public int getId()

Getter for the field id.

Returns:
Returns the id.

setId

public void setId(int id)

Setter for the field id.

Parameters:
id - The id to set.

clone

public DbElement clone()

clone

Overrides:
clone in class Object
Returns:
a DbElement object.

isMap

public boolean isMap()

isMap

Returns:
a boolean.

isNode

public boolean isNode()

isNode

Returns:
a boolean.

isHideMap

public boolean isHideMap()

isHideMap

Returns:
a boolean.

isHideNode

public boolean isHideNode()

isHideNode

Returns:
a boolean.


Copyright © 2011. All Rights Reserved.