Examples of TextValue


Examples of net.sourceforge.fullsync.rules.filefilter.values.TextValue

        if (patternsType.equals("RegExp")) {
          if (!ignorePattern.equals("") && (takePattern.equals(""))) {
            fileFilter = new FileFilter();
            fileFilter.setMatchType(FileFilter.MATCH_ALL);
            fileFilter.setFilterType(FileFilter.EXCLUDE);
            FileFilterRule[] rules = new FileFilterRule[] { new FileNameFileFilterRule(new TextValue(ignorePattern),
                FileNameFileFilterRule.OP_MATCHES_REGEXP) };
            fileFilter.setFileFilterRules(rules);
            useFilter = true;
          }
          if (ignorePattern.equals("") && (!takePattern.equals(""))) {
            fileFilter = new FileFilter();
            fileFilter.setMatchType(FileFilter.MATCH_ALL);
            fileFilter.setFilterType(FileFilter.INCLUDE);
            FileFilterRule[] rules = new FileFilterRule[] { new FileNameFileFilterRule(new TextValue(takePattern),
                FileNameFileFilterRule.OP_MATCHES_REGEXP) };
            fileFilter.setFileFilterRules(rules);
            useFilter = true;
          }
          if (!ignorePattern.equals("") && (!takePattern.equals(""))) {
            fileFilter = new FileFilter();
            fileFilter.setMatchType(FileFilter.MATCH_ALL);
            fileFilter.setFilterType(FileFilter.EXCLUDE);
            FileFilterRule[] rules = new FileFilterRule[] {
                new FileNameFileFilterRule(new TextValue(ignorePattern), FileNameFileFilterRule.OP_MATCHES_REGEXP),
                new FileNameFileFilterRule(new TextValue(takePattern), FileNameFileFilterRule.OP_DOESNT_MATCHES_REGEXP) };
            fileFilter.setFileFilterRules(rules);
            useFilter = true;
          }
        }
        else {
View Full Code Here

Examples of org.apache.abdera.model.TextValue

            if (child instanceof Element) {
                writeElement((Element)child, parentqname, jstream);
                if (n < children.length - 1)
                    jstream.writeSeparator();
            } else if (child instanceof TextValue) {
                TextValue textvalue = (TextValue)child;
                String value = textvalue.getText();
                if (!element.getMustPreserveWhitespace()) {
                    if (!value.matches("\\s*")) {
                        jstream.writeQuoted(value.trim());
                        if (n < children.length - 1)
                            jstream.writeSeparator();
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.xml.TextValue

                    // always assume single-valued property for the time being
                    // until a way of properly serializing/detecting multi-valued
                    // properties on re-import is found (see JCR-325);
                    // see also DocViewSAXEventGenerator#leavingProperties(Node, int)
                    // TODO proper multi-value serialization support
                    TextValue tv = new StringValue(attrValue, sessionContext.getValueFactory(), currentNamePathMapper());
                    props.add(new PropInfo(propNameInfo.getRepoQualifiedName(), PropertyType.UNDEFINED, tv));
                }
            }

            NodeInfo node = new NodeInfo(nameInfo.getRepoQualifiedName(), nodeTypeName, mixinTypes, id);
View Full Code Here

Examples of org.gedcomx.common.TextValue

    try {
      SourceDescription gedxSourceDescription = new SourceDescription();
      gedxSourceDescription.setId(dqSource.getId());

      if (dqSource.getAbbreviation() != null) {
        gedxSourceDescription.setTitles(Arrays.asList(new TextValue(dqSource.getAbbreviation())));
      }
      else if (dqSource.getTitle() != null) {
        gedxSourceDescription.setTitles(Arrays.asList(new TextValue(dqSource.getTitle())));
      }

      org.gedcomx.source.SourceCitation citation = new org.gedcomx.source.SourceCitation();
      citation.setCitationTemplate(new ResourceReference(URI.create("gedcom5:citation-template")));
      citation.setFields(new ArrayList<CitationField>());
View Full Code Here

Examples of org.gedcomx.common.TextValue

    return pattern.matcher(telephoneNumber).matches();
  }

  public static void populateAgent(Agent agent, String id, String name, org.folg.gedcom.model.Address address, String phone, String fax, String email, String www) {
    agent.setId(id);
    agent.setNames(Arrays.asList(new TextValue(name)));

    if(address != null) {
      agent.setAddresses(new ArrayList<Address>());
      Address gedxAddress = new Address();
      gedxAddress.setValue(address.getValue());
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.