pt.digitalis.dif.dem.objects
Class ViewObject

java.lang.Object
  extended by pt.digitalis.dif.dem.objects.ViewObject

public class ViewObject
extends Object

This class represents a ViewObject entity on the DEM.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
2007/04/24

Constructor Summary
ViewObject()
          Default constructor.
ViewObject(String engine, ViewType type, String target, boolean isDefault)
          ViewObject constructor.
 
Method Summary
 String getEngine()
          Returns the rendering engine defined for the ViewObject.
 String getId()
          Returns the ViewObject's id.
 String getName()
          Returns the ViewObject's name.
 String getTarget()
          Returns the ViewObject's path.
 ViewType getType()
          Returns the ViewObject's type.
 boolean isDefault()
          Returns information on whether the ViewObject is the default ViewObject
 void setDefault(boolean isDefault)
          Sets the ViewObject as the default ViewObject.
 void setEngine(String newEngine)
          Sets the ViewObject's rendering engine.
 void setId(String newID)
          Sets the ViewObject's ID.
 void setName(String newName)
          Sets the ViewObject's name.
 void setTarget(String newTarget)
          Sets the ViewObject' path.
 void setType(ViewType newType)
          Sets the ViewObject's type.
 String toString()
          Prints the ViewObject object in a human-readable form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewObject

public ViewObject()
Default constructor.


ViewObject

public ViewObject(String engine,
                  ViewType type,
                  String target,
                  boolean isDefault)
ViewObject constructor.

Parameters:
engine - the view engine
type - the view type
target - the view target
isDefault - T if it's the default view, F otherwise
Method Detail

getEngine

public String getEngine()
Returns the rendering engine defined for the ViewObject.

Returns:
the rendering engine defined for the ViewObject

getId

public String getId()
Returns the ViewObject's id.

Returns:
the ViewObject's id

getName

public String getName()
Returns the ViewObject's name.

Returns:
the ViewObject's name

getTarget

public String getTarget()
Returns the ViewObject's path.

Returns:
the ViewObject's path

getType

public ViewType getType()
Returns the ViewObject's type.

Returns:
the ViewObject's type

isDefault

public boolean isDefault()
Returns information on whether the ViewObject is the default ViewObject

Returns:
T if this is the default ViewObject, F otherwise

setDefault

public void setDefault(boolean isDefault)
Sets the ViewObject as the default ViewObject.

Parameters:
isDefault - new ViewObject default state

setEngine

public void setEngine(String newEngine)
Sets the ViewObject's rendering engine.

Parameters:
newEngine - the new rendering engine

setId

public void setId(String newID)
Sets the ViewObject's ID.

Parameters:
newID - the ViewObject's new ID

setName

public void setName(String newName)
Sets the ViewObject's name.

Parameters:
newName - the ViewObject's name

setTarget

public void setTarget(String newTarget)
Sets the ViewObject' path.

Parameters:
newTarget - the ViewObject's new path

setType

public void setType(ViewType newType)
Sets the ViewObject's type.

Parameters:
newType - The ViewObject's new type

toString

public String toString()
Prints the ViewObject object in a human-readable form. Overrides java.lang.Object#toString().

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.