class Element implements IAttributes {

	@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;
		}
	}

	public  Element(String id);
	public  Element(Element parent);

}