Package net.sf.antcontrib.cpptasks
Class DistributerDef
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.types.DataType
-
- net.sf.antcontrib.cpptasks.DistributerDef
-
- All Implemented Interfaces:
java.lang.Cloneable
public final class DistributerDef extends org.apache.tools.ant.types.DataTypeDistributed build information (Non-functional prototype).
-
-
Constructor Summary
Constructors Constructor Description DistributerDef()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributerMapcreateMap()Local to remote filename maps.voidexecute()Required by documentation generator.java.lang.StringgetHosts()Gets hosts.DistributerProtocolEnumgetProtocol()Gets protocol.intgetTcpcork()Gets tcp cork.booleanisActive()Returns true if the if and unless conditions (if any) are satisfied.voidsetHosts(java.lang.String value)Sets hosts.voidsetId(java.lang.String id)Sets an id that can be used to reference this element.voidsetIf(java.lang.String propName)Sets the property name for the 'if' condition.voidsetProtocol(DistributerProtocolEnum value)Sets protocol.voidsetRefid(org.apache.tools.ant.types.Reference r)Specifies that this element should behave as if the content of the element with the matching id attribute was inserted at this location.voidsetTcpcork(int value)Sets TCP_CORK value.voidsetUnless(java.lang.String propName)Set the property name for the 'unless' condition.voidsetUser(java.lang.String value)Sets remote user name.-
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toString
-
-
-
-
Method Detail
-
execute
public void execute()
Required by documentation generator.
-
isActive
public boolean isActive()
Returns true if the if and unless conditions (if any) are satisfied.- Returns:
- true if definition is active.
-
setId
public void setId(java.lang.String id)
Sets an id that can be used to reference this element.- Parameters:
id- id
-
setIf
public void setIf(java.lang.String propName)
Sets the property name for the 'if' condition. The define will be ignored unless the property is defined. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") will throw an exception when evaluated.- Parameters:
propName- property name
-
setRefid
public void setRefid(org.apache.tools.ant.types.Reference r)
Specifies that this element should behave as if the content of the element with the matching id attribute was inserted at this location. If specified, no other attributes should be specified.- Overrides:
setRefidin classorg.apache.tools.ant.types.DataType- Parameters:
r- reference name
-
setUnless
public void setUnless(java.lang.String propName)
Set the property name for the 'unless' condition. If named property is set, the define will be ignored. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") of the behavior will throw an exception when evaluated.- Parameters:
propName- name of property
-
getHosts
public java.lang.String getHosts()
Gets hosts.- Returns:
- hosts, may be null.
-
getTcpcork
public int getTcpcork()
Gets tcp cork.- Returns:
- TCP_CORK value.
-
getProtocol
public DistributerProtocolEnum getProtocol()
Gets protocol.- Returns:
- protocol, may be null.
-
setHosts
public void setHosts(java.lang.String value)
Sets hosts.- Parameters:
value- new value
-
setTcpcork
public void setTcpcork(int value)
Sets TCP_CORK value.- Parameters:
value- new value
-
setProtocol
public void setProtocol(DistributerProtocolEnum value)
Sets protocol.- Parameters:
value- new value
-
createMap
public DistributerMap createMap()
Local to remote filename maps.- Returns:
- new map
-
setUser
public void setUser(java.lang.String value)
Sets remote user name.- Parameters:
value- user name
-
-