org.opennms.netmgt.config.viewsdisplay
Class Viewinfo

java.lang.Object
  extended by org.opennms.netmgt.config.viewsdisplay.Viewinfo
All Implemented Interfaces:
java.io.Serializable

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

Top-level element for the viewsdisplay.xml configuration file.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Viewinfo()
           
 
Method Summary
 void addView(int index, View vView)
          Method addView
 void addView(View vView)
          Method addView
 void clearView()
          Method clearView
 void deleteDisconnectTimeout()
          Method deleteDisconnectTimeout
 java.util.Enumeration enumerateView()
          Method enumerateView
 java.lang.String getDefaultView()
          Returns the value of field 'defaultView'.
 int getDisconnectTimeout()
          Returns the value of field 'disconnectTimeout'.
 View[] getView()
          Method getView
 View getView(int index)
          Method getView
 java.util.ArrayList getViewCollection()
          Method getViewCollection Returns a reference to 'view'.
 int getViewCount()
          Method getViewCount
 boolean hasDisconnectTimeout()
          Method hasDisconnectTimeout
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeView(View vView)
          Method removeView
 void setDefaultView(java.lang.String defaultView)
          Sets the value of field 'defaultView'.
 void setDisconnectTimeout(int disconnectTimeout)
          Sets the value of field 'disconnectTimeout'.
 void setView(java.util.ArrayList viewCollection)
          Method setView Sets the value of 'view' by copying the given ArrayList.
 void setView(int index, View vView)
          Method setView
 void setView(View[] viewArray)
          Method setView
 void setViewCollection(java.util.ArrayList viewCollection)
          Method setViewCollection Sets the value of 'view' by setting it to the given ArrayList.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Viewinfo

public Viewinfo()
Method Detail

addView

public void addView(View vView)
             throws java.lang.IndexOutOfBoundsException
Method addView

Parameters:
vView -
Throws:
java.lang.IndexOutOfBoundsException

addView

public void addView(int index,
                    View vView)
             throws java.lang.IndexOutOfBoundsException
Method addView

Parameters:
index -
vView -
Throws:
java.lang.IndexOutOfBoundsException

clearView

public void clearView()
Method clearView


deleteDisconnectTimeout

public void deleteDisconnectTimeout()
Method deleteDisconnectTimeout


enumerateView

public java.util.Enumeration enumerateView()
Method enumerateView

Returns:
Enumeration

getDefaultView

public java.lang.String getDefaultView()
Returns the value of field 'defaultView'.

Returns:
String

getDisconnectTimeout

public int getDisconnectTimeout()
Returns the value of field 'disconnectTimeout'.

Returns:
int

getView

public View getView(int index)
             throws java.lang.IndexOutOfBoundsException
Method getView

Parameters:
index -
Returns:
View
Throws:
java.lang.IndexOutOfBoundsException

getView

public View[] getView()
Method getView

Returns:
View

getViewCollection

public java.util.ArrayList getViewCollection()
Method getViewCollection Returns a reference to 'view'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getViewCount

public int getViewCount()
Method getViewCount

Returns:
int

hasDisconnectTimeout

public boolean hasDisconnectTimeout()
Method hasDisconnectTimeout

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeView

public boolean removeView(View vView)
Method removeView

Parameters:
vView -
Returns:
boolean

setDefaultView

public void setDefaultView(java.lang.String defaultView)
Sets the value of field 'defaultView'.

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

setDisconnectTimeout

public void setDisconnectTimeout(int disconnectTimeout)
Sets the value of field 'disconnectTimeout'.

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

setView

public void setView(int index,
                    View vView)
             throws java.lang.IndexOutOfBoundsException
Method setView

Parameters:
index -
vView -
Throws:
java.lang.IndexOutOfBoundsException

setView

public void setView(View[] viewArray)
Method setView

Parameters:
viewArray -

setView

public void setView(java.util.ArrayList viewCollection)
Method setView Sets the value of 'view' by copying the given ArrayList.

Parameters:
viewCollection - the Vector to copy.

setViewCollection

public void setViewCollection(java.util.ArrayList viewCollection)
Method setViewCollection Sets the value of 'view' by setting it to the given ArrayList. No type checking is performed.

Parameters:
viewCollection - the ArrayList to copy.

unmarshal

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

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.