/** * * @param properties * @return EntityCollectionPropertiesBuilder */ public EntityCollectionPropertiesBuilder fromProperties (final EntityCollectionSerializerProperties properties) { this.properties.selfLink = properties.getSelfLink(); return this; }
/** * * @param properties * @return EntityCollectionPropertiesBuilder */ public EntityCollectionPropertiesBuilder fromProperties (final EntityCollectionSerializerProperties properties) { this.properties.selfLink = properties.getSelfLink(); return this; }
private void appendAtomSelfLink(final XMLStreamWriter writer, final EntityInfoAggregator eia) throws EntityProviderException { URI self = properties.getSelfLink(); String selfLink = ""; if (self == null) { selfLink = createSelfLink(eia); } else { selfLink = self.toASCIIString(); } try { writer.writeStartElement(FormatXml.ATOM_LINK); writer.writeAttribute(FormatXml.ATOM_HREF, selfLink); writer.writeAttribute(FormatXml.ATOM_REL, Edm.LINK_REL_SELF); writer.writeAttribute(FormatXml.ATOM_TITLE, eia.getEntitySetName()); writer.writeEndElement(); } catch (XMLStreamException e) { throw new EntityProviderProducerException(EntityProviderException.COMMON, e); } }