Package org.geotools.xml.schema

Examples of org.geotools.xml.schema.ElementGrouping


            case ElementGrouping.ELEMENT:
                return new Element[] { (Element) child11, };

            case ElementGrouping.GROUP:

                ElementGrouping c = ((Group) child11).getChild();
                if(c == null)
                  return new Element[0];
                return getChildElements(c);

            case ElementGrouping.SEQUENCE:
View Full Code Here


        build.setName(ftName);
        build.setNamespaceURI( ftNS );
       
        GeometryDescriptor geometryAttribute = null;

        ElementGrouping child = ((ComplexType)element.getType()).getChild();
//        FeatureType parent = null;
//        if(((ComplexType)element.getType()).getParent()instanceof ComplexType)
//            parent = createFeatureType((ComplexType)((ComplexType)element.getType()).getParent());

//        if(parent != null && parent.getAttributeDescriptors()!=null){
View Full Code Here

        build.setNamespaceURI(ftNS);
        build.setName(ftName);

        GeometryDescriptor geometryAttribute = null;

        ElementGrouping child = (element).getChild();

        List<AttributeDescriptor> attrs = getAttributes(element.getName(),child);
        for( AttributeDescriptor attributeDescriptor : attrs ){
            if(attributeDescriptor==null) continue;
           
View Full Code Here

          if(eg.getType() instanceof SimpleType){
              type = eg.getType().getInstanceType();
          }else{
              if(Object.class.equals(eg.getType().getInstanceType()) || Object[].class.equals(eg.getType().getInstanceType())){
                  // some work now
                  ElementGrouping child = ((ComplexType)eg.getType()).getChild();
                  if(child != null){
                      List l = getAttributes(eg.getName(),child);
                      if(l.isEmpty()){
                          // who knows ... this really shouldn't happen
                          type = eg.getType().getInstanceType();
View Full Code Here

            i = arg0.getMinOccurs() - arg1.getMinOccurs();
            if (i != 0)
                return i;

            ElementGrouping a0 = arg0.getChild();
            ElementGrouping a1 = arg1.getChild();

            if (a0 == a1)
                return 0;
            if (a0 == null)
                return 1;
View Full Code Here

public class XMLTypeHelper {

  public static Element findChildElement(Type type, String localName, URI namespaceURI) {
    if( type instanceof ComplexType ){
      ComplexType complexType=(ComplexType) type;
      ElementGrouping child = complexType.getChild();
      if( child!=null){
        Element found=child.findChildElement(localName, namespaceURI);
        if( found!=null )
          return found;
      }
      Element[] children = complexType.getChildElements();
      if( children==null || children.length==0)
View Full Code Here

            ai.addAttribute("", "mixed", "", "boolean", "true");
        }

        ph.startElement(XSISimpleTypes.NAMESPACE, "complexType", ai);

        ElementGrouping egs = complexType.getChild();
        complexType.getChild();

        // TODO determine if this complexType isDerived ... and make a complexContent or Simplecontent to match
        if (egs != null) {
            switch (egs.getGrouping()) {
            // TODO determine if this will work
            //                      case ElementGrouping.COMPLEXCONTENT:
            //                          writeAny((ComplexContent)egs,schema,ph,hints);
            //                          break;
            //                      case ElementGrouping.SIMPLECONTENT:
View Full Code Here

                            + " and found "
                            + ((ct == null) ? null
                                            : (ct.getName() + ":::"
                            + ct.getNamespace())) + " for " + name);

                        ElementGrouping extensionBaseType = ct.getChild();
            ElementGrouping extensionChild =  ((ElementGroupingHandler)ext.getChild()).compress(parent);
                        dct.child = loadNewEG(extensionBaseType,extensionChild, parent); // note should override element def only ... not spot
                    } else {
                      if (ct != null)
                        dct.child = ct.getChild();
                    }
View Full Code Here

TOP

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

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.