gov.nasa.pds.ltdt.label.statement
Interface PrettyStatement

All Known Implementing Classes:
PrettyAttributeStatement, PrettyCommentStatement, PrettyGroupStatement, PrettyObjectStatement

public interface PrettyStatement

Interface for creating statement objects that can be used to provide string representations of Statements in a PDS label.

Author:
mcayanan

Method Summary
 java.lang.String toString()
          Return a string representation of a statement where there is no indentation and the '=' is placed 2 spaces after the identifier.
 java.lang.String toString(short indentLength)
          Return a string representation of a statement where the indentation is specified.
 java.lang.String toString(short indentLength, int equalsPosition)
          Return a string representation of a statement where the indentation and the position of the '=' are defined.
 

Method Detail

toString

java.lang.String toString()
Return a string representation of a statement where there is no indentation and the '=' is placed 2 spaces after the identifier.

Overrides:
toString in class java.lang.Object

toString

java.lang.String toString(short indentLength)
Return a string representation of a statement where the indentation is specified. The '=' is placed 2 spaces after the identifier.

Parameters:
indentLength - The number of spaces to indent the statement.

toString

java.lang.String toString(short indentLength,
                          int equalsPosition)
Return a string representation of a statement where the indentation and the position of the '=' are defined.

Parameters:
indentLength - The number of spaces to indent the statement.
equalsPosition - The position of the '='.


Copyright © 2005-2008 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.