Examples of JAXBProperty


Examples of org.apache.ws.jaxme.xs.jaxb.JAXBProperty

    XSAttributable[] attributes = complexType.getAttributes();
    assertNotNull(attributes);
    assertEquals(1, attributes.length);
    JAXBAttribute a1 = (JAXBAttribute) attributes[0];
    assertEquals(XSDateTime.getInstance(), a1.getType());
    JAXBProperty ap1 = a1.getJAXBProperty();
    assertNotNull(ap1);
    assertEquals("ap", ap1.getName());
    assertEquals("indexed", ap1.getCollectionType());
    Boolean b = ap1.isFixedAttributeAsConstantProperty();
    assertTrue(b != null  &&  b.booleanValue());
    b = ap1.isGenerateIsSetMethod();
    assertTrue(b != null  &&  !b.booleanValue());
    b = ap1.isEnableFailFastCheck();
    assertTrue(b != null  &&  b.booleanValue());
    JAXBProperty.BaseType apbt1 = ap1.getBaseType();
    assertNotNull(apbt1);
    JAXBJavaType apjt1 = apbt1.getJavaType();
    assertNotNull(apjt1);
    assertEquals("java.math.BigDecimal", apjt1.getName());
    assertEquals("javax.xml.bind.DatatypeConverter.parseInteger", apjt1.getParseMethod());
View Full Code Here

Examples of org.apache.ws.jaxme.xs.jaxb.JAXBProperty

    XSAttributable[] attributes = assertComplexType(ct).getAttributes();
    assertNotNull(attributes);
    assertEquals(1, attributes.length);
    JAXBAttribute a1 = (JAXBAttribute) attributes[0];
    assertEquals(XSDateTime.getInstance(), a1.getType());
    JAXBProperty ap1 = a1.getJAXBProperty();
    assertEquals(ap1, outerA.getJAXBProperty());
    assertNotNull(ap1);
    assertEquals("ap", ap1.getName());
    assertEquals("indexed", ap1.getCollectionType());
    Boolean b = ap1.isFixedAttributeAsConstantProperty();
    assertTrue(b != null  &&  b.booleanValue());
    b = ap1.isGenerateIsSetMethod();
    assertTrue(b != null  &&  !b.booleanValue());
    b = ap1.isEnableFailFastCheck();
    assertTrue(b != null  &&  b.booleanValue());
    assertNull(ap1.getBaseType());
  }
View Full Code Here

Examples of org.apache.ws.jaxme.xs.jaxb.JAXBProperty

      String myPropertyName = null;
      boolean myGeneratedIsSetMethod = pSchema.isGeneratingIsSetMethod();
      String myCollectionType = null;
      if (pXSObject instanceof JAXBPropertyOwner) {
          JAXBPropertyOwner jaxbPropertyOwner = (JAXBPropertyOwner) pXSObject;
          JAXBProperty jaxbProperty = jaxbPropertyOwner.getJAXBProperty();
          if (jaxbProperty != null) {
              myPropertyName = jaxbProperty.getName();
              Boolean jaxbGeneratedIsSetMethod = jaxbProperty.isGenerateIsSetMethod();
              if (jaxbGeneratedIsSetMethod != null) {
                  myGeneratedIsSetMethod = jaxbGeneratedIsSetMethod.booleanValue();
                  myCollectionType = jaxbProperty.getCollectionType();
              }
          }
      }

      collectionType = myCollectionType == null ? pSchema.getCollectionType() : myCollectionType;
View Full Code Here

Examples of org.apache.ws.jaxme.xs.jaxb.JAXBProperty

      String myPropertyName = null;
      boolean myGeneratedIsSetMethod = pSchema.isGeneratingIsSetMethod();
      String myCollectionType = null;
      if (pXSObject instanceof JAXBPropertyOwner) {
          JAXBPropertyOwner jaxbPropertyOwner = (JAXBPropertyOwner) pXSObject;
          JAXBProperty jaxbProperty = jaxbPropertyOwner.getJAXBProperty();
          if (jaxbProperty != null) {
              myPropertyName = jaxbProperty.getName();
              Boolean jaxbGeneratedIsSetMethod = jaxbProperty.isGenerateIsSetMethod();
              if (jaxbGeneratedIsSetMethod != null) {
                  myGeneratedIsSetMethod = jaxbGeneratedIsSetMethod.booleanValue();
                  myCollectionType = jaxbProperty.getCollectionType();
              }
          }
      }

      collectionType = myCollectionType == null ? pSchema.getCollectionType() : myCollectionType;
View Full Code Here

Examples of org.apache.ws.jaxme.xs.jaxb.JAXBProperty

      myClassContext = new GlobalContext(name, contextObject, null, null, pSchema);
    }

    final JAXBProperty.BaseType baseType;
    if (pObject instanceof JAXBPropertyOwner) {
      JAXBProperty property = ((JAXBPropertyOwner) pObject).getJAXBProperty();
      baseType = property == null ? null : property.getBaseType();
    } else {
      baseType = null;
    }
   
    if (isClassGlobal) {
View Full Code Here

Examples of org.apache.ws.jaxme.xs.jaxb.JAXBProperty

            throw new IllegalStateException("The attribute type must not be null.");
        }

        final JAXBProperty.BaseType baseType;
        if (pAttribute instanceof JAXBPropertyOwner) {
          JAXBProperty property = ((JAXBPropertyOwner) pAttribute).getJAXBProperty();
          baseType = property == null ? null : property.getBaseType();
        } else {
          baseType = null;
        }

        if (type.isGlobal()) {
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.