Ranides Atterwim 10 سال پیش
والد
کامیت
cb3703e7bc

+ 0 - 1
assira1/src/main/java/net/ranides/assira/xml/NodeCollection.java

@@ -24,7 +24,6 @@ import org.w3c.dom.NodeList;
 /**
  *
  * @author ranides
- * @todo (migration) assira (xml)
  */
 @SuppressWarnings("PMD.TooManyDifferentMethods")
 public abstract class NodeCollection implements List<Node> {

+ 0 - 1
assira1/src/main/java/net/ranides/assira/xml/NodeCollectionAdapter.java

@@ -14,7 +14,6 @@ import org.w3c.dom.NodeList;
 /**
  *
  * @author ranides
- * @todo (migration) assira (xml)
  */
 public interface NodeCollectionAdapter {
 

+ 90 - 91
assira1/src/main/java/net/ranides/assira/xml/NodeType.java

@@ -1,91 +1,90 @@
-/*
- * @author Ranides Atterwim <ranides@gmail.com>
- * @copyright Ranides Atterwim
- * @license WTFPL
- * @url http://ranides.net/projects/assira
- */
-package net.ranides.assira.xml;
-
-import java.util.Map;
-import net.ranides.assira.enums.EnumInt;
-import net.ranides.assira.enums.EnumUtils;
-import org.w3c.dom.Node;
-
-/**
- *
- * @author ranides
- * @todo (migration) assira (xml)
- */
-public enum NodeType implements EnumInt {
-    
-    /** The node is an <code>Element</code>. */
-    ELEMENT(1),
-    
-    /** The node is an <code>Attr</code>. */
-    ATTRIBUTE(2),
-    
-    /** The node is a <code>Text</code> node. */
-    TEXT(3),
-    
-    /** The node is a <code>CDATASection</code>. */
-    CDATA_SECTION(4),
-    
-    /** The node is an <code>EntityReference</code>. */
-    ENTITY_REFERENCE(5),
-    
-    /** The node is an <code>Entity</code>. */
-    ENTITY(6),
-    
-    /** The node is a <code>ProcessingInstruction</code>.*/
-    PROCESSING_INSTRUCTION(7),
-    
-    /** The node is a <code>Comment</code>.*/
-    COMMENT(8),
-    
-    /** The node is a <code>Document</code>.*/
-    DOCUMENT(9),
-    
-    /** The node is a <code>DocumentType</code>.*/
-    DOCUMENT_TYPE(10),
-    
-    /** The node is a <code>DocumentFragment</code>.*/
-    DOCUMENT_FRAGMENT(11),
-    
-    /** The node is a <code>Notation</code>.*/
-    NOTATION(12)
-    
-    ;
-    
-    private static final Map<Integer, NodeType> MAP = EnumUtils.mapInt(NodeType.class);
-    
-    private final int value;
-
-    private NodeType(int value) {
-        this.value = value;
-    }
-
-    @Override
-    public int toEnumKey() {
-        return value;
-    }
-    
-    public boolean match(Node node) {
-        return match(node.getNodeType());
-    }
-    
-    public boolean match(int value) {
-        return this.value == value;
-    }
-    
-    public static NodeType valueOf(Node node) {
-        return valueOf(node.getNodeType());
-    }
-    
-    public static NodeType valueOf(int value) {
-        NodeType item = MAP.get(value);
-        if(null == item) {
-            throw new IllegalArgumentException("Unknown value: " + value);
-        }
-        return item;
-    }
-}
+/*
+ * @author Ranides Atterwim <ranides@gmail.com>
+ * @copyright Ranides Atterwim
+ * @license WTFPL
+ * @url http://ranides.net/projects/assira
+ */
+package net.ranides.assira.xml;
+
+import java.util.Map;
+import net.ranides.assira.enums.EnumInt;
+import net.ranides.assira.enums.EnumUtils;
+import org.w3c.dom.Node;
+
+/**
+ *
+ * @author ranides
+ */
+public enum NodeType implements EnumInt {
+    
+    /** The node is an <code>Element</code>. */
+    ELEMENT(1),
+    
+    /** The node is an <code>Attr</code>. */
+    ATTRIBUTE(2),
+    
+    /** The node is a <code>Text</code> node. */
+    TEXT(3),
+    
+    /** The node is a <code>CDATASection</code>. */
+    CDATA_SECTION(4),
+    
+    /** The node is an <code>EntityReference</code>. */
+    ENTITY_REFERENCE(5),
+    
+    /** The node is an <code>Entity</code>. */
+    ENTITY(6),
+    
+    /** The node is a <code>ProcessingInstruction</code>.*/
+    PROCESSING_INSTRUCTION(7),
+    
+    /** The node is a <code>Comment</code>.*/
+    COMMENT(8),
+    
+    /** The node is a <code>Document</code>.*/
+    DOCUMENT(9),
+    
+    /** The node is a <code>DocumentType</code>.*/
+    DOCUMENT_TYPE(10),
+    
+    /** The node is a <code>DocumentFragment</code>.*/
+    DOCUMENT_FRAGMENT(11),
+    
+    /** The node is a <code>Notation</code>.*/
+    NOTATION(12)
+    
+    ;
+    
+    private static final Map<Integer, NodeType> MAP = EnumUtils.mapInt(NodeType.class);
+    
+    private final int value;
+
+    private NodeType(int value) {
+        this.value = value;
+    }
+
+    @Override
+    public int toEnumKey() {
+        return value;
+    }
+    
+    public boolean match(Node node) {
+        return match(node.getNodeType());
+    }
+    
+    public boolean match(int value) {
+        return this.value == value;
+    }
+    
+    public static NodeType valueOf(Node node) {
+        return valueOf(node.getNodeType());
+    }
+    
+    public static NodeType valueOf(int value) {
+        NodeType item = MAP.get(value);
+        if(null == item) {
+            throw new IllegalArgumentException("Unknown value: " + value);
+        }
+        return item;
+    }
+}

+ 0 - 1
assira1/src/main/java/net/ranides/assira/xml/XMLQuery.java

@@ -21,7 +21,6 @@ import org.w3c.dom.NodeList;
 /**
  *
  * @author ranides
- * @todo (migration) assira (xml)
  */
 final public class XMLQuery {