/** * Set the argument to FileNameMapper.setTo * @param to the to attribute to pass to the FileNameMapper */ public void setTo(String to) { if (isReference()) { throw tooManyAttributes(); } this.to = to; }
/** * Set the type of <code>FileNameMapper</code> to use. * @param type the <code>MapperType</code> enumerated attribute. */ public void setType(MapperType type) { if (isReference()) { throw tooManyAttributes(); } this.type = type; }
/** * Set the class name of the FileNameMapper to use. * @param classname the name of the class */ public void setClassname(String classname) { if (isReference()) { throw tooManyAttributes(); } this.classname = classname; }
/** * Set the argument to FileNameMapper.setFrom * @param from the from attribute to pass to the FileNameMapper */ public void setFrom(String from) { if (isReference()) { throw tooManyAttributes(); } this.from = from; }
/** * Set the classpath to load the FileNameMapper through (attribute). * @param classpath the classpath */ public void setClasspath(Path classpath) { if (isReference()) { throw tooManyAttributes(); } if (this.classpath == null) { this.classpath = classpath; } else { this.classpath.append(classpath); } }
/** * Set the classpath to load the FileNameMapper through via * reference (attribute). * @param ref the reference to the FileNameMapper */ public void setClasspathRef(Reference ref) { if (isReference()) { throw tooManyAttributes(); } createClasspath().setRefid(ref); }
/** * Add a nested <code>FileNameMapper</code>. * @param fileNameMapper the <code>FileNameMapper</code> to add. */ public void add(FileNameMapper fileNameMapper) { if (isReference()) { throw noChildrenAllowed(); } if (container == null) { if (type == null && classname == null) { container = new CompositeMapper(); } else { FileNameMapper m = getImplementation(); if (m instanceof ContainerMapper) { container = (ContainerMapper) m; } else { throw new BuildException(String.valueOf(m) + " mapper implementation does not support nested mappers!"); } } } container.add(fileNameMapper); setChecked(false); }
/** * Set the classpath to load the FileNameMapper through (nested element). * @return a path object to be configured */ public Path createClasspath() { if (isReference()) { throw noChildrenAllowed(); } if (this.classpath == null) { this.classpath = new Path(getProject()); } setChecked(false); return this.classpath.createPath(); }
if (isReference()) { dieOnCircularReference(); Reference r = getRefid();