Package org.opengis.filter.identity

Examples of org.opengis.filter.identity.Identifier


     * @param att
     *            The complex attribute itself
     */
    private void checkXlinkHref(ComplexAttribute att) {

        Identifier ident = att.getIdentifier();
        if (ident == null) {
            return;
        }
        String id;
        if (ident instanceof FeatureId) {
            id = ((FeatureId) ident).getRid();
        } else {
            id = Converters.convert(ident.getID(), String.class);
        }
        if (idSet.idExists(id)) {
            // XSD type ids can only appear once in the same document, otherwise the document is
            // not schema valid. Attributes of the same ids should be encoded as xlink:href to
            // the existing attribute.
View Full Code Here


                // we are checking the type, not the object as FeatureImpl, because they could still
                // be non-features that are constructed as features for the purpose of feature
                // chaining.
                return;
            }
            Identifier ident = object.getIdentifier();
            if (ident == null) {
                return;
            }
            String id = Converters.convert(ident.getID(), String.class);
            if (idSet.idExists(id)) {
                // XSD type ids can only appear once in the same document, otherwise the document is
                // not schema valid. Attributes of the same ids should be encoded as xlink:href to
                // the existing attribute.
                Object clientProperties = att.getUserData().get(Attributes.class);
View Full Code Here

        try {
            if (ids.size() > 1) {
                out.write("(");
            }
            for (Iterator i = ids.iterator(); i.hasNext();) {
                Identifier id = (Identifier) i.next();
                Object[] attValues = mapper.getPKAttributes(id.toString());

                out.write("(");

                for (int j = 0; j < attValues.length; j++) {
                    out.write( escapeName(colNames[j]) );
View Full Code Here

    StringBuilder ecql = FilterToTextUtil.asStringBuilder(extraData);
    ecql.append("IN (");

    Iterator<Identifier> iter = filter.getIdentifiers().iterator();
    while (iter.hasNext()) {
      Identifier identifier = iter.next();
      String id = identifier.toString();

      // CHANGE FROM GEOTOOLS: look for identifiers with non-alphanumeric
      // characters
      boolean needsQuotes = id.matches(".*(\\.|\\-|\\+|\\*|\\/).*");

 
View Full Code Here

            if (idFilter.getIdentifiers().size() > 1) {
                //there should only be one type of id specified
                HashSet types = new HashSet();

                for (Iterator i = idFilter.getIdentifiers().iterator(); i.hasNext();) {
                    Identifier id = (Identifier) i.next();
                    types.add(id.getClass());
                }

                if (types.size() != 1) {
                    throw new Exception("Only one type of Id can be supplied in a single filter");
                }
View Full Code Here

            if (idFilter.getIdentifiers().size() > 1) {
                //there should only be one type of id specified
                HashSet types = new HashSet();

                for (Iterator i = idFilter.getIdentifiers().iterator(); i.hasNext();) {
                    Identifier id = (Identifier) i.next();
                    types.add(id.getClass());
                }

                if (types.size() != 1) {
                    throw new Exception("Only one type of Id can be supplied in a single filter");
                }
View Full Code Here

TOP

Related Classes of org.opengis.filter.identity.Identifier

Copyright © 2018 www.massapicom. 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.