Examples of SchemaProperty


Examples of org.apache.xmlbeans.SchemaProperty

     * same name, or at the very first slot if it is the first elt
     * with that name).
     */
    public final QNameSet get_element_ending_delimiters(QName eltname)
    {
        SchemaProperty prop = schemaType().getElementProperty(eltname);
        if (prop == null)
            return null;
        return prop.getJavaSetterDelimiter();
    }
View Full Code Here

Examples of org.apache.xmlbeans.SchemaProperty

                throw new DeploymentException("ConstructorParameterOrder can only be set for complex types, not " + faultTypeQName);
            }
            Map elementMap = new HashMap();
            SchemaProperty[] properties = complexType.getProperties();
            for (int i = 0; i < properties.length; i++) {
                SchemaProperty property = properties[i];
                QName elementName = property.getName();
                SchemaType elementType = property.getType();
                elementMap.put(elementName.getLocalPart(), elementType);
            }
            ArrayList parameterTypes = new ArrayList();
            ConstructorParameterOrderType constructorParameterOrder = exceptionMapping.getConstructorParameterOrder();
            for (int i = 0; i < constructorParameterOrder.getElementNameArray().length; i++) {
View Full Code Here

Examples of org.apache.xmlbeans.SchemaProperty

      pw.println( "\tpublic static interface " + INTERFACE_NAME__PROPERTY_QNAMES );
      pw.println( "\t{" );

      for ( Iterator iter = propSchemaMap.keySet(  ).iterator(  ); iter.hasNext(  ); )
      {
         SchemaProperty schemaProp = (SchemaProperty) propSchemaMap.get( iter.next(  ) );
         pw.println( "\t\t/** Property: " + schemaProp.getName(  ) + " */" );
         pw.print( "\t\t " + ClassNames.QNAME + " " );
         pw.print( CodeGenUtils.toJavaConstantName( schemaProp ) + " = " );
         pw.println( "new " + ClassNames.QNAME + "( \"" + schemaProp.getName(  ).getNamespaceURI(  ) + "\" , \""
                     + schemaProp.getName(  ).getLocalPart(  ) + "\" );" );
      }

      pw.println( "\t}" );
      pw.println(  );
   }
View Full Code Here

Examples of org.apache.xmlbeans.SchemaProperty

      List             metricQNames = new ArrayList(  );
      SchemaProperty[] schemas = schemaType.getElementProperties(  );

      for ( int i = 0; i < schemas.length; i++ )
      {
         SchemaProperty schema       = schemas[i];
         SchemaProperty metricAttrib =
            schema.getType(  ).getAttributeProperty( Muws05Constants.METRIC_ATTRIBUTE_LAST_UPDATED );

         if ( metricAttrib != null )
         {
            metricQNames.add( schema.getName(  ) );
View Full Code Here

Examples of org.apache.xmlbeans.SchemaProperty

   {
      boolean needElse = false;

      for ( Iterator iter = propSchemaMap.keySet(  ).iterator(  ); iter.hasNext(  ); )
      {
         SchemaProperty schemaProp = (SchemaProperty) propSchemaMap.get( iter.next(  ) );
         if ( excludedPropQNames.contains( schemaProp.getName(  ) ) )
         {
            continue;
         }

         pw.print( "\t\t" );

         if ( needElse )
         {
            pw.print( "else " );
         }

         pw.print( "if ( qname.equals(" + IntermediateWSResourceClassWriter.INTERFACE_NAME__PROPERTY_QNAMES + "."
                   + schemaProp.getJavaPropertyName(  ).toUpperCase(  ) + " ) )\n" );
         pw.print( "\t\t{\n" );
         pw.print( "\t\t\t// TODO: " + comment + ": " + schemaProp.getName(  ) + "\n" );
         pw.print( "\t\t}\n" );

         needElse = true;
      }
   }
View Full Code Here

Examples of org.apache.xmlbeans.SchemaProperty

      pw.print( "\t{\n" );
      pw.print( "\t\t// Make calls to register all properties that participate in property change notifications.\n" );
      pw.print( "\t\t// TODO: if any resource properties should not emit property change notifications, remove their registrations from below.\n" );
      for ( Iterator iter = propSchemaMap.keySet(  ).iterator(  ); iter.hasNext(  ); )
      {
         SchemaProperty schemaProp = (SchemaProperty) propSchemaMap.get( iter.next(  ) );
         pw.print( "\t\tregisterPropertyForChangeNotification( " + INTERFACE_NAME__PROPERTY_QNAMES + "."
                   + CodeGenUtils.toJavaConstantName( schemaProp ) + " );\n" );
      }

      pw.print( "\t}\n\n" );
View Full Code Here

Examples of org.apache.xmlbeans.SchemaProperty

      pw.print( " qname )\n" );
      pw.print( "\t{\n" );
      Set nonOptionalPropQNames = new HashSet(  );
      for ( Iterator iter = propSchemaMap.keySet(  ).iterator(  ); iter.hasNext(  ); )
      {
         SchemaProperty schemaProp = (SchemaProperty) propSchemaMap.get( iter.next(  ) );
         if ( schemaProp.getMinOccurs(  ).compareTo( BigInteger.ZERO ) != 0 )
         {
            nonOptionalPropQNames.add( schemaProp.getName(  ) );
         }
      }

      generatePropertyIfElse( pw, propSchemaMap, "remove property", nonOptionalPropQNames );
      pw.print( "\t\treturn true;\n" );
View Full Code Here

Examples of org.apache.xmlbeans.SchemaProperty

    {
        assert(_isComplexContent());
        if (!_isComplexContent())
            throw new IllegalStateException();

        SchemaProperty prop = schemaType().getElementProperty(eltName);
        if (prop == null)
            return "";
        return prop.getDefaultText();
    }
View Full Code Here

Examples of org.apache.xmlbeans.SchemaProperty

    {
        assert(_isComplexType());
        if (!_isComplexType())
            throw new IllegalStateException();

        SchemaProperty prop = schemaType().getAttributeProperty(attrName);
        if (prop == null)
            return "";
        return prop.getDefaultText();
    }
View Full Code Here

Examples of org.apache.xmlbeans.SchemaProperty

    public int get_elementflags(QName eltName)
    {
        if (!_isComplexContent())
            return 0;

        SchemaProperty prop = schemaType().getElementProperty(eltName);
        if (prop == null)
            return 0;
        if (prop.hasDefault() == SchemaProperty.VARIABLE ||
            prop.hasFixed() == SchemaProperty.VARIABLE ||
            prop.hasNillable() == SchemaProperty.VARIABLE)
            return -1;
        return
            (prop.hasDefault() == SchemaProperty.NEVER ? 0 : TypeStore.HASDEFAULT) |
            (prop.hasFixed() == SchemaProperty.NEVER ? 0 : TypeStore.FIXED) |
            (prop.hasNillable() == SchemaProperty.NEVER ? 0 : TypeStore.NILLABLE);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.