Lines Matching refs:node

50     protected static void fatal(Node node, String reason)
52 throw new IIOInvalidTreeException(reason, node);
56 protected static String getStringAttribute(Node node, String name,
61 Node attr = node.getAttributes().getNamedItem(name);
66 fatal(node, "Required attribute " + name + " not present!");
73 fatal(node,
74 "Null value for "+node.getNodeName()+
86 fatal(node,
87 "Bad value for "+node.getNodeName()+
97 protected static int getIntAttribute(Node node, String name,
101 String value = getStringAttribute(node, name, null, required, null);
110 fatal(node,
111 "Bad value for "+node.getNodeName()+
115 fatal(node,
116 "Bad value for "+node.getNodeName()+
123 protected static float getFloatAttribute(Node node, String name,
127 String value = getStringAttribute(node, name, null, required, null);
135 protected static int getIntAttribute(Node node, String name,
138 return getIntAttribute(node, name, -1, true, bounded, min, max);
142 protected static float getFloatAttribute(Node node, String name)
144 return getFloatAttribute(node, name, -1.0F, true);
148 protected static boolean getBooleanAttribute(Node node, String name,
152 Node attr = node.getAttributes().getNamedItem(name);
157 fatal(node, "Required attribute " + name + " not present!");
167 fatal(node, "Attribute " + name + " must be 'TRUE' or 'FALSE'!");
173 protected static boolean getBooleanAttribute(Node node, String name)
175 return getBooleanAttribute(node, name, false, true);
179 protected static int getEnumeratedAttribute(Node node,
185 Node attr = node.getAttributes().getNamedItem(name);
190 fatal(node, "Required attribute " + name + " not present!");
200 fatal(node, "Illegal value for attribute " + name + "!");
205 protected static int getEnumeratedAttribute(Node node,
209 return getEnumeratedAttribute(node, name, legalNames, -1, true);
213 protected static String getAttribute(Node node, String name,
216 Node attr = node.getAttributes().getNamedItem(name);
221 fatal(node, "Required attribute " + name + " not present!");
228 protected static String getAttribute(Node node, String name)
230 return getAttribute(node, name, null, true);