Lines Matching refs:Attributes
30 import org.xml.sax.Attributes;
245 public void startElement(String uri, String localName, String qName, Attributes attr)
278 private void addImportCommand(Attributes attributes) throws SAXException {
279 String packageName = getRequiredAttribute(attributes, "package");
283 private void addLibraryCommand(Attributes attributes) throws SAXException {
284 String libraryName = getRequiredAttribute(attributes, "name");
288 private void addConnectCommand(Attributes attributes) {
295 String sourceTag = attributes.getValue("source");
308 sourceFilterName = attributes.getValue("sourceFilter");
309 sourcePortName = attributes.getValue("sourcePort");
312 String targetTag = attributes.getValue("target");
325 targetFilterName = attributes.getValue("targetFilter");
326 targetPortName = attributes.getValue("targetPort");
329 String sourceSlotName = attributes.getValue("sourceSlot");
330 String targetSlotName = attributes.getValue("targetSlot");
354 private void addVarCommand(Attributes attributes) throws SAXException {
355 String varName = getRequiredAttribute(attributes, "name");
356 Object varValue = getAssignmentValue(attributes);
371 private void beginFilter(Attributes attributes) throws SAXException {
372 String className = getRequiredAttribute(attributes, "class");
373 mCurFilterName = getRequiredAttribute(attributes, "name");
381 private void addFilterInput(Attributes attributes) throws SAXException {
389 String inputName = getRequiredAttribute(attributes, "name");
390 Object inputValue = getAssignmentValue(attributes);
409 private static Object getAssignmentValue(Attributes attributes) {
411 if ((strValue = attributes.getValue("stringValue")) != null) {
413 } else if ((strValue = attributes.getValue("booleanValue")) != null) {
415 } else if ((strValue = attributes.getValue("intValue")) != null) {
417 } else if ((strValue = attributes.getValue("floatValue")) != null) {
419 } else if ((strValue = attributes.getValue("floatsValue")) != null) {
426 } else if ((strValue = attributes.getValue("varValue")) != null) {
433 private static String getRequiredAttribute(Attributes attributes, String name)
435 String result = attributes.getValue(name);