Examples of JAXBAttribute


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

  protected JAXBPropertySG(AttributeSG pAttribute, XSAttribute pXSAttribute) {
    typeSG = pAttribute.getTypeSG();
    String myPropertyName = null;
    boolean myGeneratedIsSetMethod = pAttribute.getSchema().isGeneratingIsSetMethod();
    JAXBAttribute jaxbAttribute = null;
    if (pXSAttribute instanceof JAXBAttribute) {
      jaxbAttribute = (JAXBAttribute) pXSAttribute;
      JAXBProperty jaxbProperty = jaxbAttribute.getJAXBProperty();
      if (jaxbProperty != null) {
        myPropertyName = jaxbProperty.getName();
        Boolean jaxbGeneratedIsSetMethod = jaxbProperty.isGenerateIsSetMethod();
        if (jaxbGeneratedIsSetMethod != null) {
          myGeneratedIsSetMethod = jaxbGeneratedIsSetMethod.booleanValue();
View Full Code Here

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

    }

    if (jaxbProperty == null) {
      XsTAttribute attr = (XsTAttribute) getXsObject();
      if (attr.getRef() != null) {
        JAXBAttribute refAttr = (JAXBAttribute) getXSSchema().getAttribute(attr.getRef());
        if (refAttr != null) {
          jaxbProperty = refAttr.getJAXBProperty();
        }
      }
    } else {
      if (isGlobal()  &&  jaxbProperty != null  &&  jaxbProperty.getBaseType() != null) {
        throw new LocSAXException("The element jaxb:property/jaxb:baseType is forbidden in global attributes." +
View Full Code Here

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

    XSType type = schema.getType(new XsQName((String) null, "ct"));
    XSComplexType complexType = assertComplexType(type);
    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());
View Full Code Here

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

    InputSource isource = new InputSource(new StringReader(schemaSource));
    isource.setSystemId("testJAXBProperty1.xsd");
    JAXBSchema schema = (JAXBSchema) parser.parse(isource);
    XSAttributable[] outerAttr = schema.getAttributes();
    assertEquals(1, outerAttr.length);
    JAXBAttribute outerA = (JAXBAttribute) outerAttr[0];
   
    XSType ct = schema.getType(new XsQName((String) null, "ct"));
    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();
View Full Code Here

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

    XSType type = schema.getType(new XsQName((String) null, "ct"));
    XSComplexType complexType = assertComplexType(type);
    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());
View Full Code Here

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

    InputSource isource = new InputSource(new StringReader(schemaSource));
    isource.setSystemId("testJAXBProperty1.xsd");
    JAXBSchema schema = (JAXBSchema) parser.parse(isource);
    XSAttributable[] outerAttr = schema.getAttributes();
    assertEquals(1, outerAttr.length);
    JAXBAttribute outerA = (JAXBAttribute) outerAttr[0];
   
    XSType ct = schema.getType(new XsQName((String) null, "ct"));
    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();
View Full Code Here

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

    }

    if (jaxbProperty == null) {
      XsTAttribute attr = (XsTAttribute) getXsObject();
      if (attr.getRef() != null) {
        JAXBAttribute refAttr = (JAXBAttribute) getXSSchema().getAttribute(attr.getRef());
        if (refAttr != null) {
          jaxbProperty = refAttr.getJAXBProperty();
        }
      }
    } else {
      if (isGlobal()  &&  jaxbProperty != null  &&  jaxbProperty.getBaseType() != null) {
        throw new LocSAXException("The element jaxb:property/jaxb:baseType is forbidden in global attributes." +
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.