public class NOMHandle
extends java.lang.Object
implements java.lang.AutoCloseable
NOMUtil.getNOMHandle()
to get a new instance.
Node domNode = constructDOMNode();//constructDOMNode() returns a DOM node from DOM-over-NOM implementation
try(NOMHandle handle = new NOMHandle(domNode){
oldAPIStillDemandingNOMNode(handle.getNOMNode());
}
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getNOMNode()
Returns the NOM node corresponding to the DOM Node.
|
public void close()
close
in interface java.lang.AutoCloseable
public int getNOMNode()