public class Reader extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED_FLAG |
Constructor and Description |
---|
Reader() |
Reader(String name,
boolean enabled,
ReaderSchedule schedule,
List<Parameter> parameters) |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(int index,
Parameter vParameter) |
void |
addParameter(Parameter vParameter) |
Enumeration<Parameter> |
enumerateParameter()
Method enumerateParameter.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
boolean |
getEnabled()
Returns the value of field 'enabled'.
|
Parameter[] |
getParameter()
Method getParameter.Returns the contents of the collection in an Array.
|
Parameter |
getParameter(int index)
Method getParameter.
|
List<Parameter> |
getParameterCollection()
Method getParameterCollection.Returns a reference to '_parameterList'.
|
int |
getParameterCount()
Method getParameterCount.
|
String |
getReaderName()
Returns the value of field 'readerName'.
|
ReaderSchedule |
getReaderSchedule()
Returns the value of field 'readerSchedule'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isEnabled()
Returns the value of field 'enabled'.
|
Iterator<Parameter> |
iterateParameter()
Method iterateParameter.
|
void |
removeAllParameter() |
boolean |
removeParameter(Parameter vParameter)
Method removeParameter.
|
Parameter |
removeParameterAt(int index)
Method removeParameterAt.
|
void |
setEnabled(boolean enabled)
Sets the value of field 'enabled'.
|
void |
setParameter(int index,
Parameter vParameter) |
void |
setParameter(List<Parameter> vParameterList)
Sets the value of '_parameterList' by copying the given Vector.
|
void |
setParameter(Parameter[] vParameterArray) |
void |
setReaderName(String readerName)
Sets the value of field 'readerName'.
|
void |
setReaderSchedule(ReaderSchedule readerSchedule)
Sets the value of field 'readerSchedule'.
|
public static final boolean DEFAULT_ENABLED_FLAG
public Reader()
public Reader(String name, boolean enabled, ReaderSchedule schedule, List<Parameter> parameters)
public void addParameter(Parameter vParameter) throws IndexOutOfBoundsException
vParameter
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addParameter(int index, Parameter vParameter) throws IndexOutOfBoundsException
index
- vParameter
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Enumeration<Parameter> enumerateParameter()
public boolean equals(Object obj)
public boolean getEnabled()
public Parameter getParameter(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Parameter[] getParameter()
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<Parameter> getParameterCollection()
public int getParameterCount()
public String getReaderName()
public ReaderSchedule getReaderSchedule()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isEnabled()
public Iterator<Parameter> iterateParameter()
public void removeAllParameter()
public boolean removeParameter(Parameter vParameter)
vParameter
- public Parameter removeParameterAt(int index)
index
- public void setEnabled(boolean enabled)
enabled
- the value of field 'enabled'.public void setParameter(int index, Parameter vParameter) throws IndexOutOfBoundsException
index
- vParameter
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setParameter(Parameter[] vParameterArray)
vParameterArray
- public void setParameter(List<Parameter> vParameterList)
vParameterList
- the Vector to copy.public void setReaderName(String readerName)
readerName
- the value of field 'readerName'.public void setReaderSchedule(ReaderSchedule readerSchedule)
readerSchedule
- the value of field 'readerSchedule'.Copyright © 2017. All rights reserved.