Examples of TypeSG


Examples of org.apache.ws.jaxme.generator.sg.TypeSG

      "</xsd:schema> \n";

    SchemaSG jschema = parse(schema, "testNonNegativeIntegerType.xsd");

    // simple, atomic, with restriction on minInclusive and minExclusive
    TypeSG nni = jschema.getElements()[0].getTypeSG();
    assertTrue(!nni.isComplex());
    SimpleTypeSG nnis = nni.getSimpleTypeSG();
    assertTrue(nnis.isAtomic());
    assertTrue(!nnis.isList());
    assertTrue(!nnis.isUnion());
    assertEquals(new Long(0), nnis.getAtomicType().getFractionDigits());
    assertStringEquals("-1", nnis.getAtomicType().getMinExclusive());
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.TypeSG

      "</xsd:schema> \n";

    SchemaSG jschema = parse(schema, "testPositiveIntegerType.xsd");

    // simple, atomic, with restriction on minInclusive and minExclusive
    TypeSG pi = jschema.getElements()[0].getTypeSG();
    assertTrue(!pi.isComplex());
    SimpleTypeSG pis = pi.getSimpleTypeSG();
    assertTrue(pis.isAtomic());
    assertTrue(!pis.isList());
    assertTrue(!pis.isUnion());
    assertEquals(new Long(0), pis.getAtomicType().getFractionDigits());
    assertStringEquals("0", pis.getAtomicType().getMinExclusive());
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.TypeSG

    SchemaSG jschema = parse(schema, "testIntegerType.xsd");

    // simple, atomic, with restriction on fractionDigits
    ObjectSG[] elements = jschema.getElements();
    TypeSG i = elements[0].getTypeSG();
    assertTrue(!i.isComplex());
    SimpleTypeSG is = i.getSimpleTypeSG();
    assertTrue(is.isAtomic());
    assertTrue(!is.isList());
    assertTrue(!is.isUnion());
    assertEquals(JavaQNameImpl.getInstance(BigInteger.class), is.getRuntimeType());
    assertEquals(new Long(0), is.getAtomicType().getFractionDigits());
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.TypeSG

    SchemaSG jschema = parse(schema, "testNmTokensType.xsd");

    // list of one or more nmtoken's
    ObjectSG[] elements = jschema.getElements();
    assertEquals(1, elements.length);
    TypeSG nmts = elements[0].getTypeSG();
    assertTrue(!nmts.isComplex());
    SimpleTypeSG nmtss = nmts.getSimpleTypeSG();
    assertTrue(!nmtss.isAtomic());
    assertTrue(nmtss.isList());
    assertTrue(!nmtss.isUnion());
    ListTypeSG nmtsl = nmtss.getListType();
    assertEquals(new Long(1), nmtsl.getMinLength());
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.TypeSG

            if (node.getNodeType() == Node.ELEMENT_NODE
                    &&  JAXBContextImpl.CONFIGURATION_URI.equals(node.getNamespaceURI())
                    &&  "Manager".equals(node.getLocalName())) {
                Element manager = (Element) node;
                final ObjectSG objectSG = (ObjectSG) iter.next();
                final TypeSG typeSG = objectSG.getTypeSG();
                if (typeSG.isComplex()) {
                    manager.setAttributeNS(uri, "pmClass", TaminoAPI4JPm.class.getName());
                }

                if (details != null) {
                    String collection = details.getCollection();
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.TypeSG

    for (Node node = root.getFirstChild();  node != null;  node = node.getNextSibling()) {
      if (node.getNodeType() == Node.ELEMENT_NODE
          &&  JAXBContextImpl.CONFIGURATION_URI.equals(node.getNamespaceURI())
          &&  "Manager".equals(node.getLocalName())) {
        final ObjectSG objectSG = (ObjectSG) iter.next();
        final TypeSG typeSG = objectSG.getTypeSG();
        if (typeSG.isComplex()) {
          final CustomTableData customTableData = (CustomTableData) typeSG.getProperty(jdbcSG.getKey());
          if (customTableData != null) {
            Element manager = (Element) node;
            final Context ctx = typeSG.getComplexTypeSG().getClassContext();
            manager.setAttributeNS(uri, "pmClass", ctx.getPMName().toString());

            final TableDetails tableDetails = customTableData.getTableDetails();
            final String driver = tableDetails.getDriver();
            if (driver != null) {
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.TypeSG

    for (Iterator iter = pColumns;  iter.hasNext()) {
      Column col = (Column) iter.next();
      CustomColumnData colData = (CustomColumnData) col.getCustomData();
      Object sg = colData.getSG();
      PropertySG propertySG;
      TypeSG typeSG;
      if (sg instanceof AttributeSG) {
        AttributeSG attrSG = (AttributeSG) sg;
        propertySG = attrSG.getPropertySG();
        typeSG = attrSG.getTypeSG();
      } else if (sg instanceof ParticleSG) {
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.TypeSG

    for (Iterator iter = pColumns;  iter.hasNext()) {
      Column col = (Column) iter.next();
      CustomColumnData colData = (CustomColumnData) col.getCustomData();
      Object sg = colData.getSG();
      PropertySG propertySG;
      TypeSG typeSG;
      if (sg instanceof AttributeSG) {
        AttributeSG attrSG = (AttributeSG) sg;
        propertySG = attrSG.getPropertySG();
        typeSG = attrSG.getTypeSG();
      } else if (sg instanceof ParticleSG) {
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.TypeSG

    List objects = new ArrayList();
    for (int i = 0;  i < childs.length;  i++) {
      Object o = childs[i];
      log.finest(mName, "Child" + o);
      if (o instanceof XSType) {
        TypeSG typeSG = pController.getType(((XSType) o).getName());
        if (typeSG == null) {
          throw new IllegalStateException("TypeSG not created");
        }
        types.add(typeSG);
      } else if (o instanceof XSGroup) {
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.TypeSG

    objectsByOrder = (ObjectSG[]) objects.toArray(new ObjectSG[objects.size()]);
    log.finest(mName, "<-");
  }

  public TypeSG getType(SchemaSG pController, XsQName pName) throws SAXException {
    TypeSG typeSG = (TypeSG) typesByName.get(pName);
    if (typeSG != null) {
      return typeSG;
    }
    XSType type = getXSSchema().getType(pName);
    if (type == null) {
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.