Examples of Content

Per RFC4287:

 The "atom:content" element either contains or links to the content of the entry.  The content of atom:content is Language-Sensitive. atomInlineTextContent = element atom:content { atomCommonAttributes, attribute type { "text" | "html" }?, (text) } atomInlineXHTMLContent = element atom:content { atomCommonAttributes, attribute type { "xhtml" }, xhtmlDiv } atomInlineOtherContent = element atom:content { atomCommonAttributes, attribute type { atomMediaType }?, (text|anyElement) } atomOutOfLineContent = element atom:content { atomCommonAttributes, attribute type { atomMediaType }?, attribute src { atomUri }, empty } atomContent = atomInlineTextContent | atomInlineXHTMLContent | atomInlineOtherContent | atomOutOfLineContent 
  • org.apache.aries.application.Content
    A representation of content metadata such as Application-Content, Import-Package, etc
  • org.apache.chemistry.opencmis.inmemory.storedobj.api.Content
  • org.apache.felix.framework.cache.Content
  • org.apache.http.client.fluent.Content
  • org.apache.isis.viewer.dnd.Content
  • org.apache.isis.viewer.dnd.view.Content
  • org.apache.james.mailbox.Content
    IMAP needs to know the size of the content before it starts to write it out. This interface allows direct writing whilst exposing total size.
  • org.apache.james.mailbox.model.Content
    IMAP needs to know the size of the content before it starts to write it out. This interface allows direct writing whilst exposing total size.
  • org.apache.jetspeed.xml.api.jcm.Content
    @version $Revision$ $Date$
  • org.apache.marmotta.client.model.content.Content
    Representation of media content returned by the Apache Marmotta. Provides an InputStream for reading the media data. Optionally, supports reading all content into a byte array.

    Author: Sebastian Schaffert

  • org.apache.nutch.protocol.Content
  • org.apache.servicemix.bean.Content
  • org.apache.slide.content.Content
    Content. @author Remy Maucherat @version $Revision: 1.12.2.2 $
  • org.apache.struts.taglib.template.util.Content
    A utility file for templates.

    This represents template content, which is included by templates. Templates can also treat content as plain text and print it to the implicit out variable. This simple class maintain two properties:

    @author David Geary @revision $Revision: 1.2 $
  • org.candlepin.json.model.Content
    Content
  • org.candlepin.model.Content
    ProductContent
  • org.drools.guvnor.server.jaxrs.providers.atom.Content

    Represents an atom:content element.

    Per RFC4287:

     The "atom:content" element either contains or links to the content of the entry.  The content of atom:content is Language-Sensitive. 

    atomInlineTextContent = element atom:content { atomCommonAttributes, attribute type { "text" | "html" }?, (text) }

    atomInlineXHTMLContent = element atom:content { atomCommonAttributes, attribute type { "xhtml" }, xhtmlDiv } atomInlineOtherContent = element atom:content { atomCommonAttributes, attribute type { atomMediaType }?, (text|anyElement) }

    atomOutOfLineContent = element atom:content { atomCommonAttributes, attribute type { atomMediaType }?, attribute src { atomUri }, empty }

    atomContent = atomInlineTextContent | atomInlineXHTMLContent | atomInlineOtherContent | atomOutOfLineContent

    TODO remove this file when JBoss AS includes RESTEasy 2.3.4.Final or higher
  • org.evolizer.model.resources.entities.misc.Content
    Wrapper for e.g., source code. This is needed because Hibernate cannot load primitive data types and Strings lazily. @author wuersch
  • org.gatein.portal.controller.resource.script.Module.Local.Content
  • org.gradle.example.content.Content
  • org.infoglue.cms.entities.content.Content
  • org.intabulas.sandler.elements.Content
  • org.jboss.demo.web.events.Content
  • org.jboss.resteasy.plugins.providers.atom.Content

    Represents an atom:content element.

    Per RFC4287:

     The "atom:content" element either contains or links to the content of the entry.  The content of atom:content is Language-Sensitive. 

    atomInlineTextContent = element atom:content { atomCommonAttributes, attribute type { "text" | "html" }?, (text) }

    atomInlineXHTMLContent = element atom:content { atomCommonAttributes, attribute type { "xhtml" }, xhtmlDiv } atomInlineOtherContent = element atom:content { atomCommonAttributes, attribute type { atomMediaType }?, (text|anyElement) }

    atomOutOfLineContent = element atom:content { atomCommonAttributes, attribute type { atomMediaType }?, attribute src { atomUri }, empty }

    atomContent = atomInlineTextContent | atomInlineXHTMLContent | atomInlineOtherContent | atomOutOfLineContent

    @author Bill Burke @version $Revision: 1 $
  • org.jboss.xb.binding.Content
    An instance of this class represents XML content. It is populated on unmarshalling with org.jboss.xb.binding.ContentPopulator and used to implement content navigation in object model factories. And on marshalling, first, an instance of this class is created and then it is serialized into XML content with org.jboss.xb.binding.ContentWriter. @version $Revision: 1455 $ @author Alexey Loubyansky
  • org.jbpm.task.Content
  • org.jdom.Content
    Superclass for JDOM objects which can be legal child content of {@link org.jdom.Parent} nodes. @see org.jdom.Comment @see org.jdom.DocType @see org.jdom.Element @see org.jdom.EntityRef @see org.jdom.Parent @see org.jdom.ProcessingInstruction @see org.jdom.Text @author Bradley S. Huffman @author Jason Hunter @version $Revision: 1.5 $, $Date: 2004/09/07 06:37:20 $
  • org.jdom2.Content
    An Sendable interface extension that adds additional methods for additional information, such as Files or Strings. @author Mark Reinhold @author Brad R. Wetmore @version 1.3, 05/11/17
  • org.mortbay.jetty.ResourceCache.Content
  • org.noos.xing.mydoggy.Content
    A content is a wrapper of a component decorated with some properties like a title, an icon, etc. The visualization of a content depends on specific platform implementation. A platform implementation can use a JTabbedPane or a JDesktopPane for example. A PropertyChangeEvent is fired for the following properties: @author Angelo De Caro (angelo.decaro@gmail.com) @since 1.0.0
  • org.purl.sword.atom.Content
    Represents an ATOM Content element. @author Neil Taylor
  • org.restlet.ext.atom.Content
    Either contains or links to the content of the entry. @author Jerome Louvel
  • org.rssowl.contrib.podcast.content.Content
    A Content type implementation. The content is defined by it's MIME type and the extension of the file. Many content types are de-facto others registered at IANA.
  • org.sleuthkit.datamodel.Content
    Interface for all datatypes that can be found in the database. Content objects make up a tree and each object can have a parent and children. For example, the child of an Image object is a Volume or File System. This interface defines the basic methods for reading the content associated with this object, the parent and children, and adding artifacts.
  • org.sonatype.nexus.client.core.subsystem.content.Content
    @since 2.1
  • org.sonatype.nexus.plugins.p2.repository.metadata.Content
  • org.springframework.extensions.surf.util.Content
  • play.mvc.Content
  • play.twirl.api.Content
  • tutorial.storm.trident.testutil.Content
    @author Enno Shioji (enno.shioji@peerindex.com)
  • v7db.files.spi.Content
  • vn.pyco.tinycms.model.Content

  • Examples of org.candlepin.json.model.Content

            // Return only the contents that are arch appropriate
            Set<ProductContent> archApproriateProductContent = filterContentByContentArch(
                productContent, consumer, product);

            for (ProductContent pc : archApproriateProductContent) {
                Content content = new Content();
                if (enableEnvironmentFiltering) {
                    if (consumer.getEnvironment() != null && !promotedContent.containsKey(
                        pc.getContent().getId())) {
                        log.debug("Skipping content not promoted to environment: " +
                            pc.getContent().getId());
                        continue;
                    }
                }

                // Augment the content path with the prefix if it is passed in
                String contentPath = this.createFullContentPath(contentPrefix, pc);

                content.setId(pc.getContent().getId());
                content.setType(pc.getContent().getType());
                content.setName(pc.getContent().getName());
                content.setLabel(pc.getContent().getLabel());
                content.setVendor(pc.getContent().getVendor());
                content.setPath(contentPath);
                content.setGpgUrl(pc.getContent().getGpgUrl());


                // Set content model's arches here, inheriting from the product if
                // they are not set on the content.
                List<String> archesList = new ArrayList<String>();

                Set<String> contentArches = Arch.parseArches(pc.getContent()
                    .getArches());
                if (contentArches.isEmpty()) {
                    archesList.addAll(Arch.parseArches(product
                        .getAttributeValue(PRODUCT_ARCH_ATTR)));
                }
                else {
                    archesList
                        .addAll(Arch.parseArches(pc.getContent().getArches()));
                }
                content.setArches(archesList);

                // Check if we should override the enabled flag due to setting on promoted
                // content
                Boolean enabled = pc.getEnabled();
                if ((consumer.getEnvironment() != null) && enableEnvironmentFiltering) {
                    // we know content has been promoted at this point
                    Boolean enabledOverride = promotedContent.get(
                        pc.getContent().getId()).getEnabled();
                    if (enabledOverride != null) {
                        log.debug("overriding enabled flag: " + enabledOverride);
                        enabled = enabledOverride;
                    }
                }
                // only included if not the default value of true
                if (!enabled) {
                    content.setEnabled(enabled);
                }

                // Include metadata expiry if specified on the content
                if (pc.getContent().getMetadataExpire() != null) {
                    content.setMetadataExpire(pc.getContent().getMetadataExpire());
                }

                // Include required tags if specified on the content set
                String requiredTags = pc.getContent().getRequiredTags();
                if ((requiredTags != null) && !requiredTags.equals("")) {
                    StringTokenizer st = new StringTokenizer(requiredTags, ",");
                    List<String> tagList = new ArrayList<String>();
                    while (st.hasMoreElements()) {
                        tagList.add((String) st.nextElement());
                    }
                    content.setRequiredTags(tagList);
                }
                toReturn.add(content);
            }
            return toReturn;
        }
    View Full Code Here

    Examples of org.candlepin.model.Content

            Product engProduct = new Product(Integer.toString(TestUtil.randomInt()),
                "An ENG product");

            Set<Content> productContent = new HashSet<Content>();
            for (int i = 0; i < X509ExtensionUtil.V1_CONTENT_LIMIT + 1; i++) {
                productContent.add(new Content("fake" + i, "fake" + i,
                    "fake" + i, "yum", "vendor", "", "", ""));
            }

            engProduct.setContent(productContent);
            Pool pool = TestUtil.createPool(owner, mktProduct);
    View Full Code Here

    Examples of org.drools.guvnor.server.jaxrs.providers.atom.Content

            metaData.setState(p.getState() == null ? "" : p.getState().getName());
            metaData.setVersionNumber(p.getVersionNumber());
            metaData.setCheckinComment(p.getCheckinComment());

            e.setAnyOtherJAXBObject(metaData);
            Content content = new Content();
            content.setSrc(UriBuilder.fromUri(baseUri).path("binary").build());
            content.setType(MediaType.APPLICATION_OCTET_STREAM_TYPE);
    //        content.setContentType(Type.MEDIA); // TODO remove me if not it's base64 encoded fine
            e.setContent(content);
            return e;
        }
    View Full Code Here

    Examples of org.evolizer.model.resources.entities.misc.Content

                    String source = inputStreamAsString(stream);

                    stream.close();

                    Content sw = persistenceProvider.load(Content.class, revision.getSourceCodeWrapper().getId());
                    sw.setSource(source);

                    persistenceProvider.update(sw);

                    // now we can release the revision to the garbage collector,
                    // since it was made persistent.
    View Full Code Here

    Examples of org.gatein.portal.controller.resource.script.Module.Local.Content

                    List<Content> contents = new LinkedList<Content>();
                    Element adapter = XMLTools.getUniqueChild(scriptElt, ADAPTER_TAG, false);
                    String scriptPath = parseOptString(scriptElt, "path");
                    if (scriptPath != null) {
                        contents.add(new Content(scriptPath));
                    } else if (adapter != null) {
                        NodeList childs = adapter.getChildNodes();
                        for (int i = 0; i < childs.getLength(); i++) {
                            Node item = childs.item(i);
                            if (item instanceof Element) {
                                Element include = (Element) item;
                                if (INCLUDE_TAG.equals(include.getTagName())) {
                                    contents.add(new Content(XMLTools.asString(include, true)));
                                }
                            } else if (item.getNodeType() == Node.TEXT_NODE) {
                                contents.add(new Content(item.getNodeValue().trim(), false));
                            }
                        }
                    }
                    Content[] tmp = contents.toArray(new Content[contents.size()]);
    View Full Code Here

    Examples of org.gradle.example.content.Content

        }
      }

      private List<String> getPoemLines(String poetName) {
        ContentFactory contentFactory = ContentFactory.getInstance();
        Content provider = contentFactory.getContentProvider(poetName);
        List<String> clearTextLines = provider.getLines();
        Encoder encoder = new Encoder();

        List<String> encodedLines = new ArrayList<String>();
        for(String line: clearTextLines) {
          encodedLines.add(encoder.encode(line));
    View Full Code Here

    Examples of org.infoglue.cms.entities.content.Content

          map.loadMapping(CastorDatabaseService.class.getResource("/xml_mapping_content_2.5.xml").toString())

          // All ODMG database access requires a transaction
          db.begin();

          Content parentContent = ContentController.getContentController().getContentWithId(parentContentId, db);
          logger.info("parentContent:" + parentContent.getName());
          this.repositoryId = parentContent.getRepositoryId();
         
          //String encoding = "ISO-8859-1";
          logger.debug("file:" + file.exists() + ":" + file.getPath());
              FileInputStream fis = new FileInputStream(file);
                InputStreamReader reader = new InputStreamReader(fis, encoding);
          //Reader reader = new FileReader(file);

          Unmarshaller unmarshaller = new Unmarshaller(map);
          unmarshaller.setWhitespacePreserve(true);
          unmarshaller.setValidation(false);

          InfoGlueExportImpl infoGlueExportImplRead = (InfoGlueExportImpl)unmarshaller.unmarshal(reader);
          Collection contentTypeDefinitions = infoGlueExportImplRead.getContentTypeDefinitions();
          logger.info("Found " + contentTypeDefinitions.size() + " content type definitions");
          Collection categories = infoGlueExportImplRead.getCategories();
          logger.info("Found " + categories.size() + " categories");
          Collection<Language> languages = infoGlueExportImplRead.getLanguages();
          logger.info("Found " + languages.size() + " languages");

          Map categoryIdMap = new HashMap();
          Map contentTypeIdMap = new HashMap();

          importCategories(categories, null, categoryIdMap, db);
          updateContentTypeDefinitions(contentTypeDefinitions, categoryIdMap);
         
          Map<Integer,Language> languageIdMap = new HashMap<Integer,Language>();
          logger.info("languages:" + languages);
          for(Language lang : languages)
          {
            languageIdMap.put(lang.getId(), lang);
          }
         
          List readContents = infoGlueExportImplRead.getRootContent();

          Map contentIdMap = new HashMap();
          Map siteNodeIdMap = new HashMap();
         
          List allContents = new ArrayList();
         
          Iterator readContentsIterator = readContents.iterator();
          while(readContentsIterator.hasNext())
          {
            Content readContent = (Content)readContentsIterator.next();
           
            readContent.setRepository((RepositoryImpl)parentContent.getRepository());
            readContent.setParentContent((ContentImpl)parentContent);
           
            createContents(readContent, contentIdMap, contentTypeIdMap, languageIdMap, allContents, Collections.unmodifiableCollection(contentTypeDefinitions), categoryIdMap, version, db);
            parentContent.getChildren().add(readContent);
          }
             
          List allContentIds = new ArrayList();
          Iterator allContentsIterator = allContents.iterator();
          while(allContentsIterator.hasNext())
          {
            Content content = (Content)allContentsIterator.next();
            allContentIds.add(content.getContentId());
          }

          db.commit();
          db.close();
               
          Iterator allContentIdsIterator = allContentIds.iterator();
          while(allContentIdsIterator.hasNext())
          {
            Integer contentId = (Integer)allContentIdsIterator.next();
            try
            {
              db = CastorDatabaseService.getDatabase();
              db.begin();
     
              Content content = ContentController.getContentController().getContentWithId(contentId, db);
              updateContentVersions(content, contentIdMap, siteNodeIdMap);
     
              db.commit();
            }
            catch(Exception e)
    View Full Code Here

    Examples of org.intabulas.sandler.elements.Content

                Entry entry = Sandler.unmarshallEntry( request.getInputStream() );

                //
                //  Fetch the obligatory parts of the content.
                //
                Content title   = entry.getTitle();
                Content content = entry.getContent(0);

                Person  author  = entry.getAuthor();

                //FIXME: Sandler 0.5 does not support generator

                //
                //  Generate new blog entry.
                //
                WeblogEntryPlugin plugin = new WeblogEntryPlugin();

                String pageName = plugin.getNewEntryPage( m_engine, blogid );
                String username = author.getName();

                WikiPage entryPage = new WikiPage( m_engine, pageName );
                entryPage.setAuthor( username );

                WikiContext context = new WikiContext( m_engine, request, entryPage );

                StringBuffer text = new StringBuffer();
                text.append( "!"+title.getBody() );
                text.append( "\n\n" );
                text.append( content.getBody() );

                log.debug("Writing entry: "+text);

                m_engine.saveText( context, text.toString() );
    View Full Code Here

    Examples of org.jboss.demo.web.events.Content

        this.sessionID = sessionID;
      }

      public String add() {
       
        Content currentEvtPayload = new Content();
        currentEvtPayload.setDatetime(new Date());
        currentEvtPayload.setContent(content);
        currentEvtPayload.setServer(initServerStr());
       
        contentProducer.fire(currentEvtPayload);
           
        return "index";
      }
    View Full Code Here

    Examples of org.jboss.resteasy.plugins.providers.atom.Content

          @Produces("application/atom+xml")
          public Entry getEntry()
          {
             Entry entry = new Entry();
             entry.setTitle("Hello World");
             Content content = new Content();
             content.setJAXBObject(new CustomerAtom("bill"));
             entry.setContent(content);
             return entry;
          }
    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.