test_class.file: opendse-model/src/test/java/net/sf/opendse/model/ElementTest.java
test_class.identifier: ElementTest
test_case.body: @Test
  	public void testGetAttribute() {
  		Element element = new Element("id");
  		String id = "attribute name";
  		element.setAttribute(id, 0);
  
  		Assert.assertEquals(0, (int) element.<Integer> getAttribute(id));
  		Assert.assertNull(element.getAttribute("other"));
  	}
test_case.class_method_signature: ElementTest.testGetAttribute()
test_case.full_signature: @Test public void testGetAttribute()
test_case.identifier: testGetAttribute
test_case.invocations: setAttribute assertEquals getAttribute assertNull getAttribute
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAttribute()
focal_class.declarator: TYPE = "TYPE"
focal_class.modifier: public static
focal_class.original_string: public static String TYPE = "TYPE";
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: attributes = new Attributes()
focal_class.modifier: protected final
focal_class.original_string: protected final Attributes attributes = new Attributes();
focal_class.type: Attributes
focal_class.var_name: attributes
focal_class.declarator: parent = null
focal_class.modifier: protected
focal_class.original_string: protected Element parent = null;
focal_class.type: Element
focal_class.var_name: parent
focal_class.declarator: id = null
focal_class.modifier: protected
focal_class.original_string: protected String id = null;
focal_class.type: String
focal_class.var_name: id
focal_class.file: opendse-model/src/main/java/net/sf/opendse/model/Element.java
focal_class.identifier: Element
focal_class.interfaces: implements IAttributes
focal_class.class_method_signature: Element.Element(String id)
focal_class.full_signature: public  Element(String id)
focal_class.identifier: Element
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.signature:  Element(String id)
focal_class.class_method_signature: Element.Element(Element parent)
focal_class.full_signature: public  Element(Element parent)
focal_class.identifier: Element
focal_class.modifiers: public
focal_class.parameters: (Element parent)
focal_class.signature:  Element(Element parent)
focal_class.class_method_signature: Element.getId()
focal_class.full_signature: public String getId()
focal_class.identifier: getId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: Element.getParent()
focal_class.full_signature: public Element getParent()
focal_class.identifier: getParent
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Element
focal_class.signature: Element getParent()
focal_class.class_method_signature: Element.setParent(Element element)
focal_class.full_signature: public void setParent(Element element)
focal_class.identifier: setParent
focal_class.modifiers: public
focal_class.parameters: (Element element)
focal_class.return: void
focal_class.signature: void setParent(Element element)
focal_class.class_method_signature: Element.getAttribute(String identifier)
focal_class.full_signature: @SuppressWarnings("unchecked") @Override public O getAttribute(String identifier)
focal_class.identifier: getAttribute
focal_class.modifiers: @SuppressWarnings("unchecked") @Override public
focal_class.parameters: (String identifier)
focal_class.return: O
focal_class.signature: O getAttribute(String identifier)
focal_class.class_method_signature: Element.isDefined(String identifier)
focal_class.full_signature: @Override public boolean isDefined(String identifier)
focal_class.identifier: isDefined
focal_class.modifiers: @Override public
focal_class.parameters: (String identifier)
focal_class.return: boolean
focal_class.signature: boolean isDefined(String identifier)
focal_class.class_method_signature: Element.getAttributes()
focal_class.full_signature: @Override public Attributes getAttributes()
focal_class.identifier: getAttributes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Attributes
focal_class.signature: Attributes getAttributes()
focal_class.class_method_signature: Element.getLocalAttributes()
focal_class.full_signature: public Attributes getLocalAttributes()
focal_class.identifier: getLocalAttributes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Attributes
focal_class.signature: Attributes getLocalAttributes()
focal_class.class_method_signature: Element.getLocalAttributeNames()
focal_class.full_signature: public Set<String> getLocalAttributeNames()
focal_class.identifier: getLocalAttributeNames
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Set<String>
focal_class.signature: Set<String> getLocalAttributeNames()
focal_class.class_method_signature: Element.setAttribute(String identifier, Object object)
focal_class.full_signature: @Override public void setAttribute(String identifier, Object object)
focal_class.identifier: setAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (String identifier, Object object)
focal_class.return: void
focal_class.signature: void setAttribute(String identifier, Object object)
focal_class.class_method_signature: Element.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Element.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: Element.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Element.getAttributeParameter(String identifier)
focal_class.full_signature: @Override public Parameter getAttributeParameter(String identifier)
focal_class.identifier: getAttributeParameter
focal_class.modifiers: @Override public
focal_class.parameters: (String identifier)
focal_class.return: Parameter
focal_class.signature: Parameter getAttributeParameter(String identifier)
focal_class.class_method_signature: Element.getAttributeNames()
focal_class.full_signature: @Override public Set<String> getAttributeNames()
focal_class.identifier: getAttributeNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<String>
focal_class.signature: Set<String> getAttributeNames()
focal_class.class_method_signature: Element.getType()
focal_class.full_signature: public String getType()
focal_class.identifier: getType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getType()
focal_class.class_method_signature: Element.setType(String type)
focal_class.full_signature: public void setType(String type)
focal_class.identifier: setType
focal_class.modifiers: public
focal_class.parameters: (String type)
focal_class.return: void
focal_class.signature: void setType(String type)
focal_method.body: @SuppressWarnings("unchecked")
  	@Override
  	public <O> O getAttribute(String identifier) {
  		if (attributes.getAttributes().containsKey(identifier)) {
  			return (O) attributes.getAttribute(identifier);
  		} else if (parent != null) {
  			return (O) parent.getAttribute(identifier);
  		} else {
  			return null;
  		}
  	}
focal_method.class_method_signature: Element.getAttribute(String identifier)
focal_method.full_signature: @SuppressWarnings("unchecked") @Override public O getAttribute(String identifier)
focal_method.identifier: getAttribute
focal_method.invocations: containsKey getAttributes getAttribute getAttribute
focal_method.modifiers: @SuppressWarnings("unchecked") @Override public
focal_method.parameters: (String identifier)
focal_method.return: O
focal_method.signature: O getAttribute(String identifier)