odata_renderer/src/main/java/com/sdl/odata/renderer/metadata/MetadataDocumentEntitySetWriter.java
public void write(EntitySet entitySet) throws XMLStreamException {

        LOG.debug("Writing entity set {} of type {}", entitySet.getName(), entitySet.getTypeName());

        xmlWriter.writeStartElement(ENTITY_SET);
        xmlWriter.writeAttribute(NAME, entitySet.getName());
        xmlWriter.writeAttribute(ENTITY_TYPE, entitySet.getTypeName());
        for (NavigationPropertyBinding navPropertyBinding : entitySet.getNavigationPropertyBindings()) {
            xmlWriter.writeStartElement(NAVIGATION_PROPERTY_BINDING);
            xmlWriter.writeAttribute(PATH, navPropertyBinding.getPath());
            xmlWriter.writeAttribute(TARGET, navPropertyBinding.getTarget());
            xmlWriter.writeEndElement();
        }
        xmlWriter.writeEndElement();
    }
/**
     * Write an {@code <EntitySet>} element for a given {@code EntitySet}.
     *
     * @param entitySet The given {@code EntitySet}. It can not be {@code null}.
     * @throws javax.xml.stream.XMLStreamException If unable to write to stream
     */
Write an   element for a given  EntitySet.
@param entitySet The given  EntitySet. It can not be  null.
@throws javax.xml.stream.XMLStreamException If unable to write to stream
Write an element for a given EntitySet . @param entitySet The given EntitySet . It can not be null . @throws javax . xml . stream . XMLStreamException If unable to write to stream
public void write(EntitySet entitySet) throws XMLStreamException {
        LOG.debug("Writing entity set {} of type {}", entitySet.getName(), entitySet.getTypeName());
        xmlWriter.writeStartElement(ENTITY_SET);
        xmlWriter.writeAttribute(NAME, entitySet.getName());
        xmlWriter.writeAttribute(ENTITY_TYPE, entitySet.getTypeName());
        for (NavigationPropertyBinding navPropertyBinding : entitySet.getNavigationPropertyBindings()) {
            xmlWriter.writeStartElement(NAVIGATION_PROPERTY_BINDING);
            xmlWriter.writeAttribute(PATH, navPropertyBinding.getPath());
            xmlWriter.writeAttribute(TARGET, navPropertyBinding.getTarget());
            xmlWriter.writeEndElement();
        }
        xmlWriter.writeEndElement();
    }
public void write ( EntitySet entitySet ) throws XMLStreamException { LOG . debug ( "Writing entity set {} of type {}" , entitySet . getName ( ) , entitySet . getTypeName ( ) ) ; xmlWriter . writeStartElement ( ENTITY_SET ) ; xmlWriter . writeAttribute ( NAME , entitySet . getName ( ) ) ; xmlWriter . writeAttribute ( ENTITY_TYPE , entitySet . getTypeName ( ) ) ; for ( NavigationPropertyBinding navPropertyBinding : entitySet . getNavigationPropertyBindings ( ) ) { xmlWriter . writeStartElement ( NAVIGATION_PROPERTY_BINDING ) ; xmlWriter . writeAttribute ( PATH , navPropertyBinding . getPath ( ) ) ; xmlWriter . writeAttribute ( TARGET , navPropertyBinding . getTarget ( ) ) ; xmlWriter . writeEndElement ( ) ; } xmlWriter . writeEndElement ( ) ; }
Write an {@code <EntitySet>} element for a given {@code EntitySet}.
Write an { @code <EntitySet > } element for a given { @code EntitySet } .