@Override public boolean isProfileOf(Class<? extends IBaseDatatype> theType) { validateSealed(); if (myProfileOfType != null) { if (myProfileOfType.equals(theType)) { return true; } else if (myProfileOf instanceof IRuntimeDatatypeDefinition) { return ((IRuntimeDatatypeDefinition) myProfileOf).isProfileOf(theType); } } return false; }
@Override public boolean isProfileOf(Class<? extends IBaseDatatype> theType) { validateSealed(); if (myProfileOfType != null) { if (myProfileOfType.equals(theType)) { return true; } else if (myProfileOf instanceof IRuntimeDatatypeDefinition) { return ((IRuntimeDatatypeDefinition) myProfileOf).isProfileOf(theType); } } return false; }