Package org.geotools.xml.schema

Examples of org.geotools.xml.schema.Element


    public Element findChildElement(String localName, URI namespaceURI) {
      if (children == null) {
                return null;
            }
            for (int i = 0; i < children.length; i++) {
                Element t = children[i].findChildElement(localName,namespaceURI);
                if (t != null) { // found it

                    return t;
                }
            }
View Full Code Here


            if (value.length > 1) {
                throw new SAXException("Cannot have more than one geom per "
                    + getName());
            }

            Element e = value[0].getElement();

            if (e == null) {
                throw new SAXException(
                    "Internal error, ElementValues require an associated Element.");
            }
View Full Code Here

            return instance;
        }

        private static Element[] elems = loadE();
        private static Element[] loadE(){
            Element exp = new FilterElement("expression",
                    ExpressionType.getInstance()) {
                public boolean isAbstract() {
                    return true;
                }
            };
View Full Code Here

        /**
         * @see org.geotools.xml.xsi.ComplexType#findChildElement(java.lang.String)
         */
        public Element findChildElement(String name1) {
            Element e = (child == null) ? null : child.findChildElement(name1);
            e = e==null?(parent==null?null:parent.findChildElement(name1)):e;
            return e;
        }
View Full Code Here

                }else if (type instanceof ComplexType) {
                    ComplexType complex = (ComplexType) type;
                    Element[] children = complex.getChildElements();
                    boolean found=false;
                    for (int i = 0; i < children.length; i++) {
                        Element child = children[i];
                        if( child.getType().canEncode(child, value, hints) ){
                            child.getType().encode(child, value, output, hints);
                            found=true;
                        }
                    }
                    if( !found )
                        throw new RuntimeException(
View Full Code Here

            if (value.length > 1) {
                throw new SAXException("Cannot have more than one geom per "
                    + getName());
            }

            Element e = value[0].getElement();

            if (e == null) {
              if(!element.isNillable())
                throw new SAXException(
                      "Internal error, ElementValues require an associated Element.");
View Full Code Here

            if (children == null) {
                return null;
            }

            for (int i = 0; i < children.length; i++) {
                Element t = children[i].findChildElement(name);

                if (t != null) { // found it

                    return t;
                }
View Full Code Here

      if (children == null) {
                return null;
            }

            for (int i = 0; i < children.length; i++) {
                Element t = children[i].findChildElement(localName, namespaceURI);

                if (t != null) { // found it

                    return t;
                }
View Full Code Here

            if (value.length > 1) {
                throw new SAXException("Cannot have more than one geom per "
                    + getName());
            }

            Element e = value[0].getElement();

            if (e == null) {
              if(!element.isNillable())
                throw new SAXException(
                      "Internal error, ElementValues require an associated Element.");
View Full Code Here

    public static FilterSchema getInstance() {
        return instance;
    }

    private static Element[] loadElements() {
        Element comparisonOps = new FilterElement("comparisonOps",
                ComparisonOpsType.getInstance()) {
                public boolean isAbstract() {
                    return true;
                }
            };

        Element spatialOps = new FilterElement("spatialOps",
                SpatialOpsType.getInstance()) {
                public boolean isAbstract() {
                    return true;
                }
            };

        Element logicOps = new FilterElement("logicOps",
                LogicOpsType.getInstance()) {
                public boolean isAbstract() {
                    return true;
                }
            };

        Element expression = new FilterElement("expression",
                ExpressionType.getInstance()) {
                public boolean isAbstract() {
                    return true;
                }
            };
View Full Code Here

TOP

Related Classes of org.geotools.xml.schema.Element

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.