public class Font extends Object implements Serializable
Constructor and Description |
---|
Font() |
Modifier and Type | Method and Description |
---|---|
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() |
public void deleteSize()
public String getName()
public int getSize()
public FontStyle getStyle()
public boolean hasSize()
public boolean isValid()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void setName(String name)
name
- the value of field 'name'.public void setSize(int size)
size
- the value of field 'size'.public void setStyle(FontStyle style)
style
- the value of field 'style'.public static Font unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2017. All rights reserved.