org.apache.qpid.info
Class Info<T extends Map<String,?>>

java.lang.Object
  extended by org.apache.qpid.info.Info<T>

public class Info<T extends Map<String,?>>
extends Object

The Info class encapsulates all the information we are collecting and it is able to render it in different data representations


Constructor Summary
Info(T info)
          Constructor.
 
Method Summary
 HashMap<String,String> toMap()
          Renders Info map to a HashMap
 Properties toProps()
          Renders Info map to a property object
 String toString()
           
 StringBuffer toStringBuffer()
          Renders Info map to a StringBuffer
 StringBuffer toXML()
          Renders Info map to a StringBuffer containing an XML string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Info

public Info(T info)
Constructor.

Parameters:
info - instantiates the object with a Map
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toProps

public Properties toProps()
Renders Info map to a property object

Returns:
A Properties object representing the Info map

toStringBuffer

public StringBuffer toStringBuffer()
Renders Info map to a StringBuffer

Returns:
A StringBuffer object representing the Info map

toXML

public StringBuffer toXML()
Renders Info map to a StringBuffer containing an XML string

Returns:
A StringBuffer object containing an XML representation of the Info map

toMap

public HashMap<String,String> toMap()
Renders Info map to a HashMap

Returns:
A HashMap object representing the Info map


Licensed to the Apache Software Foundation