ENTITY year_month SUBTYPE OF (date); month_component : month_in_year_number; END_ENTITY; -- year_month |
Entity data types and their attributesdateyear_component: year_number; year_month month_component: month_in_year_number; |
Global rules for this entity data type- |
public interface EYear_month extends EDatemonth_component (explicit attribute)boolean testMonth_component(EYear_month type)int getMonth_component(EYear_month type) void setMonth_component(EYear_month type, int value) void unsetMonth_component(EYear_month type) |
public class CYear_month implements EYear_monthstatic EAttribute attributeMonth_component(EYear_month type) |
public class AYear_month extends AEntitypublic EYear_month getByIndex(int index)public EYear_month getCurrentMember(SdaiIterator it) |