public class Definition extends Object implements Serializable
Constructor and Description |
---|
Definition() |
Definition(int port,
boolean useSsl,
int timeout,
int retry,
String username,
String password,
List<Range> ranges,
List<String> specifics,
List<String> ipMatches) |
Modifier and Type | Method and Description |
---|---|
void |
addIpMatch(int index,
String vIpMatch) |
void |
addIpMatch(String vIpMatch) |
void |
addRange(int index,
Range vRange) |
void |
addRange(Range vRange) |
void |
addSpecific(int index,
String vSpecific) |
void |
addSpecific(String vSpecific) |
Enumeration<String> |
enumerateIpMatch()
Method enumerateIpMatch.
|
Enumeration<Range> |
enumerateRange()
Method enumerateRange.
|
Enumeration<String> |
enumerateSpecific()
Method enumerateSpecific.
|
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
String[] |
getIpMatch()
Method getIpMatch.Returns the contents of the collection in an Array.
|
String |
getIpMatch(int index)
Method getIpMatch.
|
List<String> |
getIpMatchCollection()
Method getIpMatchCollection.Returns a reference to '_ipMatchList'.
|
Integer |
getIpMatchCount()
Method getIpMatchCount.
|
String |
getPassword()
Returns the value of field 'password'.
|
Integer |
getPort()
Returns the value of field 'port'.
|
Range[] |
getRange()
Method getRange.Returns the contents of the collection in an Array.
|
Range |
getRange(int index)
Method getRange.
|
List<Range> |
getRangeCollection()
Method getRangeCollection.Returns a reference to '_rangeList'.
|
Integer |
getRangeCount()
Method getRangeCount.
|
Integer |
getRetry()
Returns the value of field 'retry'.
|
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'.
|
Integer |
getSpecificCount()
Method getSpecificCount.
|
Integer |
getTimeout()
Returns the value of field 'timeout'.
|
String |
getUsername()
Returns the value of field 'username'.
|
boolean |
getUseSsl()
Returns the value of field 'useSsl'.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
boolean |
hasPort()
Method hasPort.
|
boolean |
hasRetry()
Method hasRetry.
|
boolean |
hasTimeout()
Method hasTimeout.
|
boolean |
hasUseSsl()
Method hasUseSsl.
|
boolean |
isUseSsl()
Returns the value of field 'useSsl'.
|
Iterator<String> |
iterateIpMatch()
Method iterateIpMatch.
|
Iterator<Range> |
iterateRange()
Method iterateRange.
|
Iterator<String> |
iterateSpecific()
Method iterateSpecific.
|
void |
removeAllIpMatch() |
void |
removeAllRange() |
void |
removeAllSpecific() |
boolean |
removeIpMatch(String vIpMatch)
Method removeIpMatch.
|
String |
removeIpMatchAt(int index)
Method removeIpMatchAt.
|
boolean |
removeRange(Range vRange)
Method removeRange.
|
Range |
removeRangeAt(int index)
Method removeRangeAt.
|
boolean |
removeSpecific(String vSpecific)
Method removeSpecific.
|
String |
removeSpecificAt(int index)
Method removeSpecificAt.
|
void |
setIpMatch(int index,
String vIpMatch) |
void |
setIpMatch(List<String> vIpMatchList)
Sets the value of '_ipMatchList' by copying the given Vector.
|
void |
setIpMatch(String[] vIpMatchArray) |
void |
setPassword(String password)
Sets the value of field 'password'.
|
void |
setPort(int port)
Sets the value of field 'port'.
|
void |
setRange(int index,
Range vRange) |
void |
setRange(List<Range> vRangeList)
Sets the value of '_rangeList' by copying the given Vector.
|
void |
setRange(Range[] vRangeArray) |
void |
setRetry(int retry)
Sets the value of field 'retry'.
|
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 |
setTimeout(int timeout)
Sets the value of field 'timeout'.
|
void |
setUsername(String username)
Sets the value of field 'username'.
|
void |
setUseSsl(boolean useSsl)
Sets the value of field 'useSsl'.
|
public void addIpMatch(String vIpMatch) throws IndexOutOfBoundsException
vIpMatch
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addIpMatch(int index, String vIpMatch) throws IndexOutOfBoundsException
index
- vIpMatch
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addRange(Range vRange) throws IndexOutOfBoundsException
vRange
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addRange(int index, Range vRange) throws IndexOutOfBoundsException
index
- vRange
- 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<String> enumerateIpMatch()
public Enumeration<Range> enumerateRange()
public Enumeration<String> enumerateSpecific()
public boolean equals(Object obj)
public String getIpMatch(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic String[] getIpMatch()
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> getIpMatchCollection()
public Integer getIpMatchCount()
public String getPassword()
public Integer getPort()
public Range getRange(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Range[] getRange()
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<Range> getRangeCollection()
public Integer getRangeCount()
public Integer getRetry()
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 Integer getSpecificCount()
public Integer getTimeout()
public boolean getUseSsl()
public String getUsername()
public boolean hasPort()
public boolean hasRetry()
public boolean hasTimeout()
public boolean hasUseSsl()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isUseSsl()
public Iterator<String> iterateIpMatch()
public Iterator<Range> iterateRange()
public Iterator<String> iterateSpecific()
public void removeAllIpMatch()
public void removeAllRange()
public void removeAllSpecific()
public boolean removeIpMatch(String vIpMatch)
vIpMatch
- public String removeIpMatchAt(int index)
index
- public boolean removeRange(Range vRange)
vRange
- public Range removeRangeAt(int index)
index
- public boolean removeSpecific(String vSpecific)
vSpecific
- public String removeSpecificAt(int index)
index
- public void setIpMatch(int index, String vIpMatch) throws IndexOutOfBoundsException
index
- vIpMatch
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setIpMatch(String[] vIpMatchArray)
vIpMatchArray
- public void setIpMatch(List<String> vIpMatchList)
vIpMatchList
- the Vector to copy.public void setPassword(String password)
password
- the value of field 'password'.public void setPort(int port)
port
- the value of field 'port'.public void setRange(int index, Range vRange) throws IndexOutOfBoundsException
index
- vRange
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setRange(Range[] vRangeArray)
vRangeArray
- public void setRange(List<Range> vRangeList)
vRangeList
- the Vector to copy.public void setRetry(int retry)
retry
- the value of field 'retry'.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 setTimeout(int timeout)
timeout
- the value of field 'timeout'.public void setUseSsl(boolean useSsl)
useSsl
- the value of field 'useSsl'.public void setUsername(String username)
username
- the value of field 'username'.Copyright © 2017. All rights reserved.