public class Outages extends Object implements Serializable
Constructor and Description |
---|
Outages() |
Modifier and Type | Method and Description |
---|---|
void |
addOutage(int index,
Outage vOutage)
Adds a new Scheduled Outage
|
void |
addOutage(Outage vOutage)
Adds a new Scheduled Outage
|
Enumeration<Outage> |
enumerateOutage()
Method enumerateOutage.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Outage[] |
getOutage()
Method getOutage.Returns the contents of the collection in
an Array.
|
Outage |
getOutage(int index)
Method getOutage.
|
Outage |
getOutage(String name) |
List<Outage> |
getOutageCollection()
Method getOutageCollection.Returns a reference to
'_outageList'.
|
int |
getOutageCount()
Method getOutageCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Deprecated.
|
Iterator<Outage> |
iterateOutage()
Method iterateOutage.
|
void |
marshal(ContentHandler handler)
Deprecated.
|
void |
marshal(Writer out)
Deprecated.
|
void |
removeAllOutage() |
boolean |
removeOutage(Outage vOutage)
Method removeOutage.
|
void |
removeOutage(String outageName) |
Outage |
removeOutageAt(int index)
Method removeOutageAt.
|
void |
setOutage(int index,
Outage vOutage) |
void |
setOutage(List<Outage> vOutageList)
Sets the value of '_outageList' by copying the given Vector.
|
void |
setOutage(Outage[] vOutageArray) |
void |
setOutageCollection(List<Outage> outageList)
Deprecated.
|
static Outages |
unmarshal(Reader reader)
Deprecated.
|
void |
validate()
Deprecated.
|
public void addOutage(Outage vOutage) throws IndexOutOfBoundsException
vOutage
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addOutage(int index, Outage vOutage) throws IndexOutOfBoundsException
index
- vOutage
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Outage> enumerateOutage()
public boolean equals(Object obj)
public Outage getOutage(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Outage[] getOutage()
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<Outage> getOutageCollection()
public int getOutageCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
@Deprecated public boolean isValid()
public Iterator<Outage> iterateOutage()
@Deprecated 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 schema@Deprecated public 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 removeAllOutage()
public boolean removeOutage(Outage vOutage)
vOutage
- public Outage removeOutageAt(int index)
index
- public void setOutage(int index, Outage vOutage) throws IndexOutOfBoundsException
index
- vOutage
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setOutage(Outage[] vOutageArray)
vOutageArray
- public void setOutage(List<Outage> vOutageList)
vOutageList
- the Vector to copy.public void setOutageCollection(List<Outage> outageList)
outageList
- the Vector to set.@Deprecated public static Outages 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 schema@Deprecated public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void removeOutage(String outageName)
Copyright © 2016. All rights reserved.