public class PolicyManage extends Object implements Serializable
Constructor and Description |
---|
PolicyManage() |
Modifier and Type | Method and Description |
---|---|
void |
addSchedule(int index,
Schedule vSchedule) |
void |
addSchedule(Schedule vSchedule) |
void |
deleteDelay() |
void |
deleteRetries() |
void |
deleteUseCategories() |
Enumeration<Schedule> |
enumerateSchedule()
Method enumerateSchedule.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getDefaultType()
Returns the value of field 'defaultType'.
|
long |
getDelay()
Returns the value of field 'delay'.
|
String |
getName()
Returns the value of field 'name'.
|
Package |
getPackage()
Returns the value of field 'package'.
|
int |
getRetries()
Returns the value of field 'retries'.
|
Schedule[] |
getSchedule()
Method getSchedule.Returns the contents of the collection in
an Array.
|
Schedule |
getSchedule(int index)
Method getSchedule.
|
List<Schedule> |
getScheduleCollection()
Method getScheduleCollection.Returns a reference to
'_scheduleList'.
|
int |
getScheduleCount()
Method getScheduleCount.
|
boolean |
getUseCategories()
Returns the value of field 'useCategories'.
|
boolean |
hasDelay()
Method hasDelay.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
hasRetries()
Method hasRetries.
|
boolean |
hasUseCategories()
Method hasUseCategories.
|
boolean |
isUseCategories()
Returns the value of field 'useCategories'.
|
boolean |
isValid()
Method isValid.
|
Iterator<Schedule> |
iterateSchedule()
Method iterateSchedule.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllSchedule() |
boolean |
removeSchedule(Schedule vSchedule)
Method removeSchedule.
|
Schedule |
removeScheduleAt(int index)
Method removeScheduleAt.
|
void |
setDefaultType(String defaultType)
Sets the value of field 'defaultType'.
|
void |
setDelay(long delay)
Sets the value of field 'delay'.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setPackage(Package _package)
Sets the value of field 'package'.
|
void |
setRetries(int retries)
Sets the value of field 'retries'.
|
void |
setSchedule(int index,
Schedule vSchedule) |
void |
setSchedule(List<Schedule> vScheduleList)
Sets the value of '_scheduleList' by copying the given
Vector.
|
void |
setSchedule(Schedule[] vScheduleArray) |
void |
setScheduleCollection(List<Schedule> scheduleList)
Deprecated.
|
void |
setUseCategories(boolean useCategories)
Sets the value of field 'useCategories'.
|
static PolicyManage |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addSchedule(Schedule vSchedule) throws IndexOutOfBoundsException
vSchedule
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSchedule(int index, Schedule vSchedule) throws IndexOutOfBoundsException
index
- vSchedule
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void deleteDelay()
public void deleteRetries()
public void deleteUseCategories()
public Enumeration<Schedule> enumerateSchedule()
public boolean equals(Object obj)
public String getDefaultType()
public long getDelay()
public String getName()
public Package getPackage()
public int getRetries()
public Schedule getSchedule(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Schedule[] getSchedule()
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<Schedule> getScheduleCollection()
public int getScheduleCount()
public boolean getUseCategories()
public boolean hasDelay()
public boolean hasRetries()
public boolean hasUseCategories()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isUseCategories()
public boolean isValid()
public Iterator<Schedule> iterateSchedule()
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 removeAllSchedule()
public boolean removeSchedule(Schedule vSchedule)
vSchedule
- public Schedule removeScheduleAt(int index)
index
- public void setDefaultType(String defaultType)
defaultType
- the value of field 'defaultType'.public void setDelay(long delay)
delay
- the value of field 'delay'.public void setName(String name)
name
- the value of field 'name'.public void setPackage(Package _package)
_package
- package
- the value of field 'package'.public void setRetries(int retries)
retries
- the value of field 'retries'.public void setSchedule(int index, Schedule vSchedule) throws IndexOutOfBoundsException
index
- vSchedule
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setSchedule(Schedule[] vScheduleArray)
vScheduleArray
- public void setSchedule(List<Schedule> vScheduleList)
vScheduleList
- the Vector to copy.public void setScheduleCollection(List<Schedule> scheduleList)
scheduleList
- the Vector to set.public void setUseCategories(boolean useCategories)
useCategories
- the value of field 'useCategories'.public static PolicyManage 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.