org.opennms.netmgt.config.rrd
Class Font

java.lang.Object
  extended by org.opennms.netmgt.config.rrd.Font
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Default_font, Title_font

public class Font
extends Object
implements Serializable

Class Font.

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

Constructor Summary
Font()
           
 
Method Summary
 void deleteSize()
           
 String getName()
          Returns the value of field 'name'.
 int getSize()
          Returns the value of field 'size'.
 FontStyle getStyle()
          Returns the value of field 'style'.
 boolean hasSize()
          Method hasSize.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setName(String name)
          Sets the value of field 'name'.
 void setSize(int size)
          Sets the value of field 'size'.
 void setStyle(FontStyle style)
          Sets the value of field 'style'.
static Font unmarshal(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

Font

public Font()
Method Detail

deleteSize

public void deleteSize()

getName

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

Returns:
the value of field 'Name'.

getSize

public int getSize()
Returns the value of field 'size'.

Returns:
the value of field 'Size'.

getStyle

public FontStyle getStyle()
Returns the value of field 'style'.

Returns:
the value of field 'Style'.

hasSize

public boolean hasSize()
Method hasSize.

Returns:
true if at least one Size has been added

isValid

public boolean isValid()
Method isValid.

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

marshal

public void marshal(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(ContentHandler handler)
             throws IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
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

setName

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

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

setSize

public void setSize(int size)
Sets the value of field 'size'.

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

setStyle

public void setStyle(FontStyle style)
Sets the value of field 'style'.

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

unmarshal

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

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.config.rrd.Font
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


Copyright © 2009. All Rights Reserved.