public class Category extends Object implements Serializable
Constructor and Description |
---|
Category() |
Modifier and Type | Method and Description |
---|---|
void |
addNode(int index,
Node vNode) |
void |
addNode(Node vNode) |
void |
deleteCatvalue() |
Enumeration<Node> |
enumerateNode()
Method enumerateNode.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getCatlabel()
Returns the value of field 'catlabel'.
|
double |
getCatvalue()
Returns the value of field 'catvalue'.
|
Node[] |
getNode()
Method getNode.Returns the contents of the collection in an
Array.
|
Node |
getNode(int index)
Method getNode.
|
List<Node> |
getNodeCollection()
Method getNodeCollection.Returns a reference to '_nodeList'.
|
int |
getNodeCount()
Method getNodeCount.
|
boolean |
hasCatvalue()
Method hasCatvalue.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Node> |
iterateNode()
Method iterateNode.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllNode() |
boolean |
removeNode(Node vNode)
Method removeNode.
|
Node |
removeNodeAt(int index)
Method removeNodeAt.
|
void |
setCatlabel(String catlabel)
Sets the value of field 'catlabel'.
|
void |
setCatvalue(double catvalue)
Sets the value of field 'catvalue'.
|
void |
setNode(int index,
Node vNode) |
void |
setNode(List<Node> vNodeList)
Sets the value of '_nodeList' by copying the given Vector.
|
void |
setNode(Node[] vNodeArray) |
void |
setNodeCollection(List<Node> nodeList)
Deprecated.
|
static Category |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addNode(Node vNode) throws IndexOutOfBoundsException
vNode
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addNode(int index, Node vNode) throws IndexOutOfBoundsException
index
- vNode
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void deleteCatvalue()
public Enumeration<Node> enumerateNode()
public boolean equals(Object obj)
public String getCatlabel()
public double getCatvalue()
public Node getNode(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Node[] getNode()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Node> getNodeCollection()
public int getNodeCount()
public boolean hasCatvalue()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Node> iterateNode()
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 removeAllNode()
public boolean removeNode(Node vNode)
vNode
- public Node removeNodeAt(int index)
index
- public void setCatlabel(String catlabel)
catlabel
- the value of field 'catlabel'.public void setCatvalue(double catvalue)
catvalue
- the value of field 'catvalue'.public void setNode(int index, Node vNode) throws IndexOutOfBoundsException
index
- vNode
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setNode(Node[] vNodeArray)
vNodeArray
- public void setNode(List<Node> vNodeList)
vNodeList
- the Vector to copy.public void setNodeCollection(List<Node> nodeList)
nodeList
- the Vector to set.public static Category 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 © 2016. All rights reserved.