public class NodeOutage extends Object implements Serializable
Constructor and Description |
---|
NodeOutage() |
Modifier and Type | Method and Description |
---|---|
void |
addCriticalService(CriticalService vCriticalService) |
void |
addCriticalService(int index,
CriticalService vCriticalService) |
Enumeration<CriticalService> |
enumerateCriticalService()
Method enumerateCriticalService.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
CriticalService[] |
getCriticalService()
Method getCriticalService.Returns the contents of the
collection in an Array.
|
CriticalService |
getCriticalService(int index)
Method getCriticalService.
|
List<CriticalService> |
getCriticalServiceCollection()
Method getCriticalServiceCollection.Returns a reference to
'_criticalServiceList'.
|
int |
getCriticalServiceCount()
Method getCriticalServiceCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<CriticalService> |
iterateCriticalService()
Method iterateCriticalService.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllCriticalService() |
boolean |
removeCriticalService(CriticalService vCriticalService)
Method removeCriticalService.
|
CriticalService |
removeCriticalServiceAt(int index)
Method removeCriticalServiceAt.
|
void |
setCriticalService(CriticalService[] vCriticalServiceArray) |
void |
setCriticalService(int index,
CriticalService vCriticalService) |
void |
setCriticalService(List<CriticalService> vCriticalServiceList)
Sets the value of '_criticalServiceList' by copying the
given Vector.
|
void |
setCriticalServiceCollection(List<CriticalService> criticalServiceList)
Deprecated.
|
static NodeOutage |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addCriticalService(CriticalService vCriticalService) throws IndexOutOfBoundsException
vCriticalService
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addCriticalService(int index, CriticalService vCriticalService) throws IndexOutOfBoundsException
index
- vCriticalService
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<CriticalService> enumerateCriticalService()
public boolean equals(Object obj)
public CriticalService getCriticalService(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic CriticalService[] getCriticalService()
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<CriticalService> getCriticalServiceCollection()
public int getCriticalServiceCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<CriticalService> iterateCriticalService()
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 removeAllCriticalService()
public boolean removeCriticalService(CriticalService vCriticalService)
vCriticalService
- public CriticalService removeCriticalServiceAt(int index)
index
- public void setCriticalService(int index, CriticalService vCriticalService) throws IndexOutOfBoundsException
index
- vCriticalService
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setCriticalService(CriticalService[] vCriticalServiceArray)
vCriticalServiceArray
- public void setCriticalService(List<CriticalService> vCriticalServiceList)
vCriticalServiceList
- the Vector to copy.public void setCriticalServiceCollection(List<CriticalService> criticalServiceList)
criticalServiceList
- the Vector to set.public static NodeOutage 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.