コード例 #1
0
        /// <summary>
        /// Retrieves the context node's attributes.
        /// </summary>
        /// <param name="node">
        ///            is the type of node. </param>
        public override void iterate(NodeType node, ResultBuffer copyInto, Node limitNode)
        {
            // only elements have attributes
            if (!(node is ElementType))
            {
                return;
            }

            // get attributes
            ElementType  elem  = (ElementType)node;
            NamedNodeMap attrs = elem.value().Attributes;

            if (attrs == null)
            {
                return;
            }

            // add attributes
            for (int i = 0; i < attrs.Length; i++)
            {
                Attr attr = (Attr)attrs.item(i);

                copyInto.add(NodeType.dom_to_xpath(attr, node.TypeModel));
            }
        }
コード例 #2
0
ファイル: XPathAPI.cs プロジェクト: minam365/JavApi
 /*
  *  Use an XPath string to select a nodelist.
  *  XPath namespace prefixes are resolved from the namespaceNode.
  *
  *  @param contextNode The node to start searching from.
  *  @param str A valid XPath string.
  *  @param namespaceNode The node from which prefixes in the XPath will be resolved to namespaces.
  *  @return A NodeIterator, should never be null.
  *
  * @throws TransformerException
  */
 public static org.w3c.dom.NodeList selectNodeList(
     org.w3c.dom.Node contextNode, String str, org.w3c.dom.Node namespaceNode)
 //throws TransformerException
 {
     // Execute the XPath, and have it return the result
     throw new java.lang.UnsupportedOperationException("XALAN-J not yet implemented");
 }
コード例 #3
0
ファイル: DOMStructure.cs プロジェクト: sailesh341/JavApi
 /**
  * Creates a <code>DOMStructure</code> containing the specified node.
  *
  * @param node the node
  * @throws NullPointerException if <code>node</code> is <code>null</code>
  */
 public DOMStructure(org.w3c.dom.Node node)
 {
     if (node == null) {
     throw new java.lang.NullPointerException("node cannot be null");
     }
     this.node = node;
 }
コード例 #4
0
ファイル: DOMStructure.cs プロジェクト: bastie/NetVampire
 /**
  * Creates a <code>DOMStructure</code> containing the specified node.
  *
  * @param node the node
  * @throws NullPointerException if <code>node</code> is <code>null</code>
  */
 public DOMStructure(org.w3c.dom.Node node)
 {
     if (node == null)
     {
         throw new java.lang.NullPointerException("node cannot be null");
     }
     this.node = node;
 }
コード例 #5
0
        /// <summary>
        /// Retrieve the the descendants of the context node and the context node
        /// itself.
        /// </summary>
        /// <param name="node">
        ///            is the type of node. </param>
        public override void iterate(NodeType node, ResultBuffer rs, Node limitNode)
        {
            // add self
            rs.add(node);

            // add descendants
            (new DescendantAxis()).iterate(node, rs, null);
        }
コード例 #6
0
ファイル: DOMValidateContext.cs プロジェクト: minam365/JavApi
 /*
  * Sets the node.
  *
  * @param node the node
  * @throws NullPointerException if <code>node</code> is <code>null</code>
  * @see #getNode
  */
 public void setNode(org.w3c.dom.Node node)
 {
     if (node == null)
     {
         throw new java.lang.NullPointerException();
     }
     this.node = node;
 }
コード例 #7
0
        /// <summary>
        /// Get ancestor nodes of the context node and the context node itself.
        /// </summary>
        /// <param name="node">
        ///            is the type of node. </param>
        public override void iterate(NodeType node, ResultBuffer copyInto, Node limitNode)
        {
            // get ancestors
            AncestorAxis aa = new AncestorAxis();

            aa.iterate(node, copyInto, null);

            // add self
            copyInto.add(node);
        }
コード例 #8
0
 /**
  * Creates a <code>DOMValidateContext</code> containing the specified key
  * selector and node.
  *
  * @param ks a key selector for finding a validation key
  * @param node the node
  * @throws NullPointerException if <code>ks</code> or <code>node</code> is
  *    <code>null</code>
  */
 public DOMValidateContext(KeySelector ks, org.w3c.dom.Node node)
 {
     if (ks == null) {
     throw new java.lang.NullPointerException("key selector is null");
     }
     if (node == null) {
     throw new java.lang.NullPointerException("node is null");
     }
     setKeySelector(ks);
     this.node = node;
 }
コード例 #9
0
ファイル: DOMSignContext.cs プロジェクト: sailesh341/JavApi
 /**
  * Creates a <code>DOMSignContext</code> with the specified signing key
  * and parent node. The signing key is stored in a
  * {@link KeySelector#singletonKeySelector singleton KeySelector} that is
  * returned by the {@link #getKeySelector getKeySelector} method.
  * The marshalled <code>XMLSignature</code> will be added as the last
  * child element of the specified parent node unless a next sibling node is
  * specified by invoking the {@link #setNextSibling setNextSibling} method.
  *
  * @param signingKey the signing key
  * @param parent the parent node
  * @throws NullPointerException if <code>signingKey</code> or
  *    <code>parent</code> is <code>null</code>
  */
 public DOMSignContext(java.security.Key signingKey, org.w3c.dom.Node parent)
 {
     if (signingKey == null) {
     throw new java.lang.NullPointerException("signingKey cannot be null");
     }
     if (parent == null) {
     throw new java.lang.NullPointerException("parent cannot be null");
     }
     setKeySelector(KeySelector.singletonKeySelector(signingKey));
     this.parent = parent;
 }
コード例 #10
0
ファイル: DOMValidateContext.cs プロジェクト: minam365/JavApi
 /*
  * Creates a <code>DOMValidateContext</code> containing the specified key
  * selector and node.
  *
  * @param ks a key selector for finding a validation key
  * @param node the node
  * @throws NullPointerException if <code>ks</code> or <code>node</code> is
  *    <code>null</code>
  */
 public DOMValidateContext(KeySelector ks, org.w3c.dom.Node node)
 {
     if (ks == null)
     {
         throw new java.lang.NullPointerException("key selector is null");
     }
     if (node == null)
     {
         throw new java.lang.NullPointerException("node is null");
     }
     setKeySelector(ks);
     this.node = node;
 }
コード例 #11
0
ファイル: DOMValidateContext.cs プロジェクト: minam365/JavApi
 /*
  * Creates a <code>DOMValidateContext</code> containing the specified key
  * and node. The validating key will be stored in a
  * {@link KeySelector#singletonKeySelector singleton KeySelector} that
  * is returned when the {@link #getKeySelector getKeySelector}
  * method is called.
  *
  * @param validatingKey the validating key
  * @param node the node
  * @throws NullPointerException if <code>validatingKey</code> or
  *    <code>node</code> is <code>null</code>
  */
 public DOMValidateContext(java.security.Key validatingKey, org.w3c.dom.Node node)
 {
     if (validatingKey == null)
     {
         throw new java.lang.NullPointerException("validatingKey is null");
     }
     if (node == null)
     {
         throw new java.lang.NullPointerException("node is null");
     }
     setKeySelector(KeySelector.singletonKeySelector(validatingKey));
     this.node = node;
 }
コード例 #12
0
 /**
  * Creates a <code>DOMSignContext</code> with the specified key selector
  * and parent node. The marshalled <code>XMLSignature</code> will be added
  * as the last child element of the specified parent node unless a next
  * sibling node is specified by invoking the
  * {@link #setNextSibling setNextSibling} method.
  *
  * @param ks the key selector
  * @param parent the parent node
  * @throws NullPointerException if <code>ks</code> or <code>parent</code>
  *    is <code>null</code>
  */
 public DOMSignContext(KeySelector ks, org.w3c.dom.Node parent)
 {
     if (ks == null)
     {
         throw new java.lang.NullPointerException("key selector cannot be null");
     }
     if (parent == null)
     {
         throw new java.lang.NullPointerException("parent cannot be null");
     }
     setKeySelector(ks);
     this.parent = parent;
 }
コード例 #13
0
        /// <summary>
        /// Return the result of FollowingSiblingAxis expression
        /// </summary>
        /// <param name="node">
        ///            is the type of node. </param>
        public override void iterate(NodeType node, ResultBuffer copyInto, Node limitNode)
        {
            // XXX check for attribute / namespace node... if so return
            // empty sequence

            Node iterNode = node.node_value();

            // get the children of the parent [siblings]
            do
            {
                iterNode = iterNode.NextSibling;
                if (iterNode != null)
                {
                    NodeType nodeType = NodeType.dom_to_xpath(iterNode, node.TypeModel);
                    if (nodeType != null)
                    {
                        copyInto.add(nodeType);
                    }
                }
            } while (iterNode != null);
        }
コード例 #14
0
ファイル: XNode.cs プロジェクト: squareinc/JSC-Cross-Compiler
        public void InternalFixTextNode(org.w3c.dom.Node n)
        {
            const int TEXT_NODE = 3;

            var nl = n.getChildNodes();

            for (int i = 0; i < nl.getLength(); i++)
            {
                var k = nl.item(i);

                var IsTextNode    = k.getNodeType() == TEXT_NODE;
                var IsContentNull = k.getNodeValue() == null;

                if (IsTextNode && IsContentNull)
                {
                    k.setNodeValue("");
                }
                else
                {
                    InternalFixTextNode(k);
                }
            }
        }
コード例 #15
0
        /// <summary>
        /// Get the ancestors of the context node.
        /// </summary>
        /// <param name="node">
        ///            is the type of node. </param>
        // XXX unify this with descendants axis ?
        public override void iterate(NodeType node, ResultBuffer copyInto, Node limitNode)
        {
            if (limitNode != null && limitNode.isSameNode(node.node_value()))
            {
                return;
            }

            int before = copyInto.size();

            // get the parent
            base.iterate(node, copyInto, limitNode);

            // no parent
            if (copyInto.size() == before)
            {
                return;
            }

            NodeType parent = (NodeType)copyInto.item(before);

            // get ancestors of parent
            iterate(parent, copyInto, limitNode);
        }
コード例 #16
0
 public void surroundContents(Node newParent)
 {
 }
コード例 #17
0
 public void selectNodeContents(Node refNode)
 {
 }
コード例 #18
0
 public void setEndAfter(Node refNode)
 {
 }
コード例 #19
0
 public void setStartAfter(Node refNode)
 {
 }
コード例 #20
0
 public void setEnd(Node refNode, int offset)
 {
 }
コード例 #21
0
 public short canAppendChild(Node newChild)
 {
     return(default(short));
 }
コード例 #22
0
ファイル: LSSerializer.cs プロジェクト: fjgandrade/sharpkit
	public string writeToString(Node nodeArg) { return default(string); }
コード例 #23
0
ファイル: LSParserFilter.cs プロジェクト: fjgandrade/sharpkit
	public short acceptNode(Node nodeArg) { return default(short); }
コード例 #24
0
ファイル: XPathEvaluator.cs プロジェクト: fjgandrade/sharpkit
	public object evaluate(string expression, Node contextNode, XPathNSResolver resolver, short type, object result) { return default(object); }
コード例 #25
0
ファイル: XPathEvaluator.cs プロジェクト: fjgandrade/sharpkit
	public XPathNSResolver createNSResolver(Node nodeResolver) { return default(XPathNSResolver); }
コード例 #26
0
ファイル: Console.cs プロジェクト: fjgandrade/sharpkit
	public void dirxml(Node node) {}
コード例 #27
0
	public void initMutationNameEvent(string typeArg, bool canBubbleArg, bool cancelableArg, Node relatedNodeArg, string prevNamespaceURIArg, string prevNodeNameArg) {}
コード例 #28
0
 public bool writeToURI(Node nodeArg, string uri)
 {
     return(default(bool));
 }
コード例 #29
0
 /**
  * Creates a <code>DOMValidateContext</code> containing the specified key
  * and node. The validating key will be stored in a
  * {@link KeySelector#singletonKeySelector singleton KeySelector} that
  * is returned when the {@link #getKeySelector getKeySelector}
  * method is called.
  *
  * @param validatingKey the validating key
  * @param node the node
  * @throws NullPointerException if <code>validatingKey</code> or
  *    <code>node</code> is <code>null</code>
  */
 public DOMValidateContext(java.security.Key validatingKey, org.w3c.dom.Node node)
 {
     if (validatingKey == null) {
     throw new java.lang.NullPointerException("validatingKey is null");
     }
     if (node == null) {
     throw new java.lang.NullPointerException("node is null");
     }
     setKeySelector(KeySelector.singletonKeySelector(validatingKey));
     this.node = node;
 }
コード例 #30
0
ファイル: LSParser.cs プロジェクト: fjgandrade/sharpkit
	public Node parseWithContext(LSInput input, Node contextArg, short action) { return default(Node); }
コード例 #31
0
 public short canReplaceChild(Node newChild, Node oldChild)
 {
     return(default(short));
 }
コード例 #32
0
ファイル: DOMSignContext.cs プロジェクト: sailesh341/JavApi
 /**
  * Sets the next sibling node.
  *
  * @param nextSibling the next sibling node. The marshalled
  *    <code>XMLSignature</code> will be inserted immediately before this
  *    node. Specify <code>null</code> to remove the current setting.
  * @see #getNextSibling
  */
 public void setNextSibling(org.w3c.dom.Node nextSibling)
 {
     this.nextSibling = nextSibling;
 }
コード例 #33
0
 public void setStart(Node refNode, int offset)
 {
 }
コード例 #34
0
ファイル: DOMSignContext.cs プロジェクト: sailesh341/JavApi
 /**
  * Creates a <code>DOMSignContext</code> with the specified key selector,
  * parent and next sibling nodes. The marshalled <code>XMLSignature</code>
  * will be inserted as a child element of the specified parent node and
  * immediately before the specified next sibling node.
  *
  * @param ks the key selector
  * @param parent the parent node
  * @param nextSibling the next sibling node
  * @throws NullPointerException if <code>ks</code>, <code>parent</code> or
  *    <code>nextSibling</code> is <code>null</code>
  */
 public DOMSignContext(KeySelector ks, org.w3c.dom.Node parent, org.w3c.dom.Node nextSibling)
 {
     if (ks == null) {
     throw new java.lang.NullPointerException("key selector cannot be null");
     }
     if (parent == null) {
     throw new java.lang.NullPointerException("parent cannot be null");
     }
     if (nextSibling == null) {
     throw new java.lang.NullPointerException("nextSibling cannot be null");
     }
     setKeySelector(ks);
     this.parent = parent;
     this.nextSibling = nextSibling;
 }
コード例 #35
0
 public void setStartBefore(Node refNode)
 {
 }
コード例 #36
0
ファイル: MutationEvent.cs プロジェクト: fjgandrade/sharpkit
	public void initMutationEvent(string typeArg, bool canBubbleArg, bool cancelableArg, Node relatedNodeArg, string prevValueArg, string newValueArg, string attrNameArg, short attrChangeArg) {}
コード例 #37
0
 public void setEndBefore(Node refNode)
 {
 }
コード例 #38
0
ファイル: DOMSignContext.cs プロジェクト: sailesh341/JavApi
 /**
  * Sets the parent node.
  *
  * @param parent the parent node. The marshalled <code>XMLSignature</code>
  *    will be added as a child element of this node.
  * @throws NullPointerException if <code>parent</code> is <code>null</code>
  * @see #getParent
  */
 public void setParent(org.w3c.dom.Node parent)
 {
     if (parent == null) {
     throw new java.lang.NullPointerException("parent is null");
     }
     this.parent = parent;
 }
コード例 #39
0
 public void selectNode(Node refNode)
 {
 }
コード例 #40
0
	public TreeWalker createTreeWalker(Node root, int whatToShow, NodeFilter filter, bool entityReferenceExpansion) { return default(TreeWalker); }
コード例 #41
0
 public void insertNode(Node newNode)
 {
 }
コード例 #42
0
ファイル: LSSerializer.cs プロジェクト: fjgandrade/sharpkit
	public bool write(Node nodeArg, LSOutput destination) { return default(bool); }
コード例 #43
0
 public bool write(Node nodeArg, LSOutput destination)
 {
     return(default(bool));
 }
コード例 #44
0
ファイル: LSSerializer.cs プロジェクト: fjgandrade/sharpkit
	public bool writeToURI(Node nodeArg, string uri) { return default(bool); }
コード例 #45
0
 public string writeToString(Node nodeArg)
 {
     return(default(string));
 }
コード例 #46
0
 /**
  * Sets the node.
  *
  * @param node the node
  * @throws NullPointerException if <code>node</code> is <code>null</code>
  * @see #getNode
  */
 public void setNode(org.w3c.dom.Node node)
 {
     if (node == null) {
     throw new java.lang.NullPointerException();
     }
     this.node = node;
 }
コード例 #47
0
ファイル: ElementEditVAL.cs プロジェクト: fjgandrade/sharpkit
	public short canRemoveAttributeNode(Node attrNode) { return default(short); }
コード例 #48
0
	// DocumentTraversal
	public NodeIterator createNodeIterator(Node root, int whatToShow, NodeFilter filter, bool entityReferenceExpansion) { return default(NodeIterator); }