Advanced Customization > Services and Infrastructure Customization > Enumerated Types > Creating an EnumeratedType Subclass
  
Creating an EnumeratedType Subclass
To create an EnumeratedType subclass, perform the following steps:
1. Create a java class annotated with @GenAsEnumeratedType.For example (src/example/MySize.java):
package example.MySize;

import com.ptc.windchill.annotations.metadata.GenAsEnumeratedType;

@GenAsEnumeratedType
public class MySize extends _ MySize {
static final long serialVersionUID = 1;
}
2. Optionally, code any desired programmatic constants in MySize.java. For example:
public static final State SMALL = toMySize("sm");
3. . Create its companion resource info file. For MySize, it will be named MySizeRB.rbInfo. See details below.