Package org.geotools.xml.schema

Examples of org.geotools.xml.schema.Element


            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


         * @throws OperationNotSupportedException
         * @see schema.Type#getValue(java.util.List)
         */
        public Object getValue(Element element, ElementValue[] value,
            Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException {
            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

        /**
         * @see schema.Type#getValue(java.util.List)
         */
        public Object getValue(Element element, ElementValue[] value,
            Attributes attrs, Map hints) throws SAXException {
            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

            SimpleFeatureType ft = f.getFeatureType();
            List<AttributeDescriptor> ats = ft.getAttributeDescriptors();
            if (ats != null) {
                for (int i = 0; i < ats.size(); i++) {
                    Element e2 = e.findChildElement(ats.get(i).getLocalName());
                    e2.getType().encode(e2, f.getAttribute(i), ph, hints);
                }
            }

            ph.endElement(e.getNamespace(), e.getName());
        }
View Full Code Here

     * @see org.geotools.xml.schema.ElementGrouping#findChildElement(java.lang.String)
     */
    public Element findChildElement(String name) {
        if (children != null) {
            for (int i = 0; i < children.length; i++) {
                Element e = children[i].findChildElement(name);

                if (e != null) {
                    return e;
                }
            }
View Full Code Here

    }

  public Element findChildElement(String localName, URI namespaceURI) {
    if (children != null) {
            for (int i = 0; i < children.length; i++) {
                Element e = children[i].findChildElement(localName, namespaceURI);

                if (e != null) {
                    return e;
                }
            }
View Full Code Here

     * @see org.geotools.xml.schema.ElementGrouping#findChildElement(java.lang.String)
     */
    public Element findChildElement( String name ) {
        if (elements != null) {
            for (int i = 0; i < elements.length; i++) {
                Element e = elements[i].findChildElement(name);

                if (e != null) {
                    return e;
                }
            }
View Full Code Here

    }

  public Element findChildElement(String localName, URI namespaceURI) {
    if (elements != null) {
            for (int i = 0; i < elements.length; i++) {
                Element e = elements[i].findChildElement(localName, namespaceURI);

                if (e != null) {
                    return e;
                }
            }
View Full Code Here

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

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

            if (e != null) {
                return e;
            }
        }
View Full Code Here

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

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

            if (e != null) {
                return e;
            }
        }
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.