/[svn]/jsampler/trunk/src/org/jsampler/DOMUtils.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/DOMUtils.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2287 by iliev, Mon Apr 2 21:18:31 2007 UTC revision 2288 by iliev, Wed Nov 23 21:19:44 2011 UTC
# Line 131  public class DOMUtils { Line 131  public class DOMUtils {
131                          node.getFirstChild().getNodeType() != Node.TEXT_NODE                          node.getFirstChild().getNodeType() != Node.TEXT_NODE
132                  ) { throw new IllegalArgumentException(node.getNodeName() + ": Not a text node"); }                  ) { throw new IllegalArgumentException(node.getNodeName() + ": Not a text node"); }
133          }          }
134            
135            /**
136             * Validates a text attribute.
137             * @throws IllegalArgumentException If the node is not a text attribute.
138             */
139            public static void
140            validateTextAttr(Node node) throws IllegalArgumentException {
141                    if (node.getNodeType() != Node.ATTRIBUTE_NODE)
142                    { throw new IllegalArgumentException(node.getNodeName() + ": Not an attribute"); }
143            }
144  }  }

Legend:
Removed from v.2287  
changed lines
  Added in v.2288

  ViewVC Help
Powered by ViewVC