protected void parseSchemaLocations(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> updateList, final int idx) throws XMLStreamException { final List<String> elements = reader.getListAttributeValue(idx); final List<String> values = new ArrayList<String>(); for (String element : elements) { if (!element.trim().isEmpty()) { values.add(element); } } if ((values.size() & 1) != 0) { throw invalidAttributeValue(reader, idx); } final Iterator<String> it = values.iterator(); while (it.hasNext()) { String key = it.next(); String val = it.next(); if (key.length() > 0 && val.length() > 0) { updateList.add(SchemaLocationAddHandler.getAddSchemaLocationOperation(address, key, val)); } } }
protected void parseSchemaLocations(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> updateList, final int idx) throws XMLStreamException { final List<String> elements = reader.getListAttributeValue(idx); final List<String> values = new ArrayList<String>(); for (String element : elements) { if (!element.trim().isEmpty()) { values.add(element); } } if ((values.size() & 1) != 0) { throw invalidAttributeValue(reader, idx); } final Iterator<String> it = values.iterator(); while (it.hasNext()) { String key = it.next(); String val = it.next(); if (key.length() > 0 && val.length() > 0) { updateList.add(SchemaLocationAddHandler.getAddSchemaLocationOperation(address, key, val)); } } }
protected void parseSchemaLocations(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> updateList, final int idx) throws XMLStreamException { final List<String> elements = reader.getListAttributeValue(idx); final List<String> values = new ArrayList<String>(); for (String element : elements) { if (!element.trim().isEmpty()) { values.add(element); } } if ((values.size() & 1) != 0) { throw invalidAttributeValue(reader, idx); } final Iterator<String> it = values.iterator(); while (it.hasNext()) { String key = it.next(); String val = it.next(); if (key.length() > 0 && val.length() > 0) { updateList.add(SchemaLocationAddHandler.getAddSchemaLocationOperation(address, key, val)); } } }
protected void parseSchemaLocations(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> updateList, final int idx) throws XMLStreamException { final List<String> elements = reader.getListAttributeValue(idx); final List<String> values = new ArrayList<String>(); for (String element : elements) { if (!element.trim().isEmpty()) { values.add(element); } } if ((values.size() & 1) != 0) { throw invalidAttributeValue(reader, idx); } final Iterator<String> it = values.iterator(); while (it.hasNext()) { String key = it.next(); String val = it.next(); if (key.length() > 0 && val.length() > 0) { updateList.add(SchemaLocationAddHandler.getAddSchemaLocationOperation(address, key, val)); } } }
private void addSchemaLocations(Map<String, ModelNode> map, ModelNode namespaces) { if (namespaces.isDefined()) { for (Property prop : namespaces.asPropertyList()) { map.put(prop.getName(), SchemaLocationAddHandler.getAddSchemaLocationOperation(EMPTY, prop.getName(), prop.getValue().asString())); } } }
private void addSchemaLocations(Map<String, ModelNode> map, ModelNode namespaces) { if (namespaces.isDefined()) { for (Property prop : namespaces.asPropertyList()) { map.put(prop.getName(), SchemaLocationAddHandler.getAddSchemaLocationOperation(EMPTY, prop.getName(), prop.getValue().asString())); } } }
private void addSchemaLocations(Map<String, ModelNode> map, ModelNode namespaces) { if (namespaces.isDefined()) { for (Property prop : namespaces.asPropertyList()) { map.put(prop.getName(), SchemaLocationAddHandler.getAddSchemaLocationOperation(EMPTY, prop.getName(), prop.getValue().asString())); } } }