/** * Creates {@link Representation#REF}. * <p> * Calls {@link BaseDelegatingResource#asRepresentation(Object, Representation)} on the resource * with the given object. * * @return the representation * @throws Exception */ public SimpleObject newRefRepresentation() throws Exception { return getResource().asRepresentation(getObject(), Representation.REF); }
/** * Creates {@link Representation#DEFAULT}. * <p> * Calls {@link BaseDelegatingResource#asRepresentation(Object, Representation)} on the resource * with the given object. * * @return the representation * @throws Exception */ public SimpleObject newDefaultRepresentation() throws Exception { return getResource().asRepresentation(getObject(), Representation.DEFAULT); }
/** * Creates {@link Representation#FULL}. * <p> * Calls {@link BaseDelegatingResource#asRepresentation(Object, Representation)} on the resource * with the given object. * * @return the representation * @throws Exception */ public SimpleObject getFullRepresentation() throws Exception { return getResource().asRepresentation(getObject(), Representation.FULL); }