Examples of DocumentType


Examples of org.apache.lenya.cms.publication.DocumentType

            documentTypeName)) {
            throw new CreatorException("Exception: Validation of parameters failed");
        }

        // Get creator
        DocumentType type;

        try {
            type =
                DocumentTypeBuilder.buildDocumentType(
                    documentTypeName,
                    publication);
        } catch (DocumentTypeBuildException e) {
            throw new CreatorException(e);
        }

        ParentChildCreatorInterface creator = type.getCreator();

        SiteTree siteTree;

        try {
            log.debug("Get sitetree of area: " + area);
View Full Code Here

Examples of org.apache.vxquery.types.DocumentType

                DocumentTestNode dt = (DocumentTestNode) itemType;
                if (dt.getElementTest() == null) {
                    return DocumentType.ANYDOCUMENT;
                }
                ElementType eType = (ElementType) createItemType(dt.getElementTest());
                return new DocumentType(eType);
            }

            case TEXT_TEST:
                return TextType.INSTANCE;
View Full Code Here

Examples of org.brain.pojos.Documenttype

    System.out.println("documenttype "+documenttype.getTypeId());
   
   
   
    Treemenu treeMenu = DBOperate.getTreeMenu(Integer.parseInt(treemenu.getCurrentType1()));
    Documenttype documentType = DBOperate.getDocumenttype(Integer.parseInt(documenttype.getTypeId()));
   
    document.setTreemenu(treeMenu);
    document.setDocumenttype(documentType)
    document.setAuthor(author);
    document.setTitle(title);
View Full Code Here

Examples of org.codehaus.xfire.aegis.type.xml.DocumentType

        register(soapTM, Timestamp.class, XSD_DATETIME, new TimestampType());
        register(soapTM, Calendar.class, XSD_DATETIME, new CalendarType());
        register(soapTM, byte[].class, XSD_BASE64, new Base64Type());
        register(soapTM, BigDecimal.class, XSD_DECIMAL, new BigDecimalType());
        register(soapTM, URI.class, XSD_URI, new URIType());
        register(soapTM, Document.class, XSD_ANY, new DocumentType());
        register(soapTM, Source.class, XSD_ANY, new SourceType());
        register(soapTM, XMLStreamReader.class, XSD_ANY, new XMLStreamReaderType());
        register(soapTM, Element.class, XSD_ANY, new JDOMElementType());
        register(soapTM, org.jdom.Document.class, XSD_ANY, new JDOMDocumentType());
        register(soapTM, Object.class, XSD_ANY, new ObjectType());
View Full Code Here

Examples of org.dom4j.DocumentType

            }
            else {
                result.add(new DefaultAttribute(localName, pi.getValue(localName)));
            }
        } else if (node instanceof DocumentType) {
            DocumentType doctype = (DocumentType)node;
            if ("publicId".equals(localName)) {
                result.add(new DefaultAttribute("publicId", doctype.getPublicID()));
            }
            else if ("systemId".equals(localName)) {
                result.add(new DefaultAttribute("systemId", doctype.getSystemID()));
            }
            else if ("elementName".equals(localName)) {
                result.add(new DefaultAttribute("elementName", doctype.getElementName()));
            }
        }
    }
View Full Code Here

Examples of org.dom4j.DocumentType

   * Get the structure as an XML Document.
   * @return XML Document.
   */
  public Document getDocument() {
    Document tmp = DocumentHelper.createDocument();
    DocumentType type = new DOMDocumentType();
    type.setElementName(DOCUMENT_ROOT);
    type.setSystemID(DOCUMENT_DTD);
   
    tmp.setDocType(type);
    Element questestinterop = tmp.addElement(DOCUMENT_ROOT);
    this.assessment.addToElement(questestinterop);
    return tmp;
View Full Code Here

Examples of org.jboss.seam.document.DocumentData.DocumentType

   {

      // Get the bytes from workbook that should be passed on to the user
      byte[] bytes = excelWorkbook.getBytes();

      DocumentType type = excelWorkbook.getDocumentType();

      String viewId = Pages.getViewId(context);
      String baseName = baseNameForViewId(viewId);

      DocumentData documentData = new DocumentData(baseName, type, bytes);
      documentData.setFilename(getFilename());

      if (getExportKey() != null) {
         Contexts.getEventContext().set(getExportKey(), documentData);
         return;
      }
     
      if (sendRedirect)
      {
         DocumentStore store = DocumentStore.instance();
         String id = store.newId();

         String url = store.preferredUrlForContent(baseName, type.getExtension(), id);
         url = Manager.instance().encodeConversationId(url, viewId);

         store.saveData(id, documentData);

         context.getExternalContext().redirect(url);
View Full Code Here

Examples of org.jsoup.nodes.DocumentType

        response.setHeader("Pragma", "no-cache");
        response.setDateHeader("Expires", 0);

        Document document = response.getDocument();

        DocumentType doctype = new DocumentType("html", "", "",
                document.baseUri());
        document.child(0).before(doctype);

        Element head = document.head();
        head.appendElement("meta").attr("http-equiv", "Content-Type")
View Full Code Here

Examples of org.kuali.rice.kew.doctype.bo.DocumentType

   * @param replacement the new value
   * @return the existing value
   */
  public String updatePostProcessorName(String docTypeName, String replacement) {
    DocumentTypeService documentTypeService = GlobalResourceLoader.getService("enDocumentTypeService");
    DocumentType docTypeObj = DocumentType.from(documentTypeService.findByName(docTypeName));
    String originalPostProcessorName = docTypeObj.getPostProcessorName();
    docTypeObj.setPostProcessorName(replacement);
    documentTypeService.save(docTypeObj);
   
    return originalPostProcessorName;
  }
View Full Code Here

Examples of org.nuxeo.ecm.core.schema.DocumentType

        setLanguage(lang);
        DocumentRef docRef = getDocumentRef(ref);
        CoreSession session = ctx.getCoreSession();
        DocumentModel currentDoc = session.getDocument(docRef);

        DocumentType coreType = TypeService.getSchemaManager().getDocumentType(
                docTypeId);

        return getView("create_document_form").arg("currentDoc", currentDoc).arg(
                "docType", getTypeService().getType(docTypeId)).arg("coreType",
                coreType);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.