Examples of schemaType()


Examples of org.apache.xmlbeans.XmlObject.schemaType()

        try {
            if (findNestedElement(cursor, desiredElement)) {
                XmlObject child = cursor.getObject();
                //The copy seems to be needed to make the type change work for some documents!
                XmlObject result = child.copy().changeType(type);
                assert result.schemaType() == type;
                return result;
            }
        } finally {
            cursor.dispose();
        }
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject.schemaType()

         XmlObject siblingXmlObject      = xmlCursor.getObject(  );
         QName     siblingXmlObjectQname = getXmlObjectQname( siblingXmlObject );

         //todo should this be tested against the original bean
         //if it contains the ElementProperty, then it is not an Any
         if ( siblingXmlObject.schemaType(  ).getElementProperty( siblingXmlObjectQname ) != null )
         {
            continue;
         }

         //check to see if we have a xmlObjectList to add to for this QName
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject.schemaType()

   private void validateAllNonOptionalPropertiesAreInitialized(  )
   throws Exception
   {
      XmlObject        propsXBean              = getPropertiesXmlBean(  );
      SchemaProperty[] elemProps               = propsXBean.schemaType(  ).getElementProperties(  );
      List             unsetRequiredPropQNames = new ArrayList(  );
      for ( int i = 0; i < elemProps.length; i++ )
      {
         QName propQName = elemProps[i].getName(  );
         long  minOccurs = XmlBeansUtils.getMinOccurs( propsXBean.schemaType(  ),
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject.schemaType()

      SchemaProperty[] elemProps               = propsXBean.schemaType(  ).getElementProperties(  );
      List             unsetRequiredPropQNames = new ArrayList(  );
      for ( int i = 0; i < elemProps.length; i++ )
      {
         QName propQName = elemProps[i].getName(  );
         long  minOccurs = XmlBeansUtils.getMinOccurs( propsXBean.schemaType(  ),
                                                       propQName );
         if ( minOccurs > 0 )
         {
            Method getter = XmlBeansUtils.getGetter( propsXBean, propQName );
            if ( getter.invoke( propsXBean,
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject.schemaType()

                convertToGeronimoSubSchemas(cursor);
                cursor.pop();
                XmlObject temp = cursor.getObject();

                XmlObject result = temp.changeType(desiredType);
                if (result == null || result.schemaType() != desiredType) {
                    result = temp.copy().changeType(desiredType);
                }
                XmlBeansUtil.validateDD(result);
                return result;
            } else {
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject.schemaType()

        try {
            if (findNestedElement(cursor, desiredElement)) {
                XmlObject child = cursor.getObject();
                //The copy seems to be needed to make the type change work for some documents!
                XmlObject result = child.copy().changeType(type);
                assert result.schemaType() == type;
                return result;
            }
        } finally {
            cursor.dispose();
        }
View Full Code Here

Examples of org.apache.xmlbeans.XmlString.schemaType()

        RootDocument doc1 = RootDocument.Factory.parse(xml1);
        RootDocument.Root root = doc1.getRoot();
        assertTrue(doc1.validate());

        XmlString a = root.xgetAArray(0);
        assertTrue(a.schemaType().equals(XmlString.type));
        assertEquals("\ta\ta\t", a.stringValue());

        XmlString b = root.xgetAArray(1);
        assertTrue(b.schemaType().equals(XmlNormalizedString.type));
        assertEquals(" b b ", b.stringValue());
View Full Code Here

Examples of org.codehaus.jackson.schema.JsonSerializableSchema.schemaType()

        String itemDefinition = null;
        if (typeHint != null) {
            Class<?> rawClass = TypeFactory.type(typeHint).getRawClass();
            if (rawClass.isAnnotationPresent(JsonSerializableSchema.class)) {
                JsonSerializableSchema schemaInfo = rawClass.getAnnotation(JsonSerializableSchema.class);
                schemaType = schemaInfo.schemaType();
                if (!"##irrelevant".equals(schemaInfo.schemaObjectPropertiesDefinition())) {
                    objectProperties = schemaInfo.schemaObjectPropertiesDefinition();
                }
                if (!"##irrelevant".equals(schemaInfo.schemaItemDefinition())) {
                    itemDefinition = schemaInfo.schemaItemDefinition();
View Full Code Here

Examples of org.eclipse.persistence.internal.oxm.XMLConversionManager.schemaType()

                if(converter != null){
                    ((AbstractDirectMapping)nextMapping).setConverter(converter);
                }
                               
                 XMLConversionManager xmlConversionManager = (XMLConversionManager) session.getDatasourcePlatform().getConversionManager();                                     
                 QName schemaType = xmlConversionManager.schemaType(nextMapping.getAttributeClassification());
                 if(schemaType != null && ((XMLField)nextMapping.getField()).getSchemaType() == null) {
                     ((XMLField)nextMapping.getField()).setSchemaType(schemaType);
                 }
               
            }else if(nextMapping instanceof XMLObjectReferenceMapping) {
View Full Code Here

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscriptionManagerRPDocument.schemaType()

    */
   public void init(  )
   {
      SubscriptionManagerRPDocument propsDoc        = SubscriptionManagerRPDocument.Factory.newInstance(  );
      ResourcePropertySetMetaData   propSetMetaData =
         new XmlBeansResourcePropertySetMetaData( propsDoc.schemaType(  ), READ_ONLY_PROP_NAMES );
      m_propSet = new XmlBeansResourcePropertySet( propsDoc, propSetMetaData );

      // wsrlw:ScheduledResourceTermination props
      ResourceProperty    prop        =
         m_propSet.get( ScheduledResourceTerminationPortType.PROP_QNAME_CURRENT_TIME );
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.