org.freecompany.infoset
Interface Infoset<T>

All Known Implementing Classes:
AbstractInfoset, DefaultInfoset, DomWrapperInfoset

public interface Infoset<T>

An abstraction of an object that contains an arbitrary representation of an XML infoset. Implementations of this interface must be thread safe.


Method Summary
 T get()
          Returns the representation of the infoset.
 InfosetFactory<T> getFactory()
          Returns the factory used to create this infoset.
 java.lang.Class<T> getType()
          Returns the type of the infoset model object that this Infoset encompases.
 

Method Detail

getType

java.lang.Class<T> getType()
Returns the type of the infoset model object that this Infoset encompases.


getFactory

InfosetFactory<T> getFactory()
Returns the factory used to create this infoset.


get

T get()
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.