test_class.file: opendse-io/src/test/java/net/sf/opendse/io/SpecificationReaderTest.java
test_class.identifier: SpecificationReaderTest
test_case.body: @SuppressWarnings("unchecked")
  	@Test
  	public void attributeToHashSet() throws IllegalArgumentException, SecurityException, InstantiationException,
  			IllegalAccessException, InvocationTargetException, NoSuchMethodException, ClassNotFoundException {
  		nu.xom.Element eAttr = new nu.xom.Element("attribute", SpecificationWriter.NS);
  		eAttr.addAttribute(new nu.xom.Attribute("name", "test"));
  
  		String s1 = "10";
  		String s2 = "101";
  		Set<String> strings = new HashSet<String>();
  		strings.add(s1);
  		strings.add(s2);
  
  		nu.xom.Element eAttr1 = new nu.xom.Element("attribute", SpecificationWriter.NS);
  		eAttr1.addAttribute(new nu.xom.Attribute("name", "test1"));
  		eAttr1.addAttribute(new nu.xom.Attribute("type", getType(String.class)));
  		eAttr1.appendChild(s1);
  
  		nu.xom.Element eAttr2 = new nu.xom.Element("attribute", SpecificationWriter.NS);
  		eAttr2.addAttribute(new nu.xom.Attribute("name", "test2"));
  		eAttr2.addAttribute(new nu.xom.Attribute("type", getType(String.class)));
  		eAttr2.appendChild(s2);
  
  		eAttr.addAttribute(new nu.xom.Attribute("type", getType(HashSet.class)));
  		eAttr.appendChild(eAttr1);
  		eAttr.appendChild(eAttr2);
  		System.out.println(eAttr.toXML());
  
  		SpecificationReader reader = new SpecificationReader();
  		Set<String> strings2 = (Set<String>) reader.toAttribute(eAttr);
  		Assert.assertEquals(strings, strings2);
  	}
test_case.class_method_signature: SpecificationReaderTest.attributeToHashSet()
test_case.full_signature: @SuppressWarnings("unchecked") @Test public void attributeToHashSet()
test_case.identifier: attributeToHashSet
test_case.invocations: addAttribute add add addAttribute addAttribute getType appendChild addAttribute addAttribute getType appendChild addAttribute getType appendChild appendChild println toXML toAttribute assertEquals
test_case.modifiers: @SuppressWarnings("unchecked") @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void attributeToHashSet()
focal_class.declarator: knownElements = new HashMap<String, Element>()
focal_class.modifier: protected
focal_class.original_string: protected Map<String, Element> knownElements = new HashMap<String, Element>();
focal_class.type: Map<String, Element>
focal_class.var_name: knownElements
focal_class.file: opendse-io/src/main/java/net/sf/opendse/io/SpecificationReader.java
focal_class.identifier: SpecificationReader
focal_class.class_method_signature: SpecificationReader.read(String filename)
focal_class.full_signature: public Specification read(String filename)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (String filename)
focal_class.return: Specification
focal_class.signature: Specification read(String filename)
focal_class.class_method_signature: SpecificationReader.read(File file)
focal_class.full_signature: public Specification read(File file)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.return: Specification
focal_class.signature: Specification read(File file)
focal_class.class_method_signature: SpecificationReader.read(InputStream in)
focal_class.full_signature: public Specification read(InputStream in)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (InputStream in)
focal_class.return: Specification
focal_class.signature: Specification read(InputStream in)
focal_class.class_method_signature: SpecificationReader.toSpecification(nu.xom.Element eSpecification)
focal_class.full_signature: public Specification toSpecification(nu.xom.Element eSpecification)
focal_class.identifier: toSpecification
focal_class.modifiers: public
focal_class.parameters: (nu.xom.Element eSpecification)
focal_class.return: Specification
focal_class.signature: Specification toSpecification(nu.xom.Element eSpecification)
focal_class.class_method_signature: SpecificationReader.toRoutings(nu.xom.Element eRoutings,
  			Architecture<Resource, Link> architecture, Application<Task, Dependency> application)
focal_class.full_signature: protected Routings<Task, Resource, Link> toRoutings(nu.xom.Element eRoutings,
  			Architecture<Resource, Link> architecture, Application<Task, Dependency> application)
focal_class.identifier: toRoutings
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eRoutings,
  			Architecture<Resource, Link> architecture, Application<Task, Dependency> application)
focal_class.return: Routings<Task, Resource, Link>
focal_class.signature: Routings<Task, Resource, Link> toRoutings(nu.xom.Element eRoutings,
  			Architecture<Resource, Link> architecture, Application<Task, Dependency> application)
focal_class.class_method_signature: SpecificationReader.toRouting(nu.xom.Element eRouting, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.full_signature: protected Architecture<Resource, Link> toRouting(nu.xom.Element eRouting, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.identifier: toRouting
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eRouting, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.return: Architecture<Resource, Link>
focal_class.signature: Architecture<Resource, Link> toRouting(nu.xom.Element eRouting, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.class_method_signature: SpecificationReader.toMappings(nu.xom.Element eMappings, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.full_signature: protected Mappings<Task, Resource> toMappings(nu.xom.Element eMappings, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.identifier: toMappings
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eMappings, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.return: Mappings<Task, Resource>
focal_class.signature: Mappings<Task, Resource> toMappings(nu.xom.Element eMappings, Architecture<Resource, Link> architecture,
  			Application<Task, Dependency> application)
focal_class.class_method_signature: SpecificationReader.toApplication(nu.xom.Element eApplication)
focal_class.full_signature: protected Application<Task, Dependency> toApplication(nu.xom.Element eApplication)
focal_class.identifier: toApplication
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eApplication)
focal_class.return: Application<Task, Dependency>
focal_class.signature: Application<Task, Dependency> toApplication(nu.xom.Element eApplication)
focal_class.class_method_signature: SpecificationReader.parseDependency(nu.xom.Element eDependency, Application<Task, Dependency> application)
focal_class.full_signature: protected void parseDependency(nu.xom.Element eDependency, Application<Task, Dependency> application)
focal_class.identifier: parseDependency
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eDependency, Application<Task, Dependency> application)
focal_class.return: void
focal_class.signature: void parseDependency(nu.xom.Element eDependency, Application<Task, Dependency> application)
focal_class.class_method_signature: SpecificationReader.toArchitecture(nu.xom.Element eArch)
focal_class.full_signature: protected Architecture<Resource, Link> toArchitecture(nu.xom.Element eArch)
focal_class.identifier: toArchitecture
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eArch)
focal_class.return: Architecture<Resource, Link>
focal_class.signature: Architecture<Resource, Link> toArchitecture(nu.xom.Element eArch)
focal_class.class_method_signature: SpecificationReader.parseLink(nu.xom.Element eLink, Architecture<Resource, Link> architecture)
focal_class.full_signature: protected void parseLink(nu.xom.Element eLink, Architecture<Resource, Link> architecture)
focal_class.identifier: parseLink
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eLink, Architecture<Resource, Link> architecture)
focal_class.return: void
focal_class.signature: void parseLink(nu.xom.Element eLink, Architecture<Resource, Link> architecture)
focal_class.class_method_signature: SpecificationReader.getClass(nu.xom.Element eElement)
focal_class.full_signature: @SuppressWarnings("unchecked") protected Class<C> getClass(nu.xom.Element eElement)
focal_class.identifier: getClass
focal_class.modifiers: @SuppressWarnings("unchecked") protected
focal_class.parameters: (nu.xom.Element eElement)
focal_class.return: Class<C>
focal_class.signature: Class<C> getClass(nu.xom.Element eElement)
focal_class.class_method_signature: SpecificationReader.getClass(String name)
focal_class.full_signature: protected Class<?> getClass(String name)
focal_class.identifier: getClass
focal_class.modifiers: protected
focal_class.parameters: (String name)
focal_class.return: Class<?>
focal_class.signature: Class<?> getClass(String name)
focal_class.class_method_signature: SpecificationReader.toNode(nu.xom.Element eNode, N parent)
focal_class.full_signature: @SuppressWarnings("unchecked") protected N toNode(nu.xom.Element eNode, N parent)
focal_class.identifier: toNode
focal_class.modifiers: @SuppressWarnings("unchecked") protected
focal_class.parameters: (nu.xom.Element eNode, N parent)
focal_class.return: N
focal_class.signature: N toNode(nu.xom.Element eNode, N parent)
focal_class.class_method_signature: SpecificationReader.toEdge(nu.xom.Element eEdge, E parent)
focal_class.full_signature: protected E toEdge(nu.xom.Element eEdge, E parent)
focal_class.identifier: toEdge
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eEdge, E parent)
focal_class.return: E
focal_class.signature: E toEdge(nu.xom.Element eEdge, E parent)
focal_class.class_method_signature: SpecificationReader.toMapping(nu.xom.Element eMapping, Task source, Resource target)
focal_class.full_signature: protected M toMapping(nu.xom.Element eMapping, Task source, Resource target)
focal_class.identifier: toMapping
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eMapping, Task source, Resource target)
focal_class.return: M
focal_class.signature: M toMapping(nu.xom.Element eMapping, Task source, Resource target)
focal_class.class_method_signature: SpecificationReader.toAttributes(nu.xom.Element eAttributes)
focal_class.full_signature: protected Attributes toAttributes(nu.xom.Element eAttributes)
focal_class.identifier: toAttributes
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eAttributes)
focal_class.return: Attributes
focal_class.signature: Attributes toAttributes(nu.xom.Element eAttributes)
focal_class.class_method_signature: SpecificationReader.toAttribute(nu.xom.Element eAttribute)
focal_class.full_signature: protected Object toAttribute(nu.xom.Element eAttribute)
focal_class.identifier: toAttribute
focal_class.modifiers: protected
focal_class.parameters: (nu.xom.Element eAttribute)
focal_class.return: Object
focal_class.signature: Object toAttribute(nu.xom.Element eAttribute)
focal_class.class_method_signature: SpecificationReader.toAttributeCollection(nu.xom.Element eAttribute, Class<?> clazz)
focal_class.full_signature: @SuppressWarnings({ "rawtypes", "unchecked" }) protected Object toAttributeCollection(nu.xom.Element eAttribute, Class<?> clazz)
focal_class.identifier: toAttributeCollection
focal_class.modifiers: @SuppressWarnings({ "rawtypes", "unchecked" }) protected
focal_class.parameters: (nu.xom.Element eAttribute, Class<?> clazz)
focal_class.return: Object
focal_class.signature: Object toAttributeCollection(nu.xom.Element eAttribute, Class<?> clazz)
focal_class.class_method_signature: SpecificationReader.toAttributeObject(String value, Class<?> clazz)
focal_class.full_signature: protected Object toAttributeObject(String value, Class<?> clazz)
focal_class.identifier: toAttributeObject
focal_class.modifiers: protected
focal_class.parameters: (String value, Class<?> clazz)
focal_class.return: Object
focal_class.signature: Object toAttributeObject(String value, Class<?> clazz)
focal_class.class_method_signature: SpecificationReader.getRange(String value)
focal_class.full_signature: protected ParameterRange getRange(String value)
focal_class.identifier: getRange
focal_class.modifiers: protected
focal_class.parameters: (String value)
focal_class.return: ParameterRange
focal_class.signature: ParameterRange getRange(String value)
focal_class.class_method_signature: SpecificationReader.getRangeInt(String value)
focal_class.full_signature: protected ParameterRangeDiscrete getRangeInt(String value)
focal_class.identifier: getRangeInt
focal_class.modifiers: protected
focal_class.parameters: (String value)
focal_class.return: ParameterRangeDiscrete
focal_class.signature: ParameterRangeDiscrete getRangeInt(String value)
focal_class.class_method_signature: SpecificationReader.getSelectRefList(String type, String value)
focal_class.full_signature: protected ParameterSelect getSelectRefList(String type, String value)
focal_class.identifier: getSelectRefList
focal_class.modifiers: protected
focal_class.parameters: (String type, String value)
focal_class.return: ParameterSelect
focal_class.signature: ParameterSelect getSelectRefList(String type, String value)
focal_class.class_method_signature: SpecificationReader.getUniqueID(String value)
focal_class.full_signature: protected ParameterUniqueID getUniqueID(String value)
focal_class.identifier: getUniqueID
focal_class.modifiers: protected
focal_class.parameters: (String value)
focal_class.return: ParameterUniqueID
focal_class.signature: ParameterUniqueID getUniqueID(String value)
focal_method.body: protected Object toAttribute(nu.xom.Element eAttribute)
  			throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException,
  			InvocationTargetException, NoSuchMethodException, ClassNotFoundException {
  		String parameter = eAttribute.getAttributeValue("parameter");
  		String type = eAttribute.getAttributeValue("type");
  		String value = eAttribute.getValue();
  
  		if (type == null) {
  			throw new IllegalArgumentException("no type given for attribute " + eAttribute);
  		}
  		if (parameter != null) {
  
  			if (parameter.equals("RANGE")) {
  				return getRange(value);
  			} else if (parameter.equals("DISCRETERANGE")) {
  				return getRangeInt(value);
  			} else if (parameter.equals("SELECT")) {
  				return getSelectRefList(type, value);
  			} else if (parameter.equals("UID")) {
  				return getUniqueID(value);
  			} else {
  				throw new IllegalArgumentException("Unknown parameter type: " + parameter);
  			}
  		} else {
  			Class<?> clazz = null;
  			try {
  				clazz = getClass(type);
  			} catch (ClassNotFoundException e) {
  				System.err.println("Class " + type + " not found. Ignoring attribute value " + value);
  				return null;
  			}
  			if (Collection.class.isAssignableFrom(clazz)) {
  				return toAttributeCollection(eAttribute, clazz);
  			} else {
  				return toAttributeObject(value, clazz);
  			}
  		}
  	}
focal_method.class_method_signature: SpecificationReader.toAttribute(nu.xom.Element eAttribute)
focal_method.full_signature: protected Object toAttribute(nu.xom.Element eAttribute)
focal_method.identifier: toAttribute
focal_method.invocations: getAttributeValue getAttributeValue getValue equals getRange equals getRangeInt equals getSelectRefList equals getUniqueID getClass println isAssignableFrom toAttributeCollection toAttributeObject
focal_method.modifiers: protected
focal_method.parameters: (nu.xom.Element eAttribute)
focal_method.return: Object
focal_method.signature: Object toAttribute(nu.xom.Element eAttribute)