Skip to content

Instantly share code, notes, and snippets.

@djazayeri
Created October 3, 2013 14:26
Show Gist options
  • Save djazayeri/6810739 to your computer and use it in GitHub Desktop.
Save djazayeri/6810739 to your computer and use it in GitHub Desktop.
Example of a NamedRepresentation for "fullchildren" for ConceptResource
@RepHandler(value = NamedRepresentation.class, name = "fullchildren")
public SimpleObject asFullChildren(Concept delegate) throws ConversionException {
DelegatingResourceDescription description = fullRepresentationDescription(delegate);
description.removeProperty("setMembers");
description.addProperty("setMembers", Representation.FULL);
// same for any other Collection<Concept> properties
// return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment