Examples of PropertyName


Examples of org.apache.webdav.lib.PropertyName

                    } else {
                        i++;
                    }
                }
                if ((i == 1) || (i >= length)) {
                    list.add(new PropertyName("DAV:", propertyName));
                } else {
                    String namespace = propertyName.substring(0, length + 1 - i);
                    String localName = propertyName.substring(length + 1 - i);
                    list.add(new PropertyName(namespace, localName));
                }
            } else {
                // unknown type
                // ignore
            }
View Full Code Here

Examples of org.apache.webdav.lib.PropertyName

                    } else {
                        i++;
                    }
                }
                if ((i == 1) || (i >= length)) {
                    list.add(new PropertyName("DAV:",propertyName));
                } else {
                    String namespace = propertyName.substring(0, length + 1 - i);
                    String localName = propertyName.substring(length + 1 - i);
                    list.add(new PropertyName(namespace,localName));
                }
            }
            else
            {
                // unknown type
View Full Code Here

Examples of org.apache.webdav.lib.PropertyName

                    } else {
                        i++;
                    }
                }
                if ((i == 1) || (i >= length)) {
                    list.add(new PropertyName("DAV:",propertyName));
                } else {
                    String namespace = propertyName.substring(0, length + 1 - i);
                    String localName = propertyName.substring(length + 1 - i);
                    list.add(new PropertyName(namespace,localName));
                }
            }
            else
            {
                // unknown type
View Full Code Here

Examples of org.apache.webdav.lib.PropertyName

                if (types[i].equals(principal)) {
                    found = true;
                    if ("property".equals(principal)) {
                        printer.writeElement("D", null, principal,
                                             XMLPrinter.OPENING);
                        PropertyName property = ace.getProperty();
                        String nsURI = property.getNamespaceURI();
                        if ("DAV:".equals(nsURI)) {
                            printer.writeElement("D", null,
                                                 property.getLocalName(),
                                                 XMLPrinter.NO_CONTENT);
                        } else {
                            printer.writeElement("Z", nsURI,
                                                 property.getLocalName(),
                                                 XMLPrinter.NO_CONTENT);
                        }
                        printer.writeElement("D", null, principal,
                                             XMLPrinter.CLOSING);
                    } else {
View Full Code Here

Examples of org.fest.reflect.beanproperty.PropertyName

   * @throws NullPointerException     if the given name is {@code null}.
   * @throws IllegalArgumentException if the given name is empty.
   * @since 1.2
   */
  public static @Nonnull PropertyName property(@Nonnull String name) {
    return new PropertyName(name);
  }
View Full Code Here

Examples of org.opengis.filter.expression.PropertyName

   * @param upper
   *            A literal. A string that can be converted to a double.
   * @return filter
   */
  public Filter createBetweenFilter(String name, String lower, String upper) {
    PropertyName attrib = FF.property(name);
    Expression d1 = FF.literal(lower);
    Expression d2 = FF.literal(upper);
    return FF.between(attrib, d1, d2);
  }
View Full Code Here

Examples of org.opengis.filter.expression.PropertyName

   *            Expression to compare with.
   * @return filter
   */
  public Filter createLikeFilter(String name, String pattern) {

    PropertyName attrib = FF.property(name);
    return FF.like(attrib, pattern, "*", "?", "\\");
  }
View Full Code Here

Examples of org.opengis.filter.expression.PropertyName

   * @param value
   *            A literal. The actual value (as string).
   * @return filter
   */
  public Filter createCompareFilter(String name, String comparator, String value) {
    PropertyName attrib = FF.property(name);
    Expression val = FF.literal(value);
    if ("<".equals(comparator)) {
      return FF.less(attrib, val);
    } else if (">".equals(comparator)) {
      return FF.greater(attrib, val);
View Full Code Here

Examples of org.opengis.filter.expression.PropertyName

   * @param value
   *            A literal. A string that can be converted to a double.
   * @return filter
   */
  public Filter createCompareFilter(String name, String comparator, Date value) {
    PropertyName attrib = FF.property(name);
    Expression val = FF.literal(value);
    if ("<".equals(comparator)) {
      return FF.less(attrib, val);
    } else if (">".equals(comparator)) {
      return FF.greater(attrib, val);
View Full Code Here

Examples of org.opengis.filter.expression.PropertyName

        extGraphic.setFormat(format);
    }

    protected String expressionToString( Expression expression ) {
        if (expression instanceof PropertyName) {
            PropertyName pName = (PropertyName) expression;
            return pName.getPropertyName();
        }

        if (expression instanceof LiteralExpressionImpl) {
            LiteralExpressionImpl pName = (LiteralExpressionImpl) expression;
            return pName.getValue().toString();
        }

        Integer evaluateInt = expression.evaluate(null, Integer.class);
        if (evaluateInt != null) {
            return evaluateInt.toString();
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.