Examples of defaultValue()


Examples of com.sun.tools.internal.xjc.generator.annotation.spec.XmlElementWriter.defaultValue()

        // generate defaultValue property?
        final String defaultValue = ctype.getDefaultValue();
        if (defaultValue!=null) {
            if(xew == null) xew = getXew(checkWrapper, field);
            xew.defaultValue(defaultValue);
        }

        // generate the nillable property?
        if (ctype.isNillable()) {
            if(xew == null) xew = getXew(checkWrapper, field);
View Full Code Here

Examples of com.sun.tools.xjc.generator.annotation.spec.XmlElementDeclWriter.defaultValue()

            xemw.substitutionHeadNamespace(n.getNamespaceURI());
            xemw.substitutionHeadName(n.getLocalPart());
        }

        if(ei.getDefaultValue()!=null)
            xemw.defaultValue(ei.getDefaultValue());

        if(ei.getProperty().inlineBinaryData())
            m.annotate(XmlInlineBinaryData.class);

                    // if the element is adapter, put that annotation on the factory method
View Full Code Here

Examples of com.sun.tools.xjc.generator.annotation.spec.XmlElementWriter.defaultValue()

        // generate defaultValue property?
        final String defaultValue = ctype.getDefaultValue();
        if (defaultValue!=null) {
            if(xew == null) xew = getXew(checkWrapper, field);
            xew.defaultValue(defaultValue);
        }

        // generate the nillable property?
        if (ctype.isNillable()) {
            if(xew == null) xew = getXew(checkWrapper, field);
View Full Code Here

Examples of jade.content.onto.annotations.Slot.defaultValue()

            }
            if (slotAnnotation.position() != -1) {
              position = slotAnnotation.position();
              orderByPosition = true;
            }
            if (!Slot.NULL.equals(slotAnnotation.defaultValue())) {
              defaultValue = slotAnnotation.defaultValue();
            }
            if (!Slot.NULL.equals(slotAnnotation.regex())) {
              regex = slotAnnotation.regex();
            }
View Full Code Here

Examples of javax.resource.spi.ConfigProperty.defaultValue()

         return md;

      ConfigPropertyMetaData cfgMeta = new ConfigPropertyMetaData();
      cfgMeta.setName(getConfigPropertyName(annotation));

      if (configProperty.defaultValue() != null && !configProperty.defaultValue().equals(""))
         cfgMeta.setValue(configProperty.defaultValue());

      if (!Object.class.equals(configProperty.type()))
      {
         cfgMeta.setType(configProperty.type().getName());
View Full Code Here

Examples of javax.xml.bind.annotation.XmlElement.defaultValue()

                       */
                       try{
                           Field declaredField = getDeclaredField(clazz,name);
                           XmlElement   xmlElm   =  declaredField.getAnnotation(XmlElement.class);
                             if(xmlElm != null){
                               if(!xmlElm.defaultValue().equals(NULL) && isJSONPrimitive(propertyType)){
                                 value = xmlElm.defaultValue();
                               } else if(!xmlElm.nillable() && createDefaultOnNonNullable){
                                 if(!isJSONPrimitive(propertyType)){
                                   if(!stackNillableInstances.contains(propertyType)){
                                     stackNillableInstances.push(propertyType);
View Full Code Here

Examples of javax.xml.bind.annotation.XmlElement.defaultValue()

                       try{
                           Field declaredField = getDeclaredField(clazz,name);
                           XmlElement   xmlElm   =  declaredField.getAnnotation(XmlElement.class);
                             if(xmlElm != null){
                               if(!xmlElm.defaultValue().equals(NULL) && isJSONPrimitive(propertyType)){
                                 value = xmlElm.defaultValue();
                               } else if(!xmlElm.nillable() && createDefaultOnNonNullable){
                                 if(!isJSONPrimitive(propertyType)){
                                   if(!stackNillableInstances.contains(propertyType)){
                                     stackNillableInstances.push(propertyType);
                                     value = getNewInstance(propertyType);
View Full Code Here

Examples of javax.xml.bind.annotation.XmlElement.defaultValue()

    */
   private Object getMetaDataInstance(Class<?> propertyType, JSONWebService webService, Field field){
     String defaultVal = null;
     if(field != null && field.isAnnotationPresent(XmlElement.class)){
       XmlElement element = field.getAnnotation(XmlElement.class);
      if(!element.defaultValue().equals(NULL)){
        if(propertyType.isEnum()){
          defaultVal  = element.defaultValue();
          // In case of enum meta data is decided list
        } else if(Boolean.TYPE.equals(propertyType) || Boolean.class.equals(propertyType)){
          return Boolean.valueOf(element.defaultValue());
View Full Code Here

Examples of javax.xml.bind.annotation.XmlElement.defaultValue()

     String defaultVal = null;
     if(field != null && field.isAnnotationPresent(XmlElement.class)){
       XmlElement element = field.getAnnotation(XmlElement.class);
      if(!element.defaultValue().equals(NULL)){
        if(propertyType.isEnum()){
          defaultVal  = element.defaultValue();
          // In case of enum meta data is decided list
        } else if(Boolean.TYPE.equals(propertyType) || Boolean.class.equals(propertyType)){
          return Boolean.valueOf(element.defaultValue());
        } else {
          return element.defaultValue();
View Full Code Here

Examples of javax.xml.bind.annotation.XmlElement.defaultValue()

      if(!element.defaultValue().equals(NULL)){
        if(propertyType.isEnum()){
          defaultVal  = element.defaultValue();
          // In case of enum meta data is decided list
        } else if(Boolean.TYPE.equals(propertyType) || Boolean.class.equals(propertyType)){
          return Boolean.valueOf(element.defaultValue());
        } else {
          return element.defaultValue();
        }
      }
    }
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.