public class ResourceType extends Object implements Cloneable
Constructor and Description |
---|
ResourceType()
Creates a new
ResourceType instance. |
Modifier and Type | Method and Description |
---|---|
ResourceType |
clone()
Creates and returns a copy of this object.
|
int |
getConnectTimeout()
Gets the timeout value, in milliseconds, to be used when opening communications links to the resource.
|
String |
getLocation()
Gets the value of the
location property. |
int |
getReadTimeout()
Gets the timeout value, in milliseconds, to be used when reading the resource.
|
boolean |
isOptional()
Gets a flag indicating the resource is optional.
|
void |
setConnectTimeout(int value)
Sets the timeout value, in milliseconds, to be used when opening communications links to the resource.
|
void |
setLocation(String value)
Sets the value of the
location property. |
void |
setOptional(boolean value)
Sets the flag indicating the resource is optional.
|
void |
setReadTimeout(int value)
Sets the timeout value, in milliseconds, to be used when reading the resource.
|
String |
toString()
Creates and returns a string representation of the object.
|
public ResourceType()
ResourceType
instance.public final String getLocation()
location
property.location
property.setLocation(java.lang.String)
public final void setLocation(String value)
location
property.value
- The value of the location
property.getLocation()
public final boolean isOptional()
true
, if the resource is optional; false
, if the build fails when the resource is not
found.setOptional(boolean)
public final void setOptional(boolean value)
value
- true
, to flag the resource optional; false
, to fail the build when the resource is
not found.isOptional()
public final int getConnectTimeout()
setConnectTimeout(int)
public final void setConnectTimeout(int value)
value
- The new timeout value, in milliseconds, to be used when opening communications links to the
resource.getConnectTimeout()
public final int getReadTimeout()
setReadTimeout(int)
public final void setReadTimeout(int value)
value
- The new timeout value, in milliseconds, to be used when reading the resource.getReadTimeout()
public ResourceType clone()
Copyright © 2005-2013 The JOMC Project. All Rights Reserved.