Return Enumerated Type Pattern
Similarly to the Return Wrapped Object Pattern, this one involves reading the EA value for an enumerated attribute value and returning a corresponding object.
The code stored by the native attribute ObjectType is decoded by the ObjectType enumerated type, and the enumerated value object is returned.
get objectType() { return ObjectType.fromCode( this.wrappedObject.ObjectType ); }
The code stored by the native attribute ObjectType is decoded by the ObjectType enumerated type, and the enumerated value object is returned.
Comments
Post a Comment