public static class [[#variable14723320]]extends [[#variable14723060]]{
protected EDataType eDataType;
public [[#variable14723320]](EDataType eDataType, Object defaultValue, Object intrinsicDefaultValue, EStructuralFeature feature) {
super(defaultValue, intrinsicDefaultValue, feature);
this.eDataType = eDataType;
}
@Override protected void validate(Object object) {
if ( !eDataType.isInstance(object)) {
throw new ClassCastException("The value of type \'" + object.getClass() + "\' must be of type \'" + eDataType + "\'");
}
}
}
public static class [[#variable14722aa0]]extends [[#variable14723060]]{
protected Class<? > dataClass;
public [[#variable14722aa0]](Class<? > dataClass, Object defaultValue, Object intrinsicDefaultValue, EStructuralFeature feature) {
super(defaultValue, intrinsicDefaultValue, feature);
this.dataClass = dataClass;
}
@Override protected void validate(Object object) {
if ( !dataClass.isInstance(object)) {
throw new ClassCastException("The value of type \'" + object.getClass() + "\' must be of type \'" + dataClass + "\'");
}
}
}
|