Created
October 3, 2013 14:26
-
-
Save djazayeri/6810739 to your computer and use it in GitHub Desktop.
Example of a NamedRepresentation for "fullchildren" for ConceptResource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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