All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.hilling.lang.metamodel.AttributeImplementation Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy