Package org.locationtech.udig.document.model

Examples of org.locationtech.udig.document.model.AbstractDocument


     * @param info
     * @param descriptors
     * @return document
     */
    private IDocument create(String info, List<HotlinkDescriptor> descriptors) {
        AbstractDocument doc = null;
        switch (descriptors.get(0).getType()) {
        case FILE:
            doc = new FileHotlinkDocument(info, descriptors);
            break;
        case WEB:
            doc = new WebHotlinkDocument(info, descriptors);
            break;
        case ACTION:
            doc = new ActionHotlinkDocument(info, descriptors);
            break;
        default:
            break;
        }
        if (doc != null) {
            doc.setSource(this);   
        }
        return doc;
    }
View Full Code Here


     *
     * @param info
     * @return document
     */
    public IDocument create(DocumentInfo info) {
        AbstractDocument doc = null;
        if (Type.ATTACHMENT == info.getType()) {
            if (ContentType.FILE == info.getContentType()) {
                doc = new FileAttachmentDocument(info);
            }
        } else if (Type.LINKED == info.getType()) {
            if (ContentType.FILE == info.getContentType()) {
                doc = new FileLinkedDocument(info);
            } else if (ContentType.WEB == info.getContentType()) {
                doc = new WebLinkedDocument(info);
            }
        }
        if (doc != null) {
            doc.setSource(source);   
        }
        return doc;
    }
View Full Code Here

     * @param info
     * @param descriptors
     * @return document
     */
    public IDocument create(String info, List<HotlinkDescriptor> descriptors) {
        AbstractDocument doc = null;
        switch (descriptors.get(0).getType()) {
        case FILE:
            doc = new FileHotlinkDocument(info, descriptors);
            break;
        case WEB:
            doc = new WebHotlinkDocument(info, descriptors);
            break;
        case ACTION:
            doc = new ActionHotlinkDocument(info, descriptors);
            break;
        default:
            break;
        }
        if (doc != null) {
            doc.setSource(source);   
        }
        return doc;
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.document.model.AbstractDocument

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.