org.freecompany.infoset
Class AbstractInfoset<T>

java.lang.Object
  extended by org.freecompany.infoset.AbstractInfoset<T>
All Implemented Interfaces:
Infoset<T>
Direct Known Subclasses:
DefaultInfoset, DomWrapperInfoset

public abstract class AbstractInfoset<T>
extends java.lang.Object
implements Infoset<T>


Field Summary
protected  InfosetFactory<T> factory
           
protected  java.lang.Class<T> type
           
 
Constructor Summary
AbstractInfoset(java.lang.Class<T> type)
           
AbstractInfoset(java.lang.Class<T> type, InfosetFactory<T> factory)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.freecompany.infoset.Infoset
get
 

Field Detail

type

protected final java.lang.Class<T> type

factory

protected final InfosetFactory<T> factory
Constructor Detail

AbstractInfoset

public AbstractInfoset(java.lang.Class<T> type)

AbstractInfoset

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

getType

public java.lang.Class<T> getType()
Description copied from interface: Infoset
Returns the type of the infoset model object that this Infoset encompases.

Specified by:
getType in interface Infoset<T>

getFactory

public InfosetFactory<T> getFactory()
Description copied from interface: Infoset
Returns the factory used to create this infoset.

Specified by:
getFactory in interface Infoset<T>