Package org.geotools.xml.schema

Examples of org.geotools.xml.schema.Group


        cache.min = this.minOccurs;
        cache.max = this.maxOccurs;
        cache.child = (this.child == null) ? null
              : this.child.compress(parent); // deal with all/choice/sequnce
        if (ref != null) {
            Group g = parent.lookUpGroup(ref);
            if (g != null) {
                if ((id == null) || "".equalsIgnoreCase(id)) {
                    id = g.getId();
                }

                cache.min = g.getMinOccurs();
                cache.max = g.getMaxOccurs();
                cache.name = g.getName();
                cache.namespace = g.getNamespace();
               
                cache.child = (g.getChild() == null) ? cache.child : g.getChild();
            }
        }

        child = null;
View Full Code Here


        if (s.getImports() != null) {
            Schema[] ss = s.getImports();

            for( int i = 0; (ss != null) && (i < ss.length); i++ ) {
                if (!targets.contains(ss[i].getTargetNamespace())) {
                    Group st = lookUpGroup(localName, ss[i], targets);

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

                while( it.hasNext() ) {
                    Schema s = (Schema) it.next();
                    String ns = s.getTargetNamespace().toString();
                    String prefixLookup = prefixCache != null ? (String) prefixCache.get(ns) : null;
                    if (prefix1 == null || prefixLookup == null || prefix1.equals(prefixLookup)) {
                        Group ct = lookUpGroup(localName, s, new TreeSet());
                        if (ct != null) {
                            return ct;
                        }
                    }
                }
            }
        }

        if (groups != null) {
            it = groups.iterator();

            while( it.hasNext() ) {
                Object o = it.next();

                if (o instanceof GroupHandler) {
                    GroupHandler sst = (GroupHandler) o;

                    if (localName.equalsIgnoreCase(sst.getName())) {
                        return (Group) sst.compress(this);
                    }
                } else {
                    Group sst = (Group) o;

                    if (localName.equalsIgnoreCase(sst.getName())) {
                        return sst;
                    }
                }
            }
        }
View Full Code Here

                return new DefaultSequence((Choice) extensionBaseType, extensionChild);
               
        case ElementGrouping.GROUP:
            logger.finest("ElementGrouping eg is GROUP in loadNewEG");

                Group baseGroup = (Group) extensionBaseType;

                if (baseGroup.getChild() == null) {
                    return extensionChild;
                }
                return loadNewEG(baseGroup.getChild(),extensionChild,parent);

        case ElementGrouping.SEQUENCE:
            logger.finest("ElementGrouping eg is SEQUENCE");
                return new DefaultSequence((Sequence) extensionBaseType,extensionChild);
View Full Code Here

TOP

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

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.