edu.isi.pegasus.planner.parser.dax
Class DAXParser3.Arguments

java.lang.Object
  extended by edu.isi.pegasus.planner.parser.dax.DAXParser3.Arguments
Enclosing class:
DAXParser3

private class DAXParser3.Arguments
extends Object

Private class to handle mix data content for arguments tags.


Field Summary
protected  StringBuffer mBuffer
          Handle to a job arguments to handle mixed content.
 
Constructor Summary
DAXParser3.Arguments()
          The default constructor
 
Method Summary
private  void addArgument(File file)
          Adds a file name to the argument string
 void addArgument(ReplicaLocation rl)
          Adds filename to the arguments
 void addArgument(String text)
          Adds text to the arguments string
 String ignoreWhitespace(String str)
          Our own implementation for ignorable whitespace.
 String ignoreWhitespace(String str, boolean preserveLineBreak)
          Our own implementation for ignorable whitespace.
 void reset()
          Resets the internal buffer
 String toString()
          Returns the arguments as string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mBuffer

protected StringBuffer mBuffer
Handle to a job arguments to handle mixed content.

Constructor Detail

DAXParser3.Arguments

public DAXParser3.Arguments()
The default constructor

Method Detail

reset

public void reset()
Resets the internal buffer


addArgument

public void addArgument(String text)
Adds text to the arguments string

Parameters:
text - the text to be added.

addArgument

public void addArgument(ReplicaLocation rl)
Adds filename to the arguments

Parameters:
rl - the ReplicaLocation object

addArgument

private void addArgument(File file)
Adds a file name to the argument string

Parameters:
file - the file object.

ignoreWhitespace

public String ignoreWhitespace(String str)
Our own implementation for ignorable whitespace. A String that holds the contents of data passed as text by the underlying parser. The whitespaces at the end are replaced by one whitespace.

Parameters:
str - The string that contains whitespaces.
Returns:
String corresponding to the trimmed version.

ignoreWhitespace

public String ignoreWhitespace(String str,
                               boolean preserveLineBreak)
Our own implementation for ignorable whitespace. A String that holds the contents of data passed as text by the underlying parser. The whitespaces at the end are replaced by one whitespace.

Parameters:
str - The string that contains whitespaces.
Returns:
String corresponding to the trimmed version.

toString

public String toString()
Returns the arguments as string

Overrides:
toString in class Object
Returns:
the arguments


Copyright © 2011 The University of Southern California. All Rights Reserved.