You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2001/12/30 01:17:46 UTC
cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/types MapperType.java
donaldp 01/12/29 16:17:46
Added: proposal/myrmidon/src/main/org/apache/tools/ant/types
MapperType.java
Log:
Moved MapperType inner class to top level class.
Revision Changes Path
1.1 jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/types/MapperType.java
Index: MapperType.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.types;
import java.util.Properties;
/**
* Class as Argument to FileNameMapper.setType.
*/
public class MapperType
extends EnumeratedAttribute
{
private final Properties m_implementations;
public MapperType()
{
m_implementations = new Properties();
m_implementations.put( "identity",
"org.apache.tools.ant.util.IdentityMapper" );
m_implementations.put( "flatten",
"org.apache.tools.ant.util.FlatFileNameMapper" );
m_implementations.put( "glob",
"org.apache.tools.ant.util.GlobPatternMapper" );
m_implementations.put( "merge",
"org.apache.tools.ant.util.MergingMapper" );
m_implementations.put( "regexp",
"org.apache.tools.ant.util.RegexpPatternMapper" );
}
public String getImplementation()
{
return m_implementations.getProperty( getValue() );
}
public String[] getValues()
{
return new String[]{"identity", "flatten", "glob", "merge", "regexp"};
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>