mil.dod.th.ose.jaxb.proto.converter/src/mil/dod/th/ose/jaxbprotoconverter/JaxbClassParser.java
private void handleEnum(final Class<?> jaxbClass, final XsdType xsdType)
    {
        final ProtoEnum protoEnum = getOrCreateEnum(jaxbClass, xsdType);

        final List<String> values = new ArrayList<>();
        for (final Object value : jaxbClass.getEnumConstants())
        {
            values.add(value.toString());
        }
        
        protoEnum.setValues(values);
        m_ProtoModel.getEnums().add(protoEnum);
        protoEnum.setProcessed(true);
    }
/**
     * Method that handles a JAXB class that is an enumeration.
     * 
     * @param jaxbClass
     *      JAXB enumeration class to be parsed.
     * @param xsdType
     *      XSD type that represents the JAXB enumeration class.
     */
Method that handles a JAXB class that is an enumeration.

@param jaxbClass
JAXB enumeration class to be parsed.
@param xsdType
XSD type that represents the JAXB enumeration class.
Method that handles a JAXB class that is an enumeration . @param jaxbClass JAXB enumeration class to be parsed . @param xsdType XSD type that represents the JAXB enumeration class .
private void handleEnum(final Class<?> jaxbClass, final XsdType xsdType)
    {
        final ProtoEnum protoEnum = getOrCreateEnum(jaxbClass, xsdType);
        final List<String> values = new ArrayList<>();
        for (final Object value : jaxbClass.getEnumConstants())
        {
            values.add(value.toString());
        }
        protoEnum.setValues(values);
        m_ProtoModel.getEnums().add(protoEnum);
        protoEnum.setProcessed(true);
    }
private void handleEnum ( final Class < ? > jaxbClass , final XsdType xsdType ) { final ProtoEnum protoEnum = getOrCreateEnum ( jaxbClass , xsdType ) ; final List < String > values = new ArrayList < > ( ) ; for ( final Object value : jaxbClass . getEnumConstants ( ) ) { values . add ( value . toString ( ) ) ; } protoEnum . setValues ( values ) ; m_ProtoModel . getEnums ( ) . add ( protoEnum ) ; protoEnum . setProcessed ( true ) ; }
Method that handles a JAXB class that is an enumeration.
Method that handles a JAXB class that is an enumeration .