Examples of XmlVariableNode


Examples of org.eclipse.persistence.oxm.annotations.XmlVariableNode

        }else{
            updatePropertyType(property, ptype, ptype);
        }
     
        if(helper.isAnnotationPresent(javaHasAnnotations, XmlVariableNode.class)){
            XmlVariableNode variableNode = (XmlVariableNode) helper.getAnnotation(javaHasAnnotations, XmlVariableNode.class);
            if(variableNode.type() != XmlVariableNode.DEFAULT.class){
              property.setVariableClassName(variableNode.type().getName());             
                             
              JavaClass componentType = helper.getJavaClass(variableNode.type());
             
              if(helper.isCollectionType(ptype)){
                property.setGenericType(componentType);
              }else{
                property.setType(componentType);
              }
             
            }
            if(!variableNode.value().equals("##default")){
              property.setVariableAttributeName(variableNode.value())
            }
            property.setVariableNodeAttribute(variableNode.attribute());
        }
       
       
        if((ptype.isArray()  && !areEquals(ptype, byte[].class))  || (helper.isCollectionType(ptype) && !helper.isAnnotationPresent(javaHasAnnotations, XmlList.class)) ){
          property.setNillable(true);
View Full Code Here

Examples of org.eclipse.persistence.oxm.annotations.XmlVariableNode

        }else{
            updatePropertyType(property, ptype, ptype);
        }

        if(helper.isAnnotationPresent(javaHasAnnotations, XmlVariableNode.class)){
            XmlVariableNode variableNode = (XmlVariableNode) helper.getAnnotation(javaHasAnnotations, XmlVariableNode.class);
            if(variableNode.type() != XmlVariableNode.DEFAULT.class){
                property.setVariableClassName(variableNode.type().getName());

                JavaClass componentType = helper.getJavaClass(variableNode.type());

                if(helper.isCollectionType(ptype)){
                    property.setGenericType(componentType);
                }else{
                    property.setType(componentType);
                }

            }
            if(!variableNode.value().equals("##default")){
                property.setVariableAttributeName(variableNode.value());
            }
            property.setVariableNodeAttribute(variableNode.attribute());
        }


        if((ptype.isArray()  && !areEquals(ptype, byte[].class))  || (helper.isCollectionType(ptype) && !helper.isAnnotationPresent(javaHasAnnotations, XmlList.class)) ){
            property.setNillable(true);
View Full Code Here

Examples of org.eclipse.persistence.oxm.annotations.XmlVariableNode

        }else{
            updatePropertyType(property, ptype, ptype);
        }
     
        if(helper.isAnnotationPresent(javaHasAnnotations, XmlVariableNode.class)){
            XmlVariableNode variableNode = (XmlVariableNode) helper.getAnnotation(javaHasAnnotations, XmlVariableNode.class);
            if(variableNode.type() != XmlVariableNode.DEFAULT.class){
              property.setVariableClassName(variableNode.type().getName());             
                             
              JavaClass componentType = helper.getJavaClass(variableNode.type());
             
              if(helper.isCollectionType(ptype)){
                property.setGenericType(componentType);
              }else{
                property.setType(componentType);
              }
             
            }
            if(!variableNode.value().equals("##default")){
              property.setVariableAttributeName(variableNode.value())
            }
            property.setVariableNodeAttribute(variableNode.attribute());
        }
       
       
        if((ptype.isArray()  && !areEquals(ptype, byte[].class))  || (helper.isCollectionType(ptype) && !helper.isAnnotationPresent(javaHasAnnotations, XmlList.class)) ){
          property.setNillable(true);
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.