Examples of Text

Per RFC4287:

 A Text construct contains human-readable text, usually in small quantities.  The content of Text constructs is Language-Sensitive. atomPlainTextConstruct = atomCommonAttributes, attribute type { "text" | "html" }?, text atomXHTMLTextConstruct = atomCommonAttributes, attribute type { "xhtml" }, xhtmlDiv atomTextConstruct = atomPlainTextConstruct | atomXHTMLTextConstruct 
  • org.apache.axis.message.Text
    A representation of a node whose value is text. A Text object may represent text that is content or text that is a comment. @author Davanum Srinivas (dims@yahoo.com)
  • org.apache.hadoop.io.Text
    This class stores text using standard UTF8 encoding. It provides methods to serialize, deserialize, and compare texts at byte level. The type of length is integer and is serialized using zero-compressed format.

    In addition, it provides methods for string traversal without converting the byte array to a string.

    Also includes utilities for serializing/deserialing a string, coding/decoding a string, checking if a byte array contains valid UTF8 code, calculating the length of an encoded string.

  • org.apache.isis.viewer.dnd.drawing.Text
  • org.apache.lenya.notification.Text
    A translatable text with optional i18n parameters.
  • org.apache.openejb.jee.Text
    @version $Revision: 450758 $ $Date: 2006-09-28 03:40:18 -0500 (Thu, 28 Sep 2006) $
  • org.apache.pivot.wtk.media.drawing.Text
    Shape representing a block of text.
  • org.apache.sqoop.schema.type.Text
    String. JDBC Types: char, varchar, nchar, clob
  • org.apache.stanbol.entityhub.servicesapi.model.Text
    Defines a natural language text in a given language.

    The text MUST NOT be null nor an empty {@link String}. The language may be null (indicating the default language) or any kind of value. It is recommended to use ISO 639-1 codes (two Letter codes). By definition it is also allowed to use empty strings as language. However implementations of this interface are free to convert the empty language to null.

    Implementations of that interface MUST BE immutable @author Rupert Westenthaler

  • org.apache.struts2.components.Text
    Render a I18n text message.

    The message must be in a resource bundle with the same name as the action that it is associated with. In practice this means that you should create a properties file in the same package as your Java class with the same name as your class, but with .properties extension.

    If the named message is not found in a property file, then the body of the tag will be used as default message. If no body is used, then the stack will be searched, and if a value is returned, it will written to the output. If no value is found on the stack, the key of the message will be written out.

    Example:

      Accessing messages from a given bundle (the i18n Shop example bundle in the first example) and using bundle defined through the framework in the second example.

      <!-- First Example --> <s:i18n name="struts.action.test.i18n.Shop"> <s:text name="main.title"/> </s:i18n> <!-- Second Example --> <s:text name="main.title" /> <!-- Third Examlpe --> <s:text name="i18n.label.greetings"> <s:param >Mr Smith</s:param> </s:text>  
      <-- Fourth Example --> <s:text name="some.key" /> <-- Fifth Example --> <s:text name="some.invalid.key" > The Default Message That Will Be Displayed </s:text>  
    @see Param
  • org.atomojo.app.client.Text
    @author alex
  • org.beangle.struts2.view.components.Text
  • org.boris.expr.function.excel.TEXT
  • org.castor.xmlctf.xmldiff.xml.nodes.Text
    A class representing an XML Text node. @author Edward Kuns @version $Revision: 0000 $ $Date: 2007-01-11 00:00:00 -0600 (Thu, 11 Jan 2007) $ @since Castor 1.1
  • org.dbpedia.spotlight.model.Text
  • org.docx4j.wml.Text
    as.openxmlformats.org/wordprocessingml/2006/main>ST_String"> <attribute ref="{http://www.w3.org/XML/1998/namespace}space"/> </extension> </simpleContent> </complexType>
  • org.dom4j.Text

    Text defines an XML Text node.

    @author James Strachan @version $Revision: 1.7 $
  • org.drools.guvnor.server.files.Response.Text
  • org.drools.repository.remoteapi.Response.Text
  • org.dspace.app.xmlui.wing.element.Text
  • org.eclipse.graphiti.mm.algorithms.Text
  • org.eclipse.swt.widgets.Text
    ipse.org/swt/snippets/#text">Text snippets @see SWT Example: ControlExample @see Sample code and further information @noextend This class is not intended to be subclassed by clients.
  • org.elasticsearch.common.text.Text
    Text represents a (usually) long text data. We use this abstraction instead of {@link String}so we can represent it in a more optimized manner in memory as well as serializing it over the network as well as converting it to json format.
  • org.exist.xslt.expression.Text
    @author Dmitriy Shabanov
  • org.exoplatform.commons.utils.Text
    Represents text that can have several internal representations in order to minimize serialization when it is possible. The bytes returned by the byte oriented method must returned the data encoded with the UTF-8 encoding. @author Julien Viet @version $Revision$
  • org.geomajas.gwt.client.gfx.paintable.Text

    Paintable definition for drawing text onto a GraphicsWidget.

    @author Pieter De Graef
  • org.geotools.xml.Text
    Represents text encountered in the parse tree. @author Justin Deoliveira, OpenGeo @source $URL$
  • org.gwtbootstrap3.client.ui.html.Text
    Simple text node.

    UiBinder example

     {@code  ... }
    @author Sven Jacobs
  • org.hibernate.search.annotations.Text
  • org.htmlparser.Text
    This interface represents a piece of the content of the HTML document.
  • org.jdom.Text
    Character-based XML content. Provides a modular, parentable method of representing text. Text makes no guarantees about the underlying textual representation of character data, but does expose that data as a Java String. @version $Revision: 1.25 $, $Date: 2007/11/10 05:28:59 $ @author Brett McLaughlin @author Jason Hunter @author Bradley S. Huffman
  • org.jdom2.Text
    The FeatureCacheGraphicList is an extended OMGraphicList that knows what types of VPF features it holds. This allows it to be able to use a VPFFeatureGraphicWarehouse to set the proper DrawingAttributes on its contents.
  • org.openhab.model.sitemap.Text
  • org.openqreg.bean.Text
    This is the attributes class for the TEXT table.
  • org.pdfclown.documents.contents.objects.Text
    fanochizzolini.it) @since 0.0.4 @version 0.1.0
  • org.restlet.ext.atom.Text
    A Text construct contains human-readable text, usually in small quantities. The content of Text constructs is Language-Sensitive. @author Jerome Louvel
  • org.rometools.feed.module.mediarss.types.Text
    <media:text>

    Allows the inclusion of a text transcript, closed captioning, or lyrics of the media content. Many of these elements are permitted to provide a time series of text. In such cases, it is encouraged, but not required, that the elements be grouped by language and appear in time sequence order based on the start time. Elements can have overlapping start and end times. It has 4 optional attributes.

            <media:text type="plain" lang="en" start="00:00:03.000" end="00:00:10.000"> Oh, say, can you see</media:text> <media:text type="plain" lang="en" start="00:00:10.000" end="00:00:17.000">By the dawn's early light</media:text> 

    type specifies the type of text embedded. Possible values are either 'plain' or 'html'. Default value is 'plain'. All html must be entity-encoded. It is an optional attribute.

    lang is the primary language encapsulated in the media object. Language codes possible are detailed in RFC 3066. This attribute is used similar to the xml:lang attribute detailed in the XML 1.0 Specification (Third Edition). It is an optional attribute.

    start specifies the start time offset that the text starts being relevant to the media object. An example of this would be for closed captioning. It uses the NTP time code format (see: the time attribute used in <media:thumbnail>). It is an optional attribute.

    end specifies the end time that the text is relevant. If this attribute is not provided, and a start time is used, it is expected that the end time is either the end of the clip or the start of the next <media:text> element.

    @author cooper
  • org.thymeleaf.dom.Text

    A Text node in a Thymeleaf DOM tree.

    @author Daniel Fernández @since 2.0.0
  • org.vaadin.gwtgraphics.client.shape.Text
    Embed text into DrawingArea. @author Henri Kerola / IT Mill Ltd
  • org.w3c.dom.Text
    The Text interface inherits from CharacterData and represents the textual content (termed character data in XML) of an Element or Attr . If there is no markup inside an element's content, the text is contained in a single object implementing the Text interface that is the only child of the element. If there is markup, it is parsed into the information items (elements, comments, etc.) and Text nodes that form the list of children of the element.

    When a document is first made available via the DOM, there is only one Text node for each block of text. Users may create adjacent Text nodes that represent the contents of a given element without any intervening markup, but should be aware that there is no way to represent the separations between these nodes in XML or HTML, so they will not (in general) persist between DOM editing sessions. The normalize() method on Element merges any such adjacent Text objects into a single node for each block of text.

  • org.waveprotocol.wave.model.document.raw.impl.Text
    Mimics a DOM Text node.
  • org.zkoss.openlayers.layer.Text
    @author jumperchen
  • palmed.edit.text.Text
    This class handles the text. @author Mathieu Champlon @version $Revision$ $Date$
  • quickfix.field.Text
  • redis.seek.Text
  • rtype.entity.Text
  • seph.lang.Text
    @author Ola Bini
  • stephencarmody.k8.text.Text
  • yarfraw.core.datamodel.Text

  • Examples of org.atomojo.app.client.Text

                Set<String> ids = new TreeSet<String>();
                String base = T_BASE.toString();
                for (Entry entry : feed.getEntriesByTerm(T_LAYOUT)) {
                   String id = entry.getId();
                   ids.add(id);
                   Text text = entry.getContent();
                   URI location = text.getElement().getBaseURI().resolve(text.getSourceLink());
                   ScriptManager.Entry info = scriptManager.get(id);
                   if (info!=null && entry.getEdited().equals(info.getEdited())) {
                      getLogger().info("Script entry "+id+", location="+location+" not modified.");
                      continue;
                   }
    View Full Code Here

    Examples of org.beangle.struts2.view.components.Text

      public TextModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        super(stack, req, res);
      }

      protected Component getBean() {
        return new Text(stack);
      }
    View Full Code Here

    Examples of org.boris.expr.function.excel.TEXT

            assertResult("T(\"asdf\")", "asdf");
            assertException("T(123,24)");
        }

        public void testTEXT() throws Exception {
            TEXT t = new TEXT();
            assertEquals(eval(t, 0.4, "0%"), "40%");
            assertEquals(eval(t, 2800, "$0.00"), "$2800.00");
        }
    View Full Code Here

    Examples of org.castor.xmlctf.xmldiff.xml.nodes.Text

         * @param start First index of character for our new Text node
         * @param length count of characters for our Text node.
         * @throws org.xml.sax.SAXException never
         */
        public void characters(final char[] chars, final int start, final int length) throws org.xml.sax.SAXException {
            _currentNode.addChild(new Text(new String(chars, start, length)));
        }
    View Full Code Here

    Examples of org.dbpedia.spotlight.model.Text

            String keamodelfile = "/data/spotlight/3.7/kea/keaModel-1-3-1";
        KeaSpotter ks = new KeaSpotter(keamodelfile);

        String intext = "The last few decades have seen fundamental changes in food consumption patterns around the world. These changes were characterized not only by an increase in overall calorie intakes but also by a shift in the composition of the diet towards more meat, eggs, dairy products as well as more fats and oils, i.e. a shift towards high calorie diets that are also much richer in saturated fats and cholesterol. The main drivers of this transition include factors such as: (i) rapidly falling real prices for food; (ii) urbanization with the development of new marketing channels and the spread of supermarkets into developing countries; (iii) and freer trade and globalization with the emergence of large, trans-nationally operating food companies. This diet transition also brought about a rapid increase in the prevalence of overweight, obesity and related non-communicable diseases (NCDs). Initially, these problems were limited to developed countries, but more recently, there are growing concerns that the adverse effects of a rapid nutrition transition could even be more severe in developing countries. The growing health concerns have also given rise to a intense debate about possible remedies to stop and reverse the obesity epidemic in developed countries, and, perhaps even more importantly, to prevent similar developments in developing countries. Some of these policy options are being examined in this paper. The instruments analysed include price interventions, both at the level of primary commodities and final consumer goods (tax on fat food), direct incentives to reduce and disincentives to maintain an excess body weight; finally the paper also presents some experience gathered with a combination of various measures in integrated nutrition programmes. ";

        List<SurfaceFormOccurrence> sflst = ks.extract(new Text(intext));
        System.out.println("\n\nPrinting SurfaceOccurrences");
        for (SurfaceFormOccurrence so: sflst) {
          System.out.println(so.surfaceForm().name() + " : offset " + so.textOffset());
        }
      }
    View Full Code Here

    Examples of org.docx4j.wml.Text

                if (pPr.getInd()!=null) {

                  String actual = removeNamespaces(XmlUtils.marshaltoString(pPr.getInd(), true));

                  Text text = (Text)XmlUtils.unwrap(
                      ((R)p.getContent().get(0)).getContent().get(0));
                  String content = text.getValue();

                  // If contains [expect] [/expect], then test for this
                  // Since attributes can be in any order, work on an
                  // attribute by attribute basis.
                  if (content.indexOf(EXPECT_START)>=0) {
    View Full Code Here

    Examples of org.dom4j.Text

            String start = text.substring(0, offset);
            String rest = text.substring(offset);
            setText(start);

            Element parent = getParent();
            Text newText = createText(rest);

            if (parent != null) {
              parent.add(newText);
            }
    View Full Code Here

    Examples of org.drools.guvnor.server.files.Response.Text

        }

        private Response loadContent(String pkgName, String resourceFile) throws UnsupportedEncodingException {
            ModuleItem pkg = rulesRepository.loadModule(pkgName);
            if (resourceFile.equals(".package")) {
                Text r = new Response.Text();
                r.lastModified = pkg.getLastModified();
                r.data = pkg.getStringProperty( ModuleItem.HEADER_PROPERTY_NAME );
                return r;
            } else {
                if (resourceFile.indexOf("?version=") > -1) {
                    String[] v = resourceFile.split("\\?version\\=");
                    String version = v[1];
                    String assetName = AssetItem.getAssetNameFromFileName(v[0])[0];
                    AssetItem asset = pkg.loadAsset(assetName);
                    if (asset.isArchived()) {
                        Text r = new Text();
                        r.data = "";
                        return r;
                    }
                    if (version.equals("all")) {
                        AssetHistoryIterator it =  asset.getHistory();
                        StringBuilder buf = new StringBuilder();
                        while(it.hasNext()) {

                            AssetItem h = it.next();

                            if (h.getVersionNumber() != 0) {
                                String checkinComment = h.getCheckinComment();
                                //String lastMo ... hmm what is needed?
                                String lastMofiedBy = h.getLastContributor();
                                if (lastMofiedBy == null || lastMofiedBy.equals("")) {
                                    lastMofiedBy = asset.getCreator();
                                }
                                SimpleDateFormat sdf = getISODateFormat();
                                Calendar lastModDate = h.getLastModified();
                                if (lastModDate == null ) {
                                    lastModDate = asset.getCreatedDate();
                                }
                                String lastModifiedOn = sdf.format(lastModDate.getTime());
                                buf.append(h.getVersionNumber());
                                buf.append("=");
                                buf.append(lastModifiedOn + "," + lastMofiedBy + "," + checkinComment);
                                if (it.hasNext()) {
                                    buf.append('\n');
                                }
                            }

                        }
                        Text r = new Text();
                        r.lastModified = asset.getLastModified();
                        r.data = buf.toString();
                        return r;
                    } else {
                        long versionNumber = Long.parseLong(version);
                        AssetHistoryIterator it =  asset.getHistory();
                        while (it.hasNext()) {
                            AssetItem h = it.next();
                            if (h.getVersionNumber() == versionNumber) {
                                return buildAssetContentResponse(pkg, h);
                            }
                        }
                        //hmm... we didn't find it
                        Text r = new Text();
                        r.lastModified = asset.getLastModified();
                        r.data = "Unknown version number : " + versionNumber;
                        return r;
                    }
                } else {
    View Full Code Here

    Examples of org.drools.repository.remoteapi.Response.Text

      }

      private Response loadContent(String pkgName, String resourceFile) throws UnsupportedEncodingException {
        PackageItem pkg = repo.loadPackage(pkgName);
        if (resourceFile.equals(".package")) {
          Text r = new Response.Text();
          r.lastModified = pkg.getLastModified();
          r.data = pkg.getStringProperty( PackageItem.HEADER_PROPERTY_NAME );
          return r;
        } else {
          if (resourceFile.indexOf("?version=") > -1) {
            String[] v = resourceFile.split("\\?version\\=");
            String version = v[1];
            String assetName = AssetItem.getAssetNameFromFileName(v[0])[0];
            AssetItem asset = pkg.loadAsset(assetName);
            if (asset.isArchived()) {
              Text r = new Text();
              r.data = "";
              return r;
            }
            if (version.equals("all")) {
              AssetHistoryIterator it =  asset.getHistory();
              StringBuilder buf = new StringBuilder();
              while(it.hasNext()) {

                AssetItem h = it.next();

                if (h.getVersionNumber() != 0) {
                  String checkinComment = h.getCheckinComment();
                  //String lastMo ... hmm what is needed?
                  String lastMofiedBy = h.getLastContributor();
                  if (lastMofiedBy == null || lastMofiedBy.equals("")) {
                    lastMofiedBy = asset.getCreator();
                  }
                  SimpleDateFormat sdf = getISODateFormat();
                  Calendar lastModDate = h.getLastModified();
                  if (lastModDate == null ) {
                    lastModDate = asset.getCreatedDate();
                  }
                  String lastModifiedOn = sdf.format(lastModDate.getTime());
                  buf.append(h.getVersionNumber());
                  buf.append("=");
                  buf.append(lastModifiedOn + "," + lastMofiedBy + "," + checkinComment);
                  if (it.hasNext()) {
                    buf.append('\n');
                  }
                }

              }
              Text r = new Text();
              r.lastModified = asset.getLastModified();
              r.data = buf.toString();
              return r;
            } else {
              long versionNumber = Long.parseLong(version);
              AssetHistoryIterator it =  asset.getHistory();
              while (it.hasNext()) {
                AssetItem h = it.next();
                if (h.getVersionNumber() == versionNumber) {
                  return buildAssetContentResponse(pkg, h);
                }
              }
              //hmm... we didn't find it
              Text r = new Text();
              r.lastModified = asset.getLastModified();
              r.data = "Unknown version number : " + versionNumber;
              return r;
            }
          } else {
    View Full Code Here

    Examples of org.dspace.app.xmlui.wing.element.Text

        private void buildQueryField(int row, Cell cell) throws WingException
        {
            Request request = ObjectModelHelper.getRequest(objectModel);
            String current = URLDecode(request.getParameter("query" + row));

            Text text = cell.addText("query" + row);
            if (current != null)
                text.setValue(current);
        }
    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.