public class Package extends Object implements Serializable
Constructor and Description |
---|
Package() |
Modifier and Type | Method and Description |
---|---|
void |
addExcludeRange(ExcludeRange vExcludeRange) |
void |
addExcludeRange(int index,
ExcludeRange vExcludeRange) |
void |
addIncludeRange(IncludeRange vIncludeRange) |
void |
addIncludeRange(int index,
IncludeRange vIncludeRange) |
void |
addIncludeUrl(int index,
String vIncludeUrl) |
void |
addIncludeUrl(String vIncludeUrl) |
void |
addOutageCalendar(int index,
String vOutageCalendar) |
void |
addOutageCalendar(String vOutageCalendar) |
void |
addService(int index,
Service vService) |
void |
addService(Service vService) |
void |
addSpecific(int index,
String vSpecific) |
void |
addSpecific(String vSpecific) |
Enumeration<ExcludeRange> |
enumerateExcludeRange()
Method enumerateExcludeRange.
|
Enumeration<IncludeRange> |
enumerateIncludeRange()
Method enumerateIncludeRange.
|
Enumeration<String> |
enumerateIncludeUrl()
Method enumerateIncludeUrl.
|
Enumeration<String> |
enumerateOutageCalendar()
Method enumerateOutageCalendar.
|
Enumeration<Service> |
enumerateService()
Method enumerateService.
|
Enumeration<String> |
enumerateSpecific()
Method enumerateSpecific.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
ExcludeRange[] |
getExcludeRange()
Method getExcludeRange.Returns the contents of the
collection in an Array.
|
ExcludeRange |
getExcludeRange(int index)
Method getExcludeRange.
|
List<ExcludeRange> |
getExcludeRangeCollection()
Method getExcludeRangeCollection.Returns a reference to
'_excludeRangeList'.
|
int |
getExcludeRangeCount()
Method getExcludeRangeCount.
|
Filter |
getFilter()
Returns the value of field 'filter'.
|
IncludeRange[] |
getIncludeRange()
Method getIncludeRange.Returns the contents of the
collection in an Array.
|
IncludeRange |
getIncludeRange(int index)
Method getIncludeRange.
|
List<IncludeRange> |
getIncludeRangeCollection()
Method getIncludeRangeCollection.Returns a reference to
'_includeRangeList'.
|
int |
getIncludeRangeCount()
Method getIncludeRangeCount.
|
String[] |
getIncludeUrl()
Method getIncludeUrl.Returns the contents of the collection
in an Array.
|
String |
getIncludeUrl(int index)
Method getIncludeUrl.
|
List<String> |
getIncludeUrlCollection()
Method getIncludeUrlCollection.Returns a reference to
'_includeUrlList'.
|
int |
getIncludeUrlCount()
Method getIncludeUrlCount.
|
String |
getName()
Returns the value of field 'name'.
|
String[] |
getOutageCalendar()
Method getOutageCalendar.Returns the contents of the
collection in an Array.
|
String |
getOutageCalendar(int index)
Method getOutageCalendar.
|
List<String> |
getOutageCalendarCollection()
Method getOutageCalendarCollection.Returns a reference to
'_outageCalendarList'.
|
int |
getOutageCalendarCount()
Method getOutageCalendarCount.
|
Service[] |
getService()
Method getService.Returns the contents of the collection in
an Array.
|
Service |
getService(int index)
Method getService.
|
List<Service> |
getServiceCollection()
Method getServiceCollection.Returns a reference to
'_serviceList'.
|
int |
getServiceCount()
Method getServiceCount.
|
String[] |
getSpecific()
Method getSpecific.Returns the contents of the collection in
an Array.
|
String |
getSpecific(int index)
Method getSpecific.
|
List<String> |
getSpecificCollection()
Method getSpecificCollection.Returns a reference to
'_specificList'.
|
int |
getSpecificCount()
Method getSpecificCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<ExcludeRange> |
iterateExcludeRange()
Method iterateExcludeRange.
|
Iterator<IncludeRange> |
iterateIncludeRange()
Method iterateIncludeRange.
|
Iterator<String> |
iterateIncludeUrl()
Method iterateIncludeUrl.
|
Iterator<String> |
iterateOutageCalendar()
Method iterateOutageCalendar.
|
Iterator<Service> |
iterateService()
Method iterateService.
|
Iterator<String> |
iterateSpecific()
Method iterateSpecific.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllExcludeRange() |
void |
removeAllIncludeRange() |
void |
removeAllIncludeUrl() |
void |
removeAllOutageCalendar() |
void |
removeAllService() |
void |
removeAllSpecific() |
boolean |
removeExcludeRange(ExcludeRange vExcludeRange)
Method removeExcludeRange.
|
ExcludeRange |
removeExcludeRangeAt(int index)
Method removeExcludeRangeAt.
|
boolean |
removeIncludeRange(IncludeRange vIncludeRange)
Method removeIncludeRange.
|
IncludeRange |
removeIncludeRangeAt(int index)
Method removeIncludeRangeAt.
|
boolean |
removeIncludeUrl(String vIncludeUrl)
Method removeIncludeUrl.
|
String |
removeIncludeUrlAt(int index)
Method removeIncludeUrlAt.
|
boolean |
removeOutageCalendar(String vOutageCalendar)
Method removeOutageCalendar.
|
String |
removeOutageCalendarAt(int index)
Method removeOutageCalendarAt.
|
boolean |
removeService(Service vService)
Method removeService.
|
Service |
removeServiceAt(int index)
Method removeServiceAt.
|
boolean |
removeSpecific(String vSpecific)
Method removeSpecific.
|
String |
removeSpecificAt(int index)
Method removeSpecificAt.
|
void |
setExcludeRange(ExcludeRange[] vExcludeRangeArray) |
void |
setExcludeRange(int index,
ExcludeRange vExcludeRange) |
void |
setExcludeRange(List<ExcludeRange> vExcludeRangeList)
Sets the value of '_excludeRangeList' by copying the given
Vector.
|
void |
setExcludeRangeCollection(List<ExcludeRange> excludeRangeList)
Deprecated.
|
void |
setFilter(Filter filter)
Sets the value of field 'filter'.
|
void |
setIncludeRange(IncludeRange[] vIncludeRangeArray) |
void |
setIncludeRange(int index,
IncludeRange vIncludeRange) |
void |
setIncludeRange(List<IncludeRange> vIncludeRangeList)
Sets the value of '_includeRangeList' by copying the given
Vector.
|
void |
setIncludeRangeCollection(List<IncludeRange> includeRangeList)
Deprecated.
|
void |
setIncludeUrl(int index,
String vIncludeUrl) |
void |
setIncludeUrl(List<String> vIncludeUrlList)
Sets the value of '_includeUrlList' by copying the given
Vector.
|
void |
setIncludeUrl(String[] vIncludeUrlArray) |
void |
setIncludeUrlCollection(List<String> includeUrlList)
Deprecated.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setOutageCalendar(int index,
String vOutageCalendar) |
void |
setOutageCalendar(List<String> vOutageCalendarList)
Sets the value of '_outageCalendarList' by copying the given
Vector.
|
void |
setOutageCalendar(String[] vOutageCalendarArray) |
void |
setOutageCalendarCollection(List<String> outageCalendarList)
Deprecated.
|
void |
setService(int index,
Service vService) |
void |
setService(List<Service> vServiceList)
Sets the value of '_serviceList' by copying the given
Vector.
|
void |
setService(Service[] vServiceArray) |
void |
setServiceCollection(List<Service> serviceList)
Deprecated.
|
void |
setSpecific(int index,
String vSpecific) |
void |
setSpecific(List<String> vSpecificList)
Sets the value of '_specificList' by copying the given
Vector.
|
void |
setSpecific(String[] vSpecificArray) |
void |
setSpecificCollection(List<String> specificList)
Deprecated.
|
static Package |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addExcludeRange(ExcludeRange vExcludeRange) throws IndexOutOfBoundsException
vExcludeRange
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addExcludeRange(int index, ExcludeRange vExcludeRange) throws IndexOutOfBoundsException
index
- vExcludeRange
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addIncludeRange(IncludeRange vIncludeRange) throws IndexOutOfBoundsException
vIncludeRange
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addIncludeRange(int index, IncludeRange vIncludeRange) throws IndexOutOfBoundsException
index
- vIncludeRange
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addIncludeUrl(String vIncludeUrl) throws IndexOutOfBoundsException
vIncludeUrl
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addIncludeUrl(int index, String vIncludeUrl) throws IndexOutOfBoundsException
index
- vIncludeUrl
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addOutageCalendar(String vOutageCalendar) throws IndexOutOfBoundsException
vOutageCalendar
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addOutageCalendar(int index, String vOutageCalendar) throws IndexOutOfBoundsException
index
- vOutageCalendar
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addService(Service vService) throws IndexOutOfBoundsException
vService
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addService(int index, Service vService) throws IndexOutOfBoundsException
index
- vService
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSpecific(String vSpecific) throws IndexOutOfBoundsException
vSpecific
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSpecific(int index, String vSpecific) throws IndexOutOfBoundsException
index
- vSpecific
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<ExcludeRange> enumerateExcludeRange()
public Enumeration<IncludeRange> enumerateIncludeRange()
public Enumeration<String> enumerateIncludeUrl()
public Enumeration<String> enumerateOutageCalendar()
public Enumeration<Service> enumerateService()
public Enumeration<String> enumerateSpecific()
public boolean equals(Object obj)
public ExcludeRange getExcludeRange(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic ExcludeRange[] getExcludeRange()
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<ExcludeRange> getExcludeRangeCollection()
public int getExcludeRangeCount()
public Filter getFilter()
public IncludeRange getIncludeRange(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic IncludeRange[] getIncludeRange()
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<IncludeRange> getIncludeRangeCollection()
public int getIncludeRangeCount()
public String getIncludeUrl(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic String[] getIncludeUrl()
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<String> getIncludeUrlCollection()
public int getIncludeUrlCount()
public String getName()
public String getOutageCalendar(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic String[] getOutageCalendar()
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<String> getOutageCalendarCollection()
public int getOutageCalendarCount()
public Service getService(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Service[] getService()
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<Service> getServiceCollection()
public int getServiceCount()
public String getSpecific(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic String[] getSpecific()
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<String> getSpecificCollection()
public int getSpecificCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<ExcludeRange> iterateExcludeRange()
public Iterator<IncludeRange> iterateIncludeRange()
public Iterator<String> iterateIncludeUrl()
public Iterator<String> iterateOutageCalendar()
public Iterator<Service> iterateService()
public Iterator<String> iterateSpecific()
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 removeAllExcludeRange()
public void removeAllIncludeRange()
public void removeAllIncludeUrl()
public void removeAllOutageCalendar()
public void removeAllService()
public void removeAllSpecific()
public boolean removeExcludeRange(ExcludeRange vExcludeRange)
vExcludeRange
- public ExcludeRange removeExcludeRangeAt(int index)
index
- public boolean removeIncludeRange(IncludeRange vIncludeRange)
vIncludeRange
- public IncludeRange removeIncludeRangeAt(int index)
index
- public boolean removeIncludeUrl(String vIncludeUrl)
vIncludeUrl
- public String removeIncludeUrlAt(int index)
index
- public boolean removeOutageCalendar(String vOutageCalendar)
vOutageCalendar
- public String removeOutageCalendarAt(int index)
index
- public boolean removeService(Service vService)
vService
- public Service removeServiceAt(int index)
index
- public boolean removeSpecific(String vSpecific)
vSpecific
- public String removeSpecificAt(int index)
index
- public void setExcludeRange(int index, ExcludeRange vExcludeRange) throws IndexOutOfBoundsException
index
- vExcludeRange
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setExcludeRange(ExcludeRange[] vExcludeRangeArray)
vExcludeRangeArray
- public void setExcludeRange(List<ExcludeRange> vExcludeRangeList)
vExcludeRangeList
- the Vector to copy.public void setExcludeRangeCollection(List<ExcludeRange> excludeRangeList)
excludeRangeList
- the Vector to set.public void setFilter(Filter filter)
filter
- the value of field 'filter'.public void setIncludeRange(int index, IncludeRange vIncludeRange) throws IndexOutOfBoundsException
index
- vIncludeRange
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setIncludeRange(IncludeRange[] vIncludeRangeArray)
vIncludeRangeArray
- public void setIncludeRange(List<IncludeRange> vIncludeRangeList)
vIncludeRangeList
- the Vector to copy.public void setIncludeRangeCollection(List<IncludeRange> includeRangeList)
includeRangeList
- the Vector to set.public void setIncludeUrl(int index, String vIncludeUrl) throws IndexOutOfBoundsException
index
- vIncludeUrl
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setIncludeUrl(String[] vIncludeUrlArray)
vIncludeUrlArray
- public void setIncludeUrl(List<String> vIncludeUrlList)
vIncludeUrlList
- the Vector to copy.public void setIncludeUrlCollection(List<String> includeUrlList)
includeUrlList
- the Vector to set.public void setName(String name)
name
- the value of field 'name'.public void setOutageCalendar(int index, String vOutageCalendar) throws IndexOutOfBoundsException
index
- vOutageCalendar
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setOutageCalendar(String[] vOutageCalendarArray)
vOutageCalendarArray
- public void setOutageCalendar(List<String> vOutageCalendarList)
vOutageCalendarList
- the Vector to copy.public void setOutageCalendarCollection(List<String> outageCalendarList)
outageCalendarList
- the Vector to set.public void setService(int index, Service vService) throws IndexOutOfBoundsException
index
- vService
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setService(Service[] vServiceArray)
vServiceArray
- public void setService(List<Service> vServiceList)
vServiceList
- the Vector to copy.public void setServiceCollection(List<Service> serviceList)
serviceList
- the Vector to set.public void setSpecific(int index, String vSpecific) throws IndexOutOfBoundsException
index
- vSpecific
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setSpecific(String[] vSpecificArray)
vSpecificArray
- public void setSpecific(List<String> vSpecificList)
vSpecificList
- the Vector to copy.public void setSpecificCollection(List<String> specificList)
specificList
- the Vector to set.public static Package 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.