コード例 #1
0
  private void appendSingletons(final XMLStreamWriter writer, final List<EdmSingleton> singletons)
      throws XMLStreamException {
    for (EdmSingleton singleton : singletons) {
      writer.writeStartElement(XML_SINGLETON);
      writer.writeAttribute(XML_NAME, singleton.getName());
      writer.writeAttribute(
          XML_ENTITY_TYPE, getAliasedFullQualifiedName(singleton.getEntityType(), false));

      appendNavigationPropertyBindings(writer, singleton);
      writer.writeEndElement();
    }
  }
コード例 #2
0
 private void writeSingletons(final JsonGenerator gen, final EdmEntityContainer container)
     throws IOException {
   for (EdmSingleton edmSingleton : container.getSingletons()) {
     writeElement(gen, SINGLETON, edmSingleton.getName(), edmSingleton.getName());
   }
 }
コード例 #3
0
 @Override
 public String getSegmentValue() {
   return singleton.getName();
 }
コード例 #4
0
 @Override
 public EdmEntityType getEntityType() {
   return singleton.getEntityType();
 }