public class ProvisiondConfiguration extends Object implements Serializable
Constructor and Description |
---|
ProvisiondConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addRequisitionDef(int index,
RequisitionDef vRequisitionDef) |
void |
addRequisitionDef(RequisitionDef vRequisitionDef) |
void |
deleteImportThreads() |
void |
deleteRescanThreads() |
void |
deleteScanThreads() |
void |
deleteWriteThreads() |
Enumeration<RequisitionDef> |
enumerateRequisitionDef()
Method enumerateRequisitionDef.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getForeignSourceDir()
Returns the value of field 'foreignSourceDir'.
|
long |
getImportThreads()
Returns the value of field 'importThreads'.
|
RequisitionDef[] |
getRequisitionDef()
Method getRequisitionDef.Returns the contents of the
collection in an Array.
|
RequisitionDef |
getRequisitionDef(int index)
Method getRequisitionDef.
|
List<RequisitionDef> |
getRequisitionDefCollection()
Method getRequisitionDefCollection.Returns a reference to
'_requisitionDefList'.
|
int |
getRequisitionDefCount()
Method getRequisitionDefCount.
|
String |
getRequistionDir()
Returns the value of field 'requistionDir'.
|
long |
getRescanThreads()
Returns the value of field 'rescanThreads'.
|
long |
getScanThreads()
Returns the value of field 'scanThreads'.
|
long |
getWriteThreads()
Returns the value of field 'writeThreads'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
hasImportThreads()
Method hasImportThreads.
|
boolean |
hasRescanThreads()
Method hasRescanThreads.
|
boolean |
hasScanThreads()
Method hasScanThreads.
|
boolean |
hasWriteThreads()
Method hasWriteThreads.
|
boolean |
isValid()
Method isValid.
|
Iterator<RequisitionDef> |
iterateRequisitionDef()
Method iterateRequisitionDef.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllRequisitionDef() |
boolean |
removeRequisitionDef(RequisitionDef vRequisitionDef)
Method removeRequisitionDef.
|
RequisitionDef |
removeRequisitionDefAt(int index)
Method removeRequisitionDefAt.
|
void |
setForeignSourceDir(String foreignSourceDir)
Sets the value of field 'foreignSourceDir'.
|
void |
setImportThreads(long importThreads)
Sets the value of field 'importThreads'.
|
void |
setRequisitionDef(int index,
RequisitionDef vRequisitionDef) |
void |
setRequisitionDef(List<RequisitionDef> vRequisitionDefList)
Sets the value of '_requisitionDefList' by copying the given
Vector.
|
void |
setRequisitionDef(RequisitionDef[] vRequisitionDefArray) |
void |
setRequisitionDefCollection(List<RequisitionDef> requisitionDefList)
Deprecated.
|
void |
setRequistionDir(String requistionDir)
Sets the value of field 'requistionDir'.
|
void |
setRescanThreads(long rescanThreads)
Sets the value of field 'rescanThreads'.
|
void |
setScanThreads(long scanThreads)
Sets the value of field 'scanThreads'.
|
void |
setWriteThreads(long writeThreads)
Sets the value of field 'writeThreads'.
|
static ProvisiondConfiguration |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addRequisitionDef(RequisitionDef vRequisitionDef) throws IndexOutOfBoundsException
vRequisitionDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addRequisitionDef(int index, RequisitionDef vRequisitionDef) throws IndexOutOfBoundsException
index
- vRequisitionDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void deleteImportThreads()
public void deleteRescanThreads()
public void deleteScanThreads()
public void deleteWriteThreads()
public Enumeration<RequisitionDef> enumerateRequisitionDef()
public boolean equals(Object obj)
public String getForeignSourceDir()
public long getImportThreads()
public RequisitionDef getRequisitionDef(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic RequisitionDef[] getRequisitionDef()
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<RequisitionDef> getRequisitionDefCollection()
public int getRequisitionDefCount()
public String getRequistionDir()
public long getRescanThreads()
public long getScanThreads()
public long getWriteThreads()
public boolean hasImportThreads()
public boolean hasRescanThreads()
public boolean hasScanThreads()
public boolean hasWriteThreads()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<RequisitionDef> iterateRequisitionDef()
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 removeAllRequisitionDef()
public boolean removeRequisitionDef(RequisitionDef vRequisitionDef)
vRequisitionDef
- public RequisitionDef removeRequisitionDefAt(int index)
index
- public void setForeignSourceDir(String foreignSourceDir)
foreignSourceDir
- the value of field 'foreignSourceDir'public void setImportThreads(long importThreads)
importThreads
- the value of field 'importThreads'.public void setRequisitionDef(int index, RequisitionDef vRequisitionDef) throws IndexOutOfBoundsException
index
- vRequisitionDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setRequisitionDef(RequisitionDef[] vRequisitionDefArray)
vRequisitionDefArray
- public void setRequisitionDef(List<RequisitionDef> vRequisitionDefList)
vRequisitionDefList
- the Vector to copy.public void setRequisitionDefCollection(List<RequisitionDef> requisitionDefList)
requisitionDefList
- the Vector to set.public void setRequistionDir(String requistionDir)
requistionDir
- the value of field 'requistionDir'.public void setRescanThreads(long rescanThreads)
rescanThreads
- the value of field 'rescanThreads'.public void setScanThreads(long scanThreads)
scanThreads
- the value of field 'scanThreads'.public void setWriteThreads(long writeThreads)
writeThreads
- the value of field 'writeThreads'.public static ProvisiondConfiguration 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.