com.bbn.swede.editor.formatting
Class AttributeFormattingStrategy

java.lang.Object
  extended bycom.bbn.swede.editor.formatting.AttributeFormattingStrategy

public class AttributeFormattingStrategy
extends Object

A slave strategy for formatting begin tags in OWL documents. This strategy is responsible for splitting attributes across multiple lines, aligning attribute values, and substituting attribute delimeters.

Author:
jlerner

Constructor Summary
AttributeFormattingStrategy(IOWLAbstractSyntaxTree oast)
          Creates an attribute formatting strategy.
 
Method Summary
 void format()
           
 String format(String content, boolean isLineStart, String indentation, int[] positions)
           
 void formatterStarts(String initialIndentation)
           
 void formatterStops()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeFormattingStrategy

public AttributeFormattingStrategy(IOWLAbstractSyntaxTree oast)
Creates an attribute formatting strategy.

Parameters:
oast - The abstract syntaxt tree for the OWL document this formatter will run against.
Method Detail

formatterStarts

public void formatterStarts(String initialIndentation)

format

public String format(String content,
                     boolean isLineStart,
                     String indentation,
                     int[] positions)

formatterStops

public void formatterStops()

format

public void format()


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.