Package org.dspace.app.cris.ws.marshaller.bean

Examples of org.dspace.app.cris.ws.marshaller.bean.WSMetadata


        {
            if (!m.startsWith("dc."))
            {
                continue;
            }
            WSMetadata metadata = new WSMetadata();
            metadata.setName(m);
            int place = 1;
            for (Object v : sd.getFieldValues(m))
            {
                String value = (String) v;
                String[] mv = value.split("\\|\\|\\|");
                WSMetadataValue mvalue = new WSMetadataValue();
                mvalue.setValue(mv[0]);
                mvalue.setAuthority(mv.length > 1 ? mv[1] : null);
                mvalue.setShare(mv.length > 2 ? Integer.parseInt(mv[2]) : null);
                mvalue.setPlace(place);
                place++;
                metadata.getValues().add(mvalue);
            }
            item.getMetadata().add(metadata);
        }
        return item;
    }
View Full Code Here

TOP

Related Classes of org.dspace.app.cris.ws.marshaller.bean.WSMetadata

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.