org.freecompany.infoset
Class DefaultInfoset<T>

java.lang.Object
  extended by org.freecompany.infoset.AbstractInfoset<T>
      extended by org.freecompany.infoset.DefaultInfoset<T>
All Implemented Interfaces:
Infoset<T>

public class DefaultInfoset<T>
extends AbstractInfoset<T>


Field Summary
protected  T model
           
 
Fields inherited from class org.freecompany.infoset.AbstractInfoset
factory, type
 
Constructor Summary
DefaultInfoset(java.lang.Class<T> type, InfosetFactory<T> factory, T model)
           
DefaultInfoset(java.lang.Class<T> type, T model)
           
 
Method Summary
 T get()
          Returns the representation of the infoset.
 
Methods inherited from class org.freecompany.infoset.AbstractInfoset
getFactory, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected final T model
Constructor Detail

DefaultInfoset

public DefaultInfoset(java.lang.Class<T> type,
                      T model)

DefaultInfoset

public DefaultInfoset(java.lang.Class<T> type,
                      InfosetFactory<T> factory,
                      T model)
Method Detail

get

public T get()
Description copied from interface: Infoset
Returns the representation of the infoset. This method may be called multiple times during exection, and may be concurrently executed from multiple pipeline instances. Therefore, the resulting objects must be thread safe in respect to itself and other like instances.

The backing infoset need not be a precomputed in memory representation, though it certainly could be as in a DOM Node infoset. In some cases, as with the SAX XMLReader or a pull implementation the backing object may only represent a way to set a event handler for future parsing.