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 com.claymus.site.module.content.Content

        if(accessLevel < ModuleHelper.ADD)
          throw new UserException();

        Page page = PageData.getPage(KeyFactory.stringToKey(pageEncoded));
        ContentType contentData = ContentData.getContentType(contentDTO.getClass().getSimpleName().replace("DTO", ""));
        Content content = new Content(contentData, page.getId(), contentDTO.getLocation());
        content.update(contentDTO);
        content = ContentData.createContent(content);
        if(content == null)
          throw new ServerException("Content could not be created. Please try again later.");
      }
    View Full Code Here

    Examples of com.colorfulsoftware.atom.Content

      @Test
      public void testReadContent() {
        try {
          reader = XMLInputFactory.newInstance().createXMLStreamReader(
              new StringReader(content1));
          Content content = feedReader.readContent(reader);
          assertTrue(content.getContent().equals(
              "This is <b>XHTML</b> content."));
          assertTrue(content.getAttributes() != null);
          assertTrue(content.getAttributes().size() == 1);
          assertTrue(content.getAttributes().get(0).getName().equals("type"));
          assertTrue(content.getAttributes().get(0).getValue()
              .equals("xhtml"));

          reader = XMLInputFactory.newInstance().createXMLStreamReader(
              new StringReader(content2));
          content = feedReader.readContent(reader);
          assertTrue(content.getContent().equals(
              "This is <xhtml:b>XHTML</xhtml:b> content."));
          assertTrue(content.getAttributes() != null);
          assertTrue(content.getAttributes().size() == 1);
          assertTrue(content.getAttributes().get(0).getName().equals("type"));
          assertTrue(content.getAttributes().get(0).getValue()
              .equals("xhtml"));

          reader = XMLInputFactory.newInstance().createXMLStreamReader(
              new StringReader(content3));
          List<Entry> entries = feedReader.readEntry(reader, null);
          assertTrue(entries != null);
          assertTrue(entries.size() == 1);

          Entry entry = entries.iterator().next();
          assertTrue(entry.getAttributes() != null);
          assertTrue(entry.getAttributes().size() == 1);
          assertTrue(entry.getAttributes().get(0).getName()
              .equals("xmlns:xh"));
          assertTrue(entry.getAttributes().get(0).getValue().equals(
              "http://some.xh.specific.uri/xh"));

          content = entry.getContent();
          assertTrue(content != null);
          assertTrue(content.getContent().equals(
              "This is <xh:b>XHTML</xh:b> content."));
          assertTrue(content.getAttributes() != null);
          assertTrue(content.getAttributes().size() == 1);
          assertTrue(content.getAttributes().get(0).getName().equals("type"));
          assertTrue(content.getAttributes().get(0).getValue()
              .equals("xhtml"));

        } catch (Exception e) {
          e.printStackTrace();
          fail("could not read title fragment.");
    View Full Code Here

    Examples of com.eteks.sweethome3d.model.Content

                 Object value, boolean isSelected, boolean hasFocus,
                 int row, int column) {
              CatalogPieceOfFurniture piece = (CatalogPieceOfFurniture)value;
              JLabel label = (JLabel)super.getTableCellRendererComponent(
                table, "", isSelected, hasFocus, row, column);
              Content iconContent;
              if (FurnitureLibrary.FURNITURE_ICON_PROPERTY.equals(propertyKey)) {
                iconContent = piece.getIcon();
              } else {
                iconContent = piece.getPlanIcon();
              }
    View Full Code Here

    Examples of com.eteks.sweethome3d.model.Content

          // Open zipped stream that contains urlContent
          zipIn = new ZipInputStream(urlContent.getJAREntryURL().openStream());
          // Write each zipped stream entry in home stream
          for (ZipEntry entry; (entry = zipIn.getNextEntry()) != null; ) {
            String zipEntryName = entry.getName();
            Content siblingContent = new URLContent(new URL("jar:" + urlContent.getJAREntryURL() + "!/"
                + URLEncoder.encode(zipEntryName, "UTF-8").replace("+", "%20")));
            writeZipEntry(zipOut, directory + "/" + zipEntryName, siblingContent);
          }
        } finally {
          if (zipIn != null) {
    View Full Code Here

    Examples of com.eteks.sweethome3d.model.Content

        // Cancel current model
        this.controller.setModel(null);
        // Read model in modelLoader executor
        this.modelLoader.execute(new Runnable() {
            public void run() {
              Content modelContent = null;
              try {
                modelContent = contentManager.getContent(modelName);
              } catch (RecorderException ex) {
                if (!ignoreException) {
                  showModelChoiceError(modelName, preferences);
                }
                return;
              }
             
              BranchGroup model = null;
              Vector3f    modelSize = null;
              try {
                model = readModel(modelContent);
                modelSize = ModelManager.getInstance().getSize(model);
                // Copy model to a temporary OBJ content with materials and textures
                modelContent = copyToTemporaryOBJContent(model, modelName);
              } catch (IOException ex) {
                model = null;
              } catch (IllegalArgumentException ex) {
                // Model is empty
                model = null;
              }
             
              if (model == null) {
                try {
                  // Copy model content to a temporary content
                  modelContent = TemporaryURLContent.copyToTemporaryURLContent(modelContent);
                } catch (IOException ex2) {
                  if (!ignoreException) {
                    showModelChoiceError(modelName, preferences);
                  }
                  return;
                }
               
                // If content couldn't be loaded, try to load model as a zipped file
                ZipInputStream zipIn = null;
                try {
                  URLContent urlContent = (URLContent)modelContent;
                  // Open zipped stream
                  zipIn = new ZipInputStream(urlContent.openStream());
                  // Parse entries to see if one is readable
                  for (ZipEntry entry; (entry = zipIn.getNextEntry()) != null; ) {
                    try {
                      String entryName = entry.getName();
                      // Ignore directory entries and entries starting by a dot
                      if (!entryName.endsWith("/")) {
                        int slashIndex = entryName.lastIndexOf('/');
                        String entryFileName = entryName.substring(++slashIndex);
                        if (!entryFileName.startsWith(".")) {
                          URL entryUrl = new URL("jar:" + urlContent.getURL() + "!/"
                              + URLEncoder.encode(entryName, "UTF-8").replace("+", "%20").replace("%2F", "/"));
                          modelContent = new TemporaryURLContent(entryUrl);
                          model = readModel(modelContent);
                          modelSize = ModelManager.getInstance().getSize(model);
                          break;
                        }
                      }
                    } catch (IOException ex3) {
                      // Ignore exception and try next entry
                      model = null;
                    } catch (IllegalArgumentException ex3) {
                      // Model is empty
                      model = null;
                    }
                  }
                } catch (IOException ex2) {
                  model = null;
                } finally {
                  try {
                    if (zipIn != null) {
                      zipIn.close();
                    }
                  } catch (IOException ex2) {
                    // Ignore close exception
                  }
                }
              }
             
              final BranchGroup readModel = model;
              final Vector3f    readModelSize = modelSize;
              final Content     readContent = modelContent;
              // Update components in dispatch thread
              EventQueue.invokeLater(new Runnable() {
                  public void run() {
                    if (readModel != null) {
                      controller.setModel(readContent);
    View Full Code Here

    Examples of com.eteks.sweethome3d.model.Content

                                    final UserPreferences preferences,
                                    final boolean ignoreException) {
        // Read image in imageLoader executor
        this.imageLoader.execute(new Runnable() {
            public void run() {
              Content imageContent = null;
              try {
                // Copy image to a temporary content to keep a safe access to it until home is saved
                imageContent = TemporaryURLContent.copyToTemporaryURLContent(
                    contentManager.getContent(imageName));
              } catch (RecorderException ex) {
                // Error message displayed below
              } catch (IOException ex) {
                // Error message displayed below
              }
              if (imageContent == null) {
                if (!ignoreException) {
                  EventQueue.invokeLater(new Runnable() {
                      public void run() {
                        JOptionPane.showMessageDialog(SwingUtilities.getRootPane(ImportedTextureWizardStepsPanel.this),
                            preferences.getLocalizedString(
                                ImportedTextureWizardStepsPanel.class, "imageChoiceError", imageName));
                      }
                    });
                }
                return;
              }

              BufferedImage image = null;
              try {
                image = readImage(preferences, imageContent);
              } catch (IOException ex) {
                // image is null
              }
             
              final BufferedImage readImage = image;
              final Content       readContent = imageContent;
              // Update components in dispatch thread
              EventQueue.invokeLater(new Runnable() {
                  public void run() {
                    if (readImage != null) {
                      controller.setImage(readContent);
    View Full Code Here

    Examples of com.eteks.sweethome3d.model.Content

            // Ignore write requests
          }
        };

        Home home = new Home();
        Content imageContent = new URLContent(UserPreferencesPanelTest.class.getResource("resources/test.png"));
        home.setBackgroundImage(new BackgroundImage(imageContent, 1, 0, 1, 0, 1, 0, 0));

        SwingViewFactory viewFactory = new SwingViewFactory();
        FileContentManager contentManager = new FileContentManager(preferences);
        UndoableEditSupport undoableEditSupport = new UndoableEditSupport();
    View Full Code Here

    Examples of com.eteks.sweethome3d.model.Content

      /**
       * Sets the image content of the background image.
       */
      public void setImage(Content image) {
        if (image != this.image) {
          Content oldImage = this.image;
          this.image = image;
          this.propertyChangeSupport.firePropertyChange(Property.IMAGE.name(), oldImage, image);
        }
      }
    View Full Code Here

    Examples of com.eteks.sweethome3d.model.Content

          setTexturable(true);
          setProportional(false);
        } else {
          // Search the common properties among selected furniture
          HomePieceOfFurniture firstPiece = selectedFurniture.get(0);
          Content icon = firstPiece.getIcon();
          if (icon != null) {
            for (int i = 1; i < selectedFurniture.size(); i++) {
              if (!icon.equals(selectedFurniture.get(i).getIcon())) {
                icon = null;
                break;
              }
            }
          }
    View Full Code Here

    Examples of com.eteks.sweethome3d.model.Content

      /**
       * Sets the edited icon.
       */
      private void setIcon(Content icon) {
        if (icon != this.icon) {
          Content oldIcon = this.icon;
          this.icon = icon;
          this.propertyChangeSupport.firePropertyChange(Property.ICON.name(), oldIcon, icon);
        }
      }
    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.