odata_renderer/src/main/java/com/sdl/odata/renderer/metadata/MetadataDocumentEnumTypeWriter.java
public void write(EnumType type) throws XMLStreamException {

        LOG.debug("Writing type {} of type {}", type.getName(), type.getMetaType());

        xmlWriter.writeStartElement(ENUM_TYPE);
        xmlWriter.writeAttribute(NAME, type.getName());
        for (EnumMember member : type.getMembers()) {
            xmlWriter.writeStartElement(ENUM_MEMBER);
            xmlWriter.writeAttribute(NAME, member.getName());
            xmlWriter.writeEndElement();
        }
        xmlWriter.writeEndElement();
    }
/**
     * Write an {@code <EnumType>} element for the given {@code EnumType}.
     *
     * @param type The given complex type. It can not be {@code null}.
     * @throws javax.xml.stream.XMLStreamException If unable to write to strem
     */
Write an   element for the given  EnumType.
@param type The given complex type. It can not be  null.
@throws javax.xml.stream.XMLStreamException If unable to write to strem
Write an element for the given EnumType . @param type The given complex type . It can not be null . @throws javax . xml . stream . XMLStreamException If unable to write to strem
public void write(EnumType type) throws XMLStreamException {
        LOG.debug("Writing type {} of type {}", type.getName(), type.getMetaType());
        xmlWriter.writeStartElement(ENUM_TYPE);
        xmlWriter.writeAttribute(NAME, type.getName());
        for (EnumMember member : type.getMembers()) {
            xmlWriter.writeStartElement(ENUM_MEMBER);
            xmlWriter.writeAttribute(NAME, member.getName());
            xmlWriter.writeEndElement();
        }
        xmlWriter.writeEndElement();
    }
public void write ( EnumType type ) throws XMLStreamException { LOG . debug ( "Writing type {} of type {}" , type . getName ( ) , type . getMetaType ( ) ) ; xmlWriter . writeStartElement ( ENUM_TYPE ) ; xmlWriter . writeAttribute ( NAME , type . getName ( ) ) ; for ( EnumMember member : type . getMembers ( ) ) { xmlWriter . writeStartElement ( ENUM_MEMBER ) ; xmlWriter . writeAttribute ( NAME , member . getName ( ) ) ; xmlWriter . writeEndElement ( ) ; } xmlWriter . writeEndElement ( ) ; }
Write an {@code <EnumType>} element for the given {@code EnumType}.
Write an { @code <EnumType > } element for the given { @code EnumType } .