de.hilling.lang.metamodel.AttributeImplementation Maven / Gradle / Ivy
package de.hilling.lang.metamodel;
/**
* Stub implementation for {@link Attribute}.
*
* @param Declaring class of the attribute.
* @param Type of the attribute.
*/
public abstract class AttributeImplementation implements Attribute {
protected final String name;
private final Class declaringType;
private final Class javaType;
protected AttributeImplementation(String name, Class declaringType, Class javaType) {
this.javaType = javaType;
this.name = name;
this.declaringType = declaringType;
}
public final String getName() {
return name;
}
public final Class getDeclaringType() {
return declaringType;
}
public final Class getJavaType() {
return javaType;
}
}