org.inria.ns.reflex.structures
Interface Presentable

All Known Implementing Classes:
AbstractAction, AbstractAction.UselessAction, AbstractDefinitionAction, AbstractFeedAction, AbstractFilterAction, AbstractIdentifierAction, AbstractPrimitiveModelAction, AbstractSetAction, AbstractStepAction, ActiveSchemaAction, ActiveSheetAction, AlternativeAction, ApplyRulesAction, AssertAction, AttributeAction, AttributeAction.NameRef, AttributeAction.NamespaceRef, AttributeDefinitionAction, BlockAction, BreakAction, CallAction, CanonicalPath, CatalogAction, ChoiceAction, ChooseAction, ClearAction, CloseAction, CommitAction, ComplexOperationAction, ConnectAction, ContainerStepAction, ContinueAction, ConversationAction, CookieAction, CopyAction, CreateDirAction, DeleteAction, DisconnectAction, EchoAction, ElementAction, ElementAction, ElementAction.Macro, ElementAction.NameRef, ElementAction.NamespaceRef, ElementAction.Predefined, ElementDefinitionAction, EventAction, ExitAction, ExportAction, ExportsAction, ExtendedFunctionAction, ExtendedFunctionAction.Macro, ExtendedFunctionAction.Predefined, FallbackAction, FileAction, FillFormAction, FilterAction, FlushAction, ForEachAction, ForeignAttributeAction, ForwardAction, GroupAction, HtmlAction, IfAction, InactiveTagsAction, InitAction, InterimStepAction, InterimStepAction.InterimAction, InvokeAction, InvokeAction, InvokeAction.Async, KeepAction, LiteralElementAction, LiteralTextAction, LogicAction, LoopAction, MacroAction, MacroInvokerAction, MainAction, MappingAction, ModuleAction, NextCatalogAction, NoAction, NopAction, OpenAction, OperationsAction, OperationsAction.Deferred, ParseAction, ParseFilterAction, ParseHTMLAction, ParseSchemaAction, ParseStylesheetAction, ParseTypeAction, PredefinedPropertyAction, PredefinedPropertyAction.Macro, PredefinedPropertyAction.Predefined, PublicAction, QName, QueryAction, ReadAction, RenameAction, RequestAction, ResourceAction, RollbackAction, RuleAction, RuleSetAction, SaveAction, SelectAction, SelectAction, SequenceAction, ServiceAction, SetAction, SetItemAction, SetParameterAction, SetXMLAttribute, SimpleOperationAction, SleepAction, SubmitAction, SystemAction, TextAction, TextAction.InlineType, TextAction.Pattern, TextAction.TypeNameRef, TextAction.Value, TransformAction, TypeAction, UnmarshalAction, UpdateAction, URIAction, UrlAction, UseAction, ValidateAction, WriteAction, XMLAction, XMLAttribute, XMLComment, XMLDocument, XMLElement, XMLNamespaceDeclaration, XMLProcessingInstruction, XMLText

public interface Presentable

A Presentable object can provide a pretty string representation of itself.

Usefull for console outputs.

Author:
Philippe Poulard

Method Summary
 StringBuffer toPrettyString()
          Return a pretty string representation of this.
 StringBuffer toPrettyString(StringBuffer buf)
          Append a pretty string representation of this to the given buffer.
 

Method Detail

toPrettyString

StringBuffer toPrettyString()
Return a pretty string representation of this.

A typical implementation of this method is :

    public StringBuffer toPrettyString() {
        return toPrettyString( new StringBuffer() );
    }

Returns:
A new string buffer.

toPrettyString

StringBuffer toPrettyString(StringBuffer buf)
Append a pretty string representation of this to the given buffer.

Parameters:
buf - The buffer to append to.
Returns:
The buffer given.