Package org.apache.ws.jaxme.xs.jaxb

Examples of org.apache.ws.jaxme.xs.jaxb.JAXBSchemaBindings$Package


    JAXBParser parser = newJAXBParser();
    InputSource isource = new InputSource(new StringReader(schemaSource));
    isource.setSystemId("testSchemaBindings.xsd");
    JAXBSchema schema = (JAXBSchema) parser.parse(isource);
    JAXBType a = (JAXBType) schema.getType(new XsQName((String) null, "a"));
    JAXBSchemaBindings schemaBindings = a.getJAXBSchemaBindings();
 
    JAXBSchemaBindings.Package schemaPackage = schemaBindings.getPackage();
    assertNotNull(schemaPackage);
    assertEquals(myPackageName, schemaPackage.getName());
    JAXBJavadoc javadoc = schemaPackage.getJavadoc();
    assertNotNull(javadoc);
    assertEquals("Test documentation", javadoc.getText());
 
    JAXBSchemaBindings.NameXmlTransform[] nameXmlTransforms = schemaBindings.getNameXmlTransform();
    assertNotNull(nameXmlTransforms);
    assertEquals(1, nameXmlTransforms.length);
    JAXBSchemaBindings.NameXmlTransform nameXmlTransform = nameXmlTransforms[0];
    assertNotNull(nameXmlTransform);
    JAXBSchemaBindings.NameTransformation transformation = nameXmlTransform.getTypeName();
View Full Code Here


    if (pJAXBClassOwner == null) {
      throw new NullPointerException("The XSObject argument must not be null.");
    }
   
    JAXBClassOwner jaxbClassOwner = null;
    JAXBSchemaBindings schemaBindings = null;
   
    if (pJAXBClassOwner instanceof JAXBClassOwner) {
      jaxbClassOwner = (JAXBClassOwner) pJAXBClassOwner;
      schemaBindings = jaxbClassOwner.getJAXBSchemaBindings();
    }
View Full Code Here

                    }
                }
            }
        }
       
        JAXBSchemaBindings jaxbSchemaBindings;
        if (xsType instanceof JAXBType) {
            jaxbSchemaBindings = ((JAXBType) xsType).getJAXBSchemaBindings();
        } else {
            jaxbSchemaBindings = null;
        }
View Full Code Here

            }
          }
        }

        if (xsType instanceof JAXBType) {
          JAXBSchemaBindings jaxbSchemaBindings = ((JAXBType) xsType).getJAXBSchemaBindings();
          if (jaxbSchemaBindings != null) {
            JAXBSchemaBindings.Package jaxbPackage = jaxbSchemaBindings.getPackage();
            if (jaxbPackage != null) {
              packageName = jaxbPackage.getName();
            }
          }
        }
View Full Code Here

    if (pJAXBClassOwner == null) {
      throw new NullPointerException("The XSObject argument must not be null.");
    }
   
    JAXBClassOwner jaxbClassOwner = null;
    JAXBSchemaBindings schemaBindings = null;
   
    if (pJAXBClassOwner instanceof JAXBClassOwner) {
      jaxbClassOwner = (JAXBClassOwner) pJAXBClassOwner;
      schemaBindings = jaxbClassOwner.getJAXBSchemaBindings();
    }
   
    String packageName = pSchemaSG.getFactory().getGenerator().getProperty("jaxme.package.name");
    if (packageName == null) {
      if (schemaBindings != null) {
        JAXBSchemaBindings.Package jaxbPackage = schemaBindings.getPackage();
        if (jaxbPackage != null) {
          packageName = jaxbPackage.getName();
        }
      }
    }
View Full Code Here

              }
            }
          }
        }

        JAXBSchemaBindings jaxbSchemaBindings;
        if (xsType instanceof JAXBType) {
            jaxbSchemaBindings = ((JAXBType) xsType).getJAXBSchemaBindings();
        } else {
            jaxbSchemaBindings = null;
        }
View Full Code Here

                    }
                }
            }
        }
       
        JAXBSchemaBindings jaxbSchemaBindings;
        if (xsType instanceof JAXBType) {
            jaxbSchemaBindings = ((JAXBType) xsType).getJAXBSchemaBindings();
        } else {
            jaxbSchemaBindings = null;
        }
View Full Code Here

    if (pJAXBClassOwner == null) {
      throw new NullPointerException("The XSObject argument must not be null.");
    }
   
    JAXBClassOwner jaxbClassOwner = null;
    JAXBSchemaBindings schemaBindings = null;
   
    if (pJAXBClassOwner instanceof JAXBClassOwner) {
      jaxbClassOwner = (JAXBClassOwner) pJAXBClassOwner;
      schemaBindings = jaxbClassOwner.getJAXBSchemaBindings();
    }
View Full Code Here

        Object modelElement = null;
        for (final Iterator iterator = resourceSet.getResources().iterator();
            iterator.hasNext() && modelElement == null;)
        {
            final Resource resource = (Resource)iterator.next();
            final Package model =
                (Package)EcoreUtil.getObjectByType(
                    resource.getContents(),
                    UML2Package.eINSTANCE.getPackage());
            if (model != null)
            {
                for (final TreeIterator elementIterator = model.eAllContents();
                    elementIterator.hasNext() && modelElement == null;)
                {
                    final Object object = elementIterator.next();
                    if (pred.evaluate(object))
                    {
View Full Code Here

   
    ModelAccessFacade model = factory.getModel();

    init(model);

    Package p = getPackage(targetPackage, model);
    if (p == null) {
      p = addPackage(targetPackage, model);
      System.out.println("INFO [jIvalo] Added package: " + targetPackage);
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.xs.jaxb.JAXBSchemaBindings$Package

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.