Package org.dspace.vocabulary

Examples of org.dspace.vocabulary.ControlledVocabulary


    @Override
    public void generate() throws IOException, SAXException, ProcessingException {
        Request request = ObjectModelHelper.getRequest(objectModel);
        String vocabularyIdentifier = request.getParameter("vocabularyIdentifier");
        try {
            ControlledVocabulary controlledVocabulary = ControlledVocabulary.loadVocabulary(vocabularyIdentifier);
            if(controlledVocabulary != null){
                Gson gson = new Gson();

                String jsonString = gson.toJson(controlledVocabulary);
                ByteArrayInputStream inputStream = new ByteArrayInputStream(jsonString.getBytes("UTF-8"));
View Full Code Here

TOP

Related Classes of org.dspace.vocabulary.ControlledVocabulary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.