API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.ant.taskdefs.optional.i18n. Translate View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      ProjectComponent
          Task
              MatchingTask
                  Translate
Implements
Subclasses
Description
public class Translate
  Translates text embedded in files using Resource Bundle files.
See also:   
Constructors
public Translate ()
Methods
Hide/Show inherited methods
public void add (FileSelector selector) [Inherited From MatchingTask]
  add an arbitary selector
public void addAnd (AndSelector selector) [Inherited From MatchingTask]
  add an "And" selector entry on the selector list
public void addContains (ContainsSelector selector) [Inherited From MatchingTask]
  add a contains selector entry on the selector list
public void addContainsRegexp (ContainsRegexpSelector selector) [Inherited From MatchingTask]
  add a regular expression selector entry on the selector list
public void addCustom (ExtendSelector selector) [Inherited From MatchingTask]
  add an extended selector entry on the selector list
public void addDate (DateSelector selector) [Inherited From MatchingTask]
  add a selector date entry on the selector list
public void addDepend (DependSelector selector) [Inherited From MatchingTask]
  add a depends selector entry on the selector list
public void addDepth (DepthSelector selector) [Inherited From MatchingTask]
  add a depth selector entry on the selector list
public void addDifferent (DifferentSelector selector) [Inherited From MatchingTask]
  add a type selector entry on the type list
public void addFilename (FilenameSelector selector) [Inherited From MatchingTask]
  add a selector filename entry on the selector list
public void addFileset (FileSet set)
  Adds a set of files to translate as a nested fileset element.
public void addMajority (MajoritySelector selector) [Inherited From MatchingTask]
  add a majority selector entry on the selector list
public void addModified (ModifiedSelector selector) [Inherited From MatchingTask]
  add the modified selector
public void addNone (NoneSelector selector) [Inherited From MatchingTask]
  add a "None" selector entry on the selector list
public void addNot (NotSelector selector) [Inherited From MatchingTask]
  add a "Not" selector entry on the selector list
public void addOr (OrSelector selector) [Inherited From MatchingTask]
  add an "Or" selector entry on the selector list
public void addPresent (PresentSelector selector) [Inherited From MatchingTask]
  add a present selector entry on the selector list
public void addSelector (SelectSelector selector) [Inherited From MatchingTask]
  add a "Select" selector entry on the selector list
public void addSize (SizeSelector selector) [Inherited From MatchingTask]
  add a selector size entry on the selector list
public void addType (TypeSelector selector) [Inherited From MatchingTask]
  add a type selector entry on the type list
public void appendSelector (FileSelector selector) [Inherited From MatchingTask]
  Add a new selector into this container.
publicfinal void bindToOwner (Task owner) [Inherited From Task]
  Bind a task to another; use this when configuring a newly created task to do work on behalf of another.
public java.lang.Object clone () throws java.lang.CloneNotSupportedException [Inherited From ProjectComponent]
 
public NameEntry createExclude () [Inherited From MatchingTask]
  add a name entry on the exclude list
public NameEntry createExcludesFile () [Inherited From MatchingTask]
  add a name entry on the include files list
public NameEntry createInclude () [Inherited From MatchingTask]
  add a name entry on the include list
public NameEntry createIncludesFile () [Inherited From MatchingTask]
  add a name entry on the include files list
public PatternSet createPatternSet () [Inherited From MatchingTask]
  add a set of patterns
public void execute () throws BuildException [Overrides Task]
  Check attributes values, load resource map and translate
public java.lang.String getDescription () [Inherited From ProjectComponent]
  Returns the description of the current action.
protected DirectoryScanner getDirectoryScanner (java.io.File baseDir) [Inherited From MatchingTask]
  Returns the directory scanner needed to access the files to process.
protectedfinal FileSet getImplicitFileSet () [Inherited From MatchingTask]
  Accessor for the implicit fileset.
public Location getLocation () [Inherited From ProjectComponent]
  Returns the file/location where this task was defined.
public Target getOwningTarget () [Inherited From Task]
  Returns the container target of this task.
public Project getProject () [Inherited From ProjectComponent]
  Returns the project to which this component belongs.
public RuntimeConfigurable getRuntimeConfigurableWrapper () [Inherited From Task]
  Returns the wrapper used for runtime configuration.
public FileSelector getSelectors (Project p) [Inherited From MatchingTask]
  Returns the set of selectors as an array.
public java.lang.String getTaskName () [Inherited From Task]
  Returns the name to use in logging messages.
public java.lang.String getTaskType () [Inherited From Task]
  Return the type of task.
protected RuntimeConfigurable getWrapper () [Inherited From Task]
  Return the runtime configurable structure for this task.
protected void handleErrorFlush (java.lang.String output) [Inherited From Task]
  Handles an error line by logging it with the WARN priority.
protected void handleErrorOutput (java.lang.String output) [Inherited From Task]
  Handles an error output by logging it with the WARN priority.
protected void handleFlush (java.lang.String output) [Inherited From Task]
  Handles output by logging it with the INFO priority.
protected int handleInput (byte[] buffer, int offset, int length) throws java.io.IOException [Inherited From Task]
  Handle an input request by this task.
protected void handleOutput (java.lang.String output) [Inherited From Task]
  Handles output by logging it with the INFO priority.
public boolean hasSelectors () [Inherited From MatchingTask]
  Indicates whether there are any selectors here.
public void init () throws BuildException [Inherited From Task]
  Called by the project to let the task initialize properly.
protectedfinal boolean isInvalid () [Inherited From Task]
  Has this task been marked invalid?
public void log (java.lang.String msg) [Inherited From Task]
  Logs a message with the default (INFO) priority.
public void log (java.lang.String msg, int msgLevel) [Inherited From Task]
  Logs a message with the given priority.
public void log (java.lang.String msg, java.lang.Throwable t, int msgLevel) [Inherited From Task]
  Logs a message with the given priority.
public void log (java.lang.Throwable t, int msgLevel) [Inherited From Task]
  Logs a message with the given priority.
public void maybeConfigure () throws BuildException [Inherited From Task]
  Configures this task - if it hasn't been done already.
publicfinal void perform () [Inherited From Task]
  Performs this task if it's still valid, or gets a replacement version and performs that otherwise.
public void reconfigure () [Inherited From Task]
Force the task to be reconfigured from its RuntimeConfigurable.
public int selectorCount () [Inherited From MatchingTask]
  Gives the count of the number of selectors in this container
public java.util.Enumeration selectorElements () [Inherited From MatchingTask]
  Returns an enumerator for accessing the set of selectors.
public void setBundle (java.lang.String bundle)
  Sets Family name of resource bundle; required.
public void setBundleCountry (java.lang.String bundleCountry)
  Sets locale specific country of resource bundle; optional.
public void setBundleEncoding (java.lang.String bundleEncoding)
  Sets Resource Bundle file encoding scheme; optional.
public void setBundleLanguage (java.lang.String bundleLanguage)
  Sets locale specific language of resource bundle; optional.
public void setBundleVariant (java.lang.String bundleVariant)
  Sets locale specific variant of resource bundle; optional.
public void setCaseSensitive (boolean isCaseSensitive) [Inherited From MatchingTask]
  Sets case sensitivity of the file system
public void setDefaultexcludes (boolean useDefaultExcludes) [Inherited From MatchingTask]
  Sets whether default exclusions should be used or not.
public void setDescription (java.lang.String desc) [Inherited From ProjectComponent]
  Sets a description of the current action.
public void setDestEncoding (java.lang.String destEncoding)
  Sets destination file encoding scheme; optional.
public void setEndToken (java.lang.String endToken)
  Sets ending token to identify keys; required.
public void setExcludes (java.lang.String excludes) [Inherited From MatchingTask]
  Sets the set of exclude patterns.
public void setExcludesfile (java.io.File excludesfile) [Inherited From MatchingTask]
  Sets the name of the file containing the includes patterns.
public void setFollowSymlinks (boolean followSymlinks) [Inherited From MatchingTask]
  Sets whether or not symbolic links should be followed.
public void setForceOverwrite (boolean forceOverwrite)
  Whether or not to overwrite existing file irrespective of whether it is newer than the source file as well as the resource bundle file.
public void setIncludes (java.lang.String includes) [Inherited From MatchingTask]
  Sets the set of include patterns.
public void setIncludesfile (java.io.File includesfile) [Inherited From MatchingTask]
  Sets the name of the file containing the includes patterns.
public void setLocation (Location location) [Inherited From ProjectComponent]
  Sets the file/location where this task was defined.
public void setOwningTarget (Target target) [Inherited From Task]
  Sets the target container of this task.
public void setProject (Project project) [Inherited From MatchingTask]
  Sets the project object of this component..
public void setRuntimeConfigurableWrapper (RuntimeConfigurable wrapper) [Inherited From Task]
  Sets the wrapper to be used for runtime configuration.
public void setSrcEncoding (java.lang.String srcEncoding)
  Sets source file encoding scheme; optional, defaults to encoding of local system.
public void setStartToken (java.lang.String startToken)
  Sets starting token to identify keys; required.
public void setTaskName (java.lang.String name) [Inherited From Task]
  Sets the name to use in logging messages.
public void setTaskType (java.lang.String type) [Inherited From Task]
  Sets the name with which the task has been invoked.
public void setToDir (java.io.File toDir)
  Sets Destination directory; required.
public void XsetIgnore (java.lang.String ignoreString) [Inherited From MatchingTask]
  List of filenames and directory names to not include.
public void XsetItems (java.lang.String itemString) [Inherited From MatchingTask]
  Set this to be the items in the base directory that you want to be included.
Fields
Hide/Show inherited fields
protected java.lang.String description [Inherited From ProjectComponent]
Description of this component, if any.
protected FileSet fileset [Inherited From MatchingTask]
protected Location location [Inherited From ProjectComponent]
Location within the build file of this task definition.
protected Project project [Inherited From ProjectComponent]
Project object of this component.
protected Target target [Inherited From Task]
Target this task belongs to, if any.
protected java.lang.String taskName [Inherited From Task]
  Name of this task to be used for logging purposes.
protected java.lang.String taskType [Inherited From Task]
Type of this task.
protected RuntimeConfigurable wrapper [Inherited From Task]
Wrapper for this object, used to configure it at runtime.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar