1 4 7 package javax.xml.crypto.dom; 8 9 import org.w3c.dom.Node ; 10 import javax.xml.crypto.XMLStructure; 11 import javax.xml.crypto.dsig.XMLSignature; 12 13 31 public class DOMStructure implements XMLStructure { 32 33 private final Node node; 34 35 41 public DOMStructure(Node node) { 42 if (node == null) { 43 throw new NullPointerException ("node cannot be null"); 44 } 45 this.node = node; 46 } 47 48 53 public Node getNode() { 54 return node; 55 } 56 57 60 public boolean isFeatureSupported(String feature) { 61 if (feature == null) { 62 throw new NullPointerException (); 63 } else { 64 return false; 65 } 66 } 67 } 68 | Popular Tags |