| Method from org.apache.xmlbeans.impl.store.DomImpl Detail: |
public static Element _attr_getOwnerElement(DomImpl.Dom a) {
Locale l = a.locale();
Dom e;
if (l.noSync()) { l.enter(); try { e = attr_getOwnerElement( a ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { e = attr_getOwnerElement( a ); } finally { l.exit(); } }
return (Element) e;
}
|
public static boolean _attr_getSpecified(DomImpl.Dom a) {
// Can't tell the difference
return true;
}
|
public static int _attributes_getLength(DomImpl.Dom e) {
Locale l = e.locale();
if (l.noSync()) { l.enter(); try { return attributes_getLength( e ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return attributes_getLength( e ); } finally { l.exit(); } }
}
|
public static Node _attributes_getNamedItem(DomImpl.Dom e,
String name) {
Locale l = e.locale();
Dom n;
if (l.noSync()) { l.enter(); try { n = attributes_getNamedItem( e, name ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { n = attributes_getNamedItem( e, name ); } finally { l.exit(); } }
return (Node) n;
}
|
public static Node _attributes_getNamedItemNS(DomImpl.Dom e,
String uri,
String local) {
Locale l = e.locale();
Dom n;
if (l.noSync()) { l.enter(); try { n = attributes_getNamedItemNS( e, uri, local ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { n = attributes_getNamedItemNS( e, uri, local ); } finally { l.exit(); } }
return (Node) n;
}
|
public static Node _attributes_item(DomImpl.Dom e,
int index) {
Locale l = e.locale();
Dom a;
if (l.noSync()) { l.enter(); try { a = attributes_item( e, index ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { a = attributes_item( e, index ); } finally { l.exit(); } }
return (Node) a;
}
|
public static Node _attributes_removeNamedItem(DomImpl.Dom e,
String name) {
Locale l = e.locale();
Dom n;
if (l.noSync()) { l.enter(); try { n = attributes_removeNamedItem( e, name ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { n = attributes_removeNamedItem( e, name ); } finally { l.exit(); } }
return (Node) n;
}
|
public static Node _attributes_removeNamedItemNS(DomImpl.Dom e,
String uri,
String local) {
Locale l = e.locale();
Dom n;
if (l.noSync()) { l.enter(); try { n = attributes_removeNamedItemNS( e, uri, local ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { n = attributes_removeNamedItemNS( e, uri, local ); } finally { l.exit(); } }
return (Node) n;
}
|
public static Node _attributes_setNamedItem(DomImpl.Dom e,
Node attr) {
Locale l = e.locale();
if (attr == null)
throw new IllegalArgumentException( "Attr to set is null" );
Dom a;
if (!(attr instanceof Dom) || (a = (Dom) attr).locale() != l)
throw new WrongDocumentErr( "Attr to set is from another document" );
Dom oldA;
if (l.noSync()) { l.enter(); try { oldA = attributes_setNamedItem( e, a ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { oldA = attributes_setNamedItem( e, a ); } finally { l.exit(); } }
return (Node) oldA;
}
|
public static Node _attributes_setNamedItemNS(DomImpl.Dom e,
Node attr) {
Locale l = e.locale();
if (attr == null)
throw new IllegalArgumentException( "Attr to set is null" );
Dom a;
if (!(attr instanceof Dom) || (a = (Dom) attr).locale() != l)
throw new WrongDocumentErr( "Attr to set is from another document" );
Dom oldA;
if (l.noSync()) { l.enter(); try { oldA = attributes_setNamedItemNS( e, a ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { oldA = attributes_setNamedItemNS( e, a ); } finally { l.exit(); } }
return (Node) oldA;
}
|
public static void _characterData_appendData(DomImpl.Dom cd,
String arg) {
// TODO - fix this *really* cheesy/bad/lousy perf impl
// also fix all the funcitons which follow
if (arg != null && arg.length() != 0)
_node_setNodeValue( cd, _node_getNodeValue( cd ) + arg );
}
|
public static void _characterData_deleteData(DomImpl.Dom c,
int offset,
int count) {
String s = _characterData_getData( c );
if (offset < 0 || offset > s.length() || count < 0)
throw new IndexSizeError();
if (offset + count > s.length())
count = s.length() - offset;
if (count > 0)
_characterData_setData( c, s.substring( 0, offset ) + s.substring( offset + count ) );
}
|
public static String _characterData_getData(DomImpl.Dom c) {
return _node_getNodeValue( c );
}
|
public static int _characterData_getLength(DomImpl.Dom c) {
return _characterData_getData( c ).length();
}
|
public static void _characterData_insertData(DomImpl.Dom c,
int offset,
String arg) {
String s = _characterData_getData( c );
if (offset < 0 || offset > s.length())
throw new IndexSizeError();
if (arg != null && arg.length() > 0)
_characterData_setData( c, s.substring( 0, offset ) + arg + s.substring( offset ) );
}
|
public static void _characterData_replaceData(DomImpl.Dom c,
int offset,
int count,
String arg) {
String s = _characterData_getData( c );
if (offset < 0 || offset > s.length() || count < 0)
throw new IndexSizeError();
if (offset + count > s.length())
count = s.length() - offset;
if (count > 0)
{
_characterData_setData(
c, s.substring( 0, offset ) + (arg == null ? "" : arg)
+ s.substring( offset + count ) );
}
}
|
public static void _characterData_setData(DomImpl.Dom c,
String data) {
_node_setNodeValue( c, data );
}
|
public static String _characterData_substringData(DomImpl.Dom c,
int offset,
int count) {
String s = _characterData_getData( c );
if (offset < 0 || offset > s.length() || count < 0)
throw new IndexSizeError();
if (offset + count > s.length())
count = s.length() - offset;
return s.substring( offset, offset + count );
}
|
public static int _childNodes_getLength(DomImpl.Dom n) {
Locale l = n.locale();
assert n instanceof Xobj;
int count;
Xobj node = (Xobj) n;
if (!node.isVacant() &&
(count = node.getDomZeroOneChildren()) < 2)
return count;
if (l.noSync()) { return childNodes_getLength( n ); }
else synchronized ( l ) { return childNodes_getLength( n ); }
}
|
public static Node _childNodes_item(DomImpl.Dom n,
int i) {
Locale l = n.locale();
Dom d;
if (i == 0) return _node_getFirstChild(n);
if (l.noSync()) { d = childNodes_item( n, i ); }
else synchronized ( l ) { d = childNodes_item( n, i ); }
return (Node) d;
}
|
public static Attr _document_createAttribute(DomImpl.Dom d,
String name) {
Locale l = d.locale();
Dom a;
if (l.noSync()) { l.enter(); try { a = document_createAttribute( d, name ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { a = document_createAttribute( d, name ); } finally { l.exit(); } }
return (Attr) a;
}
|
public static Attr _document_createAttributeNS(DomImpl.Dom d,
String uri,
String qname) {
Locale l = d.locale();
Dom a;
if (l.noSync()) { l.enter(); try { a = document_createAttributeNS( d, uri, qname ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { a = document_createAttributeNS( d, uri, qname ); } finally { l.exit(); } }
return (Attr) a;
}
|
public static CDATASection _document_createCDATASection(DomImpl.Dom d,
String data) {
return (CDATASection) document_createCDATASection( d, data );
}
|
public static Comment _document_createComment(DomImpl.Dom d,
String data) {
Locale l = d.locale();
Dom c;
if (l.noSync()) { l.enter(); try { c = document_createComment( d, data ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { c = document_createComment( d, data ); } finally { l.exit(); } }
return (Comment) c;
}
|
public static DocumentFragment _document_createDocumentFragment(DomImpl.Dom d) {
Locale l = d.locale();
Dom f;
if (l.noSync()) { l.enter(); try { f = document_createDocumentFragment( d ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { f = document_createDocumentFragment( d ); } finally { l.exit(); } }
return (DocumentFragment) f;
}
|
public static Element _document_createElement(DomImpl.Dom d,
String name) {
Locale l = d.locale();
Dom e;
if (l.noSync()) { l.enter(); try { e = document_createElement( d, name ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { e = document_createElement( d, name ); } finally { l.exit(); } }
return (Element) e;
}
|
public static Element _document_createElementNS(DomImpl.Dom d,
String uri,
String qname) {
Locale l = d.locale();
Dom e;
if (l.noSync()) { l.enter(); try { e = document_createElementNS( d, uri, qname ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { e = document_createElementNS( d, uri, qname ); } finally { l.exit(); } }
return (Element) e;
}
|
public static EntityReference _document_createEntityReference(DomImpl.Dom d,
String name) {
throw new RuntimeException( "Not implemented" );
}
|
public static ProcessingInstruction _document_createProcessingInstruction(DomImpl.Dom d,
String target,
String data) {
Locale l = d.locale();
Dom pi;
if (l.noSync()) { l.enter(); try { pi = document_createProcessingInstruction( d, target, data ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { pi = document_createProcessingInstruction( d, target, data ); } finally { l.exit(); } }
return (ProcessingInstruction) pi;
}
|
public static Text _document_createTextNode(DomImpl.Dom d,
String data) {
return (Text) document_createTextNode( d, data );
}
|
public static DocumentType _document_getDoctype(DomImpl.Dom d) {
Locale l = d.locale();
Dom dt;
if (l.noSync()) { l.enter(); try { dt = document_getDoctype( d ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { dt = document_getDoctype( d ); } finally { l.exit(); } }
return (DocumentType) dt;
}
|
public static Element _document_getDocumentElement(DomImpl.Dom d) {
Locale l = d.locale();
Dom e;
if (l.noSync()) { l.enter(); try { e = document_getDocumentElement( d ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { e = document_getDocumentElement( d ); } finally { l.exit(); } }
return (Element) e;
}
|
public static Element _document_getElementById(DomImpl.Dom d,
String elementId) {
throw new RuntimeException( "Not implemented" );
}
|
public static NodeList _document_getElementsByTagName(DomImpl.Dom d,
String name) {
Locale l = d.locale();
if (l.noSync()) { l.enter(); try { return document_getElementsByTagName( d, name ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return document_getElementsByTagName( d, name ); } finally { l.exit(); } }
}
|
public static NodeList _document_getElementsByTagNameNS(DomImpl.Dom d,
String uri,
String local) {
Locale l = d.locale();
if (l.noSync()) { l.enter(); try { return document_getElementsByTagNameNS( d, uri, local ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return document_getElementsByTagNameNS( d, uri, local ); } finally { l.exit(); } }
}
|
public static DOMImplementation _document_getImplementation(DomImpl.Dom d) {
return (DOMImplementation) d.locale();
}
|
public static Node _document_importNode(DomImpl.Dom d,
Node n,
boolean deep) {
Locale l = d.locale();
Dom i;
// // TODO - need to wrap this in sync ..
// if (n instanceof Dom)
// i = node_cloneNode( (Dom) n, deep, m );
// else
// TODO -- I'm importing my own nodes through DOM methods! -- make this faster
{
if (l.noSync()) { l.enter(); try { i = document_importNode( d, n, deep ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { i = document_importNode( d, n, deep ); } finally { l.exit(); } }
}
return (Node) i;
}
|
public static Document _domImplementation_createDocument(Locale l,
String u,
String n,
DocumentType t) {
Document d;
if (l.noSync()) { l.enter(); try { return domImplementation_createDocument( l, u, n, t ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return domImplementation_createDocument( l, u, n, t ); } finally { l.exit(); } }
}
|
public static boolean _domImplementation_hasFeature(Locale l,
String feature,
String version) {
if (feature == null)
return false;
if (version != null && version.length() > 0 &&
!version.equals( "1.0" ) && !version.equals( "2.0" ))
{
return false;
}
if (feature.equalsIgnoreCase( "core" ))
return true;
if (feature.equalsIgnoreCase( "xml" ))
return true;
return false;
}
|
public static String _element_getAttribute(DomImpl.Dom e,
String name) {
Node a = _attributes_getNamedItem( e, name );
return a == null ? "" : a.getNodeValue();
}
|
public static String _element_getAttributeNS(DomImpl.Dom e,
String uri,
String local) {
Node a = _attributes_getNamedItemNS( e, uri, local );
return a == null ? "" : a.getNodeValue();
}
|
public static Attr _element_getAttributeNode(DomImpl.Dom e,
String name) {
return (Attr) _attributes_getNamedItem( e, name );
}
|
public static Attr _element_getAttributeNodeNS(DomImpl.Dom e,
String uri,
String local) {
return (Attr) _attributes_getNamedItemNS( e, uri, local );
}
|
public static NodeList _element_getElementsByTagName(DomImpl.Dom e,
String name) {
Locale l = e.locale();
if (l.noSync()) { l.enter(); try { return element_getElementsByTagName( e, name ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return element_getElementsByTagName( e, name ); } finally { l.exit(); } }
}
|
public static NodeList _element_getElementsByTagNameNS(DomImpl.Dom e,
String uri,
String local) {
Locale l = e.locale();
if (l.noSync()) { l.enter(); try { return element_getElementsByTagNameNS( e, uri, local ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return element_getElementsByTagNameNS( e, uri, local ); } finally { l.exit(); } }
}
|
public static String _element_getTagName(DomImpl.Dom e) {
return _node_getNodeName( e );
}
|
public static boolean _element_hasAttribute(DomImpl.Dom e,
String name) {
return _attributes_getNamedItem( e, name ) != null;
}
|
public static boolean _element_hasAttributeNS(DomImpl.Dom e,
String uri,
String local) {
return _attributes_getNamedItemNS( e, uri, local ) != null;
}
|
public static void _element_removeAttribute(DomImpl.Dom e,
String name) {
try
{
_attributes_removeNamedItem( e, name );
}
catch ( NotFoundErr ex )
{
}
}
|
public static void _element_removeAttributeNS(DomImpl.Dom e,
String uri,
String local) {
try
{
_attributes_removeNamedItemNS( e, uri, local );
}
catch ( NotFoundErr ex )
{
}
}
|
public static Attr _element_removeAttributeNode(DomImpl.Dom e,
Attr oldAttr) {
if (oldAttr == null)
throw new NotFoundErr( "Attribute to remove is null" );
if (oldAttr.getOwnerElement() != e)
throw new NotFoundErr( "Attribute to remove does not belong to this element" );
return (Attr) _attributes_removeNamedItem( e, oldAttr.getNodeName() );
}
|
public static void _element_setAttribute(DomImpl.Dom e,
String name,
String value) {
// TODO - validate all attr/element names in all apprpraite
// methdos
Locale l = e.locale();
if (l.noSync()) { l.enter(); try { element_setAttribute( e, name, value ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { element_setAttribute( e, name, value ); } finally { l.exit(); } }
}
|
public static void _element_setAttributeNS(DomImpl.Dom e,
String uri,
String qname,
String value) {
Locale l = e.locale();
if (l.noSync()) { l.enter(); try { element_setAttributeNS( e, uri, qname, value ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { element_setAttributeNS( e, uri, qname, value ); } finally { l.exit(); } }
}
|
public static Attr _element_setAttributeNode(DomImpl.Dom e,
Attr newAttr) {
return (Attr) _attributes_setNamedItem( e, newAttr );
}
|
public static Attr _element_setAttributeNodeNS(DomImpl.Dom e,
Attr newAttr) {
return (Attr) _attributes_setNamedItemNS( e, newAttr );
}
|
public static XmlCursor _getXmlCursor(DomImpl.Dom n) {
Locale l = n.locale();
if (l.noSync()) { l.enter(); try { return getXmlCursor( n ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return getXmlCursor( n ); } finally { l.exit(); } }
}
|
public static XmlObject _getXmlObject(DomImpl.Dom n) {
Locale l = n.locale();
if (l.noSync()) { l.enter(); try { return getXmlObject( n ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return getXmlObject( n ); } finally { l.exit(); } }
}
|
public static XMLStreamReader _getXmlStreamReader(DomImpl.Dom n) {
Locale l = n.locale();
if (l.noSync()) { l.enter(); try { return getXmlStreamReader( n ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return getXmlStreamReader( n ); } finally { l.exit(); } }
}
|
public static Node _node_appendChild(DomImpl.Dom p,
Node newChild) {
return _node_insertBefore( p, newChild, null );
}
|
public static Node _node_cloneNode(DomImpl.Dom n,
boolean deep) {
Locale l = n.locale();
Dom c;
if (l.noSync()) { l.enter(); try { c = node_cloneNode( n, deep ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { c = node_cloneNode( n, deep ); } finally { l.exit(); } }
return (Node) c;
}
|
public static short _node_compareDocumentPosition(DomImpl.Dom n,
Node other) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static String _node_getBaseURI(DomImpl.Dom n) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static Object _node_getFeature(DomImpl.Dom n,
String feature,
String version) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static Node _node_getFirstChild(DomImpl.Dom n) {
Locale l = n.locale();
Dom fc;
assert n instanceof Xobj;
Xobj node = (Xobj)n;
if (!node.isVacant())
{
if (node.isFirstChildPtrDomUsable())
return (Node) node._firstChild;
Xobj lastAttr = node.lastAttr();
if (lastAttr != null &&
lastAttr.isNextSiblingPtrDomUsable())
return (Xobj.NodeXobj) lastAttr._nextSibling;
if (node.isExistingCharNodesValueUsable())
return node._charNodesValue;
}
if (l.noSync()) { fc = node_getFirstChild( n ); }
else synchronized ( l ) { fc = node_getFirstChild( n ); }
return (Node) fc;
}
|
public static Node _node_getLastChild(DomImpl.Dom n) {
Locale l = n.locale();
Dom lc;
if (l.noSync()) { l.enter(); try { lc = node_getLastChild( n ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { lc = node_getLastChild( n ); } finally { l.exit(); } }
return (Node) lc;
}
|
public static String _node_getLocalName(DomImpl.Dom n) {
if (! n.nodeCanHavePrefixUri() ) return null;
QName name = n.getQName();
return name == null ? "" : name.getLocalPart();
}
|
public static String _node_getNamespaceURI(DomImpl.Dom n) {
if (! n.nodeCanHavePrefixUri() ) return null;
QName name = n.getQName();
// TODO - should return the correct namespace for xmlns ...
return name == null ? "":
//name.getNamespaceURI().equals("")? null:
name.getNamespaceURI();
}
|
public static Node _node_getNextSibling(DomImpl.Dom n) {
Locale l = n.locale();
Dom ns;
if (l.noSync()) { ns = node_getNextSibling( n ); }
else synchronized ( l ) { ns = node_getNextSibling( n ); }
return (Node) ns;
}
|
public static String _node_getNodeName(DomImpl.Dom n) {
switch ( n.nodeType() )
{
case CDATA : return "#cdata-section";
case COMMENT : return "#comment";
case DOCFRAG : return "#document-fragment";
case DOCUMENT : return "#document";
case PROCINST : return n.getQName().getLocalPart();
case TEXT : return "#text";
case ATTR :
case ELEMENT :
{
QName name = n.getQName();
String prefix = name.getPrefix();
return prefix.length() == 0 ? name.getLocalPart() : prefix + ":" + name.getLocalPart();
}
case DOCTYPE :
case ENTITY :
case ENTITYREF :
case NOTATION :
throw new RuntimeException( "Not impl" );
default : throw new RuntimeException( "Unknown node type" );
}
}
|
public static short _node_getNodeType(DomImpl.Dom n) {
return (short) n.nodeType();
}
|
public static String _node_getNodeValue(DomImpl.Dom n) {
Locale l = n.locale();
if (l.noSync()) { return node_getNodeValue( n ); }
else synchronized ( l ) { return node_getNodeValue( n ); }
}
|
public static Document _node_getOwnerDocument(DomImpl.Dom n) {
Locale l = n.locale();
Dom d;
if (l.noSync()) { l.enter(); try { d = node_getOwnerDocument( n ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { d = node_getOwnerDocument( n ); } finally { l.exit(); } }
return (Document) d;
}
|
public static Node _node_getParentNode(DomImpl.Dom n) {
Locale l = n.locale();
Dom p;
if (l.noSync()) { l.enter(); try { p = node_getParentNode( n ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { p = node_getParentNode( n ); } finally { l.exit(); } }
return (Node) p;
}
|
public static String _node_getPrefix(DomImpl.Dom n) {
if (! n.nodeCanHavePrefixUri() ) return null;
QName name = n.getQName();
return name == null ? "" :
name.getPrefix();
}
|
public static Node _node_getPreviousSibling(DomImpl.Dom n) {
Locale l = n.locale();
Dom ps;
if (l.noSync()) { ps = node_getPreviousSibling( n ); }
else synchronized ( l ) { ps = node_getPreviousSibling( n ); }
return (Node) ps;
}
|
public static String _node_getTextContent(DomImpl.Dom n) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static Object _node_getUserData(DomImpl.Dom n,
String key) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static boolean _node_hasAttributes(DomImpl.Dom n) {
Locale l = n.locale();
if (l.noSync()) { l.enter(); try { return node_hasAttributes( n ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return node_hasAttributes( n ); } finally { l.exit(); } }
}
|
public static boolean _node_hasChildNodes(DomImpl.Dom n) {
// TODO - make this faster
return _node_getFirstChild( n ) != null;
}
|
public static Node _node_insertBefore(DomImpl.Dom p,
Node newChild,
Node refChild) {
Locale l = p.locale();
if (newChild == null)
throw new IllegalArgumentException( "Child to add is null" );
Dom nc;
if (!(newChild instanceof Dom) || (nc = (Dom) newChild).locale() != l)
throw new WrongDocumentErr( "Child to add is from another document" );
Dom rc = null;
if (refChild != null)
{
if (!(refChild instanceof Dom) || (rc = (Dom) refChild).locale() != l)
throw new WrongDocumentErr( "Reference child is from another document" );
}
Dom d;
if (l.noSync()) { l.enter(); try { d = node_insertBefore( p, nc, rc ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { d = node_insertBefore( p, nc, rc ); } finally { l.exit(); } }
return (Node) d;
}
|
public static boolean _node_isDefaultNamespace(DomImpl.Dom n,
String namespaceURI) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static boolean _node_isEqualNode(DomImpl.Dom n,
Node arg) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static boolean _node_isSameNode(DomImpl.Dom n,
Node arg) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static boolean _node_isSupported(DomImpl.Dom n,
String feature,
String version) {
return _domImplementation_hasFeature( n.locale(), feature, version );
}
|
public static String _node_lookupNamespaceURI(DomImpl.Dom n,
String prefix) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static String _node_lookupPrefix(DomImpl.Dom n,
String namespaceURI) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static void _node_normalize(DomImpl.Dom n) {
Locale l = n.locale();
if (l.noSync()) { l.enter(); try { node_normalize( n ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { node_normalize( n ); } finally { l.exit(); } }
}
|
public static Node _node_removeChild(DomImpl.Dom p,
Node child) {
Locale l = p.locale();
if (child == null)
throw new NotFoundErr( "Child to remove is null" );
Dom c;
if (!(child instanceof Dom) || (c = (Dom) child).locale() != l)
throw new WrongDocumentErr( "Child to remove is from another document" );
Dom d;
if (l.noSync()) { l.enter(); try { d = node_removeChild( p, c ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { d = node_removeChild( p, c ); } finally { l.exit(); } }
return (Node) d;
}
|
public static Node _node_replaceChild(DomImpl.Dom p,
Node newChild,
Node oldChild) {
Locale l = p.locale();
if (newChild == null)
throw new IllegalArgumentException( "Child to add is null" );
if (oldChild == null)
throw new NotFoundErr( "Child to replace is null" );
Dom nc;
if (!(newChild instanceof Dom) || (nc = (Dom) newChild).locale() != l)
throw new WrongDocumentErr( "Child to add is from another document" );
Dom oc = null;
if (!(oldChild instanceof Dom) || (oc = (Dom) oldChild).locale() != l)
throw new WrongDocumentErr( "Child to replace is from another document" );
Dom d;
if (l.noSync()) { l.enter(); try { d = node_replaceChild( p, nc, oc ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { d = node_replaceChild( p, nc, oc ); } finally { l.exit(); } }
return (Node) d;
}
|
public static void _node_setNodeValue(DomImpl.Dom n,
String nodeValue) {
Locale l = n.locale();
if (l.noSync()) { l.enter(); try { node_setNodeValue( n, nodeValue ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { node_setNodeValue( n, nodeValue ); } finally { l.exit(); } }
}
|
public static void _node_setPrefix(DomImpl.Dom n,
String prefix) {
Locale l = n.locale();
if (l.noSync()) { l.enter(); try { node_setPrefix( n, prefix ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { node_setPrefix( n, prefix ); } finally { l.exit(); } }
}
|
public static void _node_setTextContent(DomImpl.Dom n,
String textContent) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static Object _node_setUserData(DomImpl.Dom n,
String key,
Object data,
UserDataHandler handler) {
throw new RuntimeException( "DOM Level 3 Not implemented" );
}
|
public static String _processingInstruction_getData(DomImpl.Dom p) {
return _node_getNodeValue( p );
}
|
public static String _processingInstruction_getTarget(DomImpl.Dom p) {
return _node_getNodeName( p );
}
|
public static void _processingInstruction_setData(DomImpl.Dom p,
String data) {
_node_setNodeValue( p, data );
}
|
public static SOAPElement _soapElement_addAttribute(DomImpl.Dom d,
Name name,
String value) throws SOAPException {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_addAttribute( se, name, value ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_addAttribute( se, name, value ); } finally { l.exit(); } }
}
|
public static SOAPElement _soapElement_addChildElement(DomImpl.Dom d,
SOAPElement oldChild) throws SOAPException {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_addChildElement( se, oldChild ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_addChildElement( se, oldChild ); } finally { l.exit(); } }
}
|
public static SOAPElement _soapElement_addChildElement(DomImpl.Dom d,
Name name) throws SOAPException {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_addChildElement( se, name ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_addChildElement( se, name ); } finally { l.exit(); } }
}
|
public static SOAPElement _soapElement_addChildElement(DomImpl.Dom d,
String localName) throws SOAPException {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_addChildElement( se, localName ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_addChildElement( se, localName ); } finally { l.exit(); } }
}
|
public static SOAPElement _soapElement_addChildElement(DomImpl.Dom d,
String localName,
String prefix) throws SOAPException {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_addChildElement( se, localName, prefix ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_addChildElement( se, localName, prefix ); } finally { l.exit(); } }
}
|
public static SOAPElement _soapElement_addChildElement(DomImpl.Dom d,
String localName,
String prefix,
String uri) throws SOAPException {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_addChildElement( se, localName, prefix, uri ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_addChildElement( se, localName, prefix, uri ); } finally { l.exit(); } }
}
|
public static SOAPElement _soapElement_addNamespaceDeclaration(DomImpl.Dom d,
String prefix,
String uri) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_addNamespaceDeclaration( se, prefix, uri ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_addNamespaceDeclaration( se, prefix, uri ); } finally { l.exit(); } }
}
|
public static SOAPElement _soapElement_addTextNode(DomImpl.Dom d,
String data) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_addTextNode( se, data ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_addTextNode( se, data ); } finally { l.exit(); } }
}
|
public static Iterator _soapElement_getAllAttributes(DomImpl.Dom d) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_getAllAttributes( se ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_getAllAttributes( se ); } finally { l.exit(); } }
}
|
public static String _soapElement_getAttributeValue(DomImpl.Dom d,
Name name) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_getAttributeValue( se, name ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_getAttributeValue( se, name ); } finally { l.exit(); } }
}
|
public static Iterator _soapElement_getChildElements(DomImpl.Dom d) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_getChildElements( se ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_getChildElements( se ); } finally { l.exit(); } }
}
|
public static Iterator _soapElement_getChildElements(DomImpl.Dom d,
Name name) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_getChildElements( se, name ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_getChildElements( se, name ); } finally { l.exit(); } }
}
|
public static Name _soapElement_getElementName(DomImpl.Dom d) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_getElementName( se ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_getElementName( se ); } finally { l.exit(); } }
}
|
public static String _soapElement_getEncodingStyle(DomImpl.Dom d) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_getEncodingStyle( se ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_getEncodingStyle( se ); } finally { l.exit(); } }
}
|
public static Iterator _soapElement_getNamespacePrefixes(DomImpl.Dom d) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_getNamespacePrefixes( se ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_getNamespacePrefixes( se ); } finally { l.exit(); } }
}
|
public static String _soapElement_getNamespaceURI(DomImpl.Dom d,
String prefix) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_getNamespaceURI( se, prefix ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_getNamespaceURI( se, prefix ); } finally { l.exit(); } }
}
|
public static Iterator _soapElement_getVisibleNamespacePrefixes(DomImpl.Dom d) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_getVisibleNamespacePrefixes( se ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_getVisibleNamespacePrefixes( se ); } finally { l.exit(); } }
}
|
public static boolean _soapElement_removeAttribute(DomImpl.Dom d,
Name name) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_removeAttribute( se, name ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_removeAttribute( se, name ); } finally { l.exit(); } }
}
|
public static void _soapElement_removeContents(DomImpl.Dom d) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { l._saaj.soapElement_removeContents( se ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { l._saaj.soapElement_removeContents( se ); } finally { l.exit(); } }
}
|
public static boolean _soapElement_removeNamespaceDeclaration(DomImpl.Dom d,
String prefix) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { return l._saaj.soapElement_removeNamespaceDeclaration( se, prefix ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { return l._saaj.soapElement_removeNamespaceDeclaration( se, prefix ); } finally { l.exit(); } }
}
|
public static void _soapElement_setEncodingStyle(DomImpl.Dom d,
String encodingStyle) {
Locale l = d.locale();
SOAPElement se = (SOAPElement) d;
if (l.noSync()) { l.enter(); try { l._saaj.soapElement_setEncodingStyle( se, encodingStyle ); } finally { l.exit(); } }
else synchronized ( l ) { l.enter(); try { l._saaj.soapElement_setEncodingStyle( se, encodingStyle ); } finally { l.exit(); } }
}
|
public static <
|