Package org.fcrepo.server.utilities

Examples of org.fcrepo.server.utilities.DCField


                    .toString()));
        } else if (m_want[DCMDATE] && localName.equals("dcmDate")) {
            setDCMDate(DateUtility.convertStringToDate(m_currentContent
                    .toString()));
        } else if (m_want[TITLE] && localName.equals("title")) {
            titles().add(new DCField(m_currentContent.toString()));
        } else if (m_want[CREATOR] && localName.equals("creator")) {
            creators().add(new DCField(m_currentContent.toString()));
        } else if (m_want[SUBJECT] && localName.equals("subject")) {
            subjects().add(new DCField(m_currentContent.toString()));
        } else if (m_want[DESCRIPTION] && localName.equals("description")) {
            descriptions().add(new DCField(m_currentContent.toString()));
        } else if (m_want[PUBLISHER] && localName.equals("publisher")) {
            publishers().add(new DCField(m_currentContent.toString()));
        } else if (m_want[CONTRIBUTOR] && localName.equals("contributor")) {
            contributors().add(new DCField(m_currentContent.toString()));
        } else if (m_want[DATE] && localName.equals("date")) {
            dates().add(new DCField(m_currentContent.toString()));
        } else if (m_want[TYPE] && localName.equals("type")) {
            types().add(new DCField(m_currentContent.toString()));
        } else if (m_want[FORMAT] && localName.equals("format")) {
            formats().add(new DCField(m_currentContent.toString()));
        } else if (m_want[IDENTIFIER] && localName.equals("identifier")) {
            identifiers().add(new DCField(m_currentContent.toString()));
        } else if (m_want[SOURCE] && localName.equals("source")) {
            sources().add(new DCField(m_currentContent.toString()));
        } else if (m_want[LANGUAGE] && localName.equals("language")) {
            languages().add(new DCField(m_currentContent.toString()));
        } else if (m_want[RELATION] && localName.equals("relation")) {
            relations().add(new DCField(m_currentContent.toString()));
        } else if (m_want[COVERAGE] && localName.equals("coverage")) {
            coverages().add(new DCField(m_currentContent.toString()));
        } else if (m_want[RIGHTS] && localName.equals("rights")) {
            rights().add(new DCField(m_currentContent.toString()));
        }
    }
View Full Code Here


            dc.DSSize = 0;
            dc.DSState = "A";
            dc.DSVersionable = true;
            dcf = new DCFields();
            if (obj.getLabel() != null && !obj.getLabel().equals("")) {
                dcf.titles().add(new DCField(obj.getLabel()));
            }
            w.addDatastream(dc, dc.DSVersionable);
        } else {
            dcxml = new XMLDatastreamProcessor(dc);
            // note: context may be required to get through authz as content
View Full Code Here

        if (strings == null) {
            return Collections.emptyList();
        } else {
            ArrayList<DCField> dcFields = new ArrayList<DCField>();
            for (String field : strings) {
                dcFields.add(new DCField(field));
            }
            return dcFields;
        }
    }
View Full Code Here

TOP

Related Classes of org.fcrepo.server.utilities.DCField

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.