org.apache.tools.ant.types

Class PropertySet


public class PropertySet
extends DataType

A set of properties.

Since:
Ant 1.6

Nested Class Summary

static class
PropertySet.BuiltinPropertySetName
Used for propertyref's builtin attribute.
static class
PropertySet.PropertyRef

Field Summary

Fields inherited from class org.apache.tools.ant.types.DataType

checked, description, ref

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

void
addPropertyref(PropertySet.PropertyRef ref)
void
addPropertyset(PropertySet ref)
void
appendBuiltin(PropertySet.BuiltinPropertySetName b)
void
appendName(String name)
void
appendPrefix(String prefix)
void
appendRegex(String regex)
protected void
assertNotReference()
Ensures this data type is not a reference.
Mapper
createMapper()
boolean
getDynamic()
Mapper
getMapper()
Properties
getProperties()
protected PropertySet
getRef()
Performs the check for circular references and returns the referenced FileList.
void
setDynamic(boolean dynamic)
void
setMapper(String type, String from, String to)
void
setNegate(boolean negate)
void
setRefid(Reference r)
Sets the value of the refid attribute.

Methods inherited from class org.apache.tools.ant.types.DataType

checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Method Details

addPropertyref

public void addPropertyref(PropertySet.PropertyRef ref)


addPropertyset

public void addPropertyset(PropertySet ref)


appendBuiltin

public void appendBuiltin(PropertySet.BuiltinPropertySetName b)


appendName

public void appendName(String name)


appendPrefix

public void appendPrefix(String prefix)


appendRegex

public void appendRegex(String regex)


assertNotReference

protected final void assertNotReference()
Ensures this data type is not a reference.

Calling this method as the first line of every bean method of this data type (setXyz, addXyz, createXyz) ensure proper handling of the refid attribute.


createMapper

public Mapper createMapper()


getDynamic

public boolean getDynamic()


getMapper

public Mapper getMapper()


getProperties

public Properties getProperties()


getRef

protected PropertySet getRef()
Performs the check for circular references and returns the referenced FileList.


setDynamic

public void setDynamic(boolean dynamic)


setMapper

public void setMapper(String type,
                      String from,
                      String to)


setNegate

public void setNegate(boolean negate)


setRefid

public final void setRefid(Reference r)
Sets the value of the refid attribute.
Overrides:
setRefid in interface DataType

Parameters:
r - the reference this datatype should point to.


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.