|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.hk2.config.DomDocument<T>
public class DomDocument<T extends Dom>
Represents a whole DOM tree.
Field Summary | |
---|---|
protected Map<Inhabitant<? extends ConfigInjector>,ConfigModel> |
models
|
Constructor Summary | |
---|---|
DomDocument(Habitat habitat)
|
Method Summary | |
---|---|
ConfigModel |
buildModel(Class<?> clazz)
Obtains a ConfigModel for the given class (Which should have Configured annotation on it.) |
ConfigModel |
buildModel(String fullyQualifiedClassName)
Obtains a ConfigModel for the given class (Which should have Configured annotation on it.) |
List<ConfigModel> |
getAllModelsImplementing(Class intf)
Calculates all @Configured interfaces subclassing the passed interface type. |
ConfigModel |
getModel(Class c)
Deprecated. |
ConfigModel |
getModelByElementName(String elementName)
Obtains the ConfigModel from the "global" element name. |
Dom |
getRoot()
|
Translator |
getTranslator()
|
Dom |
make(Habitat habitat,
XMLStreamReader in,
T parent,
ConfigModel model)
|
void |
setTranslator(Translator translator)
|
void |
writeTo(XMLStreamWriter w)
Writes back the whole DOM tree as an XML document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Map<Inhabitant<? extends ConfigInjector>,ConfigModel> models
Constructor Detail |
---|
public DomDocument(Habitat habitat)
Method Detail |
---|
public Dom getRoot()
public Translator getTranslator()
public void setTranslator(Translator translator)
public ConfigModel buildModel(Class<?> clazz)
ConfigModel
for the given class (Which should have Configured
annotation on it.)
public ConfigModel buildModel(String fullyQualifiedClassName)
ConfigModel
for the given class (Which should have Configured
annotation on it.)
public ConfigModel getModelByElementName(String elementName)
ConfigModel
from the "global" element name.
This method uses buildModel(org.jvnet.hk2.component.Inhabitant extends org.jvnet.hk2.config.ConfigInjector>)
to lazily build models if necessary.
public List<ConfigModel> getAllModelsImplementing(Class intf) throws ClassNotFoundException
intf
- a @Configured interface
ClassNotFoundException
@Deprecated public ConfigModel getModel(Class c)
public Dom make(Habitat habitat, XMLStreamReader in, T parent, ConfigModel model)
public void writeTo(XMLStreamWriter w) throws XMLStreamException
To support writing a subtree, this method doesn't invoke the start/endDocument events. Those are the responsibility of the caller.
w
- Receives XML infoset stream.
XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |