((EClassifier)type).setInstanceClassName(javaClassName);
}
public static Property createProperty(Type containingType, String name, Type propertyType)
{
EStructuralFeature eStructuralFeature = propertyType.isDataType() ? (EStructuralFeature)SDOFactory.eINSTANCE.createAttribute() : (EStructuralFeature)SDOFactory.eINSTANCE.createReference();
eStructuralFeature.setName(name);
eStructuralFeature.setEType((EClassifier)propertyType);
if (containingType.getName() == null)
{
ExtendedMetaData.INSTANCE.setFeatureKind(eStructuralFeature, ExtendedMetaData.ELEMENT_FEATURE);
}
((EClass)containingType).getEStructuralFeatures().add(eStructuralFeature);
if (containingType.isSequenced()) {
eStructuralFeature.setDerived(true);
eStructuralFeature.setTransient(true);
eStructuralFeature.setVolatile(true);
}
return (Property)eStructuralFeature;
}