Examples of required()


Examples of io.airlift.airline.Option.required()

                        else {
                            arity = 1;
                        }
                    }

                    boolean required = optionAnnotation.required();
                    boolean hidden = optionAnnotation.hidden();
                    List<String> allowedValues = ImmutableList.copyOf(optionAnnotation.allowedValues());
                    if (allowedValues.isEmpty()) {
                        allowedValues = null;
                    }
View Full Code Here

Examples of javango.forms.fields.annotations.FieldProperties.required()

  }

  public void handleAnnotation(Annotation annotation) {
    if (!(annotation instanceof FieldProperties)) return;
    FieldProperties props = (FieldProperties)annotation;
    this.setRequired(props.required());
    this.setEditable(props.editable());
    this.setAllowNull(props.allowNull());
    this.label = "".equals(props.label()) ? props.verboseName() : props.label();
    this.helpText = props.helpText();
    this.hidden = props.hidden();
View Full Code Here

Examples of javax.xml.bind.annotation.XmlAttribute.required()

    // See http://forums.java.net/jive/thread.jspa?messageID=167171
    // Primitives are always required

    XmlAttribute attribute = _accessor.getAnnotation(XmlAttribute.class);

    if (attribute.required() ||
        (_generateRICompatibleSchema && _accessor.getType().isPrimitive()))
      out.writeAttribute("use", "required");

    XmlID xmlID = _accessor.getAnnotation(XmlID.class);
View Full Code Here

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

        Annotation[] a = (Annotation[])mpi.getProperty(ReflectionServiceFactoryBean.PARAM_ANNOTATION);
        if (a != null) {
            for (Annotation a2 : a) {
                if (a2 instanceof XmlElement) {
                    XmlElement e = (XmlElement)a2;
                    if (e.required()) {
                        return 1L;
                    }
                }
            }
        }
View Full Code Here

Examples of javax.xml.bind.annotation.XmlElementWrapper.required()

            XmlElementWrapper wrapper = (XmlElementWrapper) helper.getAnnotation(property.getElement(), XmlElementWrapper.class);
            org.eclipse.persistence.jaxb.xmlmodel.XmlElementWrapper xmlEltWrapper = new org.eclipse.persistence.jaxb.xmlmodel.XmlElementWrapper();
            xmlEltWrapper.setName(wrapper.name());
            xmlEltWrapper.setNamespace(wrapper.namespace());
            xmlEltWrapper.setNillable(wrapper.nillable());
            xmlEltWrapper.setRequired(wrapper.required());
            property.setXmlElementWrapper(xmlEltWrapper);
        }

        if (helper.isAnnotationPresent(property.getElement(), XmlList.class)) {
            // Make sure XmlList annotation is on a collection or array
View Full Code Here

Examples of javax.xml.ws.soap.Addressing.required()

            .getExtensionRegistry();           
            try {
                ExtensibilityElement el = extensionRegistry.createExtension(javax.wsdl.Binding.class,
                                                                            JAXWSAConstants.
                                                                            WSAW_USINGADDRESSING_QNAME);
                el.setRequired(addressing.required());
                bindingInfo.addExtensor(el);
               
                StringBuilder polRefId = new StringBuilder(bindingInfo.getName().getLocalPart());
                polRefId.append("_WSAM_Addressing_Policy");
                UnknownExtensibilityElement uel = new UnknownExtensibilityElement();
View Full Code Here

Examples of net.sourceforge.stripes.validation.ValidationMetadata.required()

           
            if (data != null) {
                if (data.encrypted())
                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("encrypted:")
                            .append(data.encrypted());
                if (data.required())
                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("required:").append(
                            data.required());
                if (data.on() != null) {
                    fieldInfo.append(fieldInfo.length() > 0 ? "," : "").append("on:[");
                    Iterator<String> it = data.on().iterator();
View Full Code Here

Examples of org.activiti.designer.integration.servicetask.annotation.Property.required()

          String displayName = property.displayName();
          if (StringUtils.isBlank(property.displayName())) {
            displayName = fieldInfo.getFieldName();
          }

          if (property.required()) {
            displayName += PROPERTY_REQUIRED_DISPLAY;
          }

          displayName += ": ";
View Full Code Here

Examples of org.apache.axis2.jaxws.addressing.SubmissionAddressing.required()

           
            if (w3cAddressingEnabled && submissionAddressingEnabled) {
              namespace.setValue(null);

                boolean w3cAddressingRequired = addressing.required();
                boolean submissionAddressingRequired = submissionAddressing.required();

                if (w3cAddressingRequired || submissionAddressingRequired)
                  required.setValue(AddressingConstants.ADDRESSING_REQUIRED);
            }
            else if (w3cAddressingEnabled) {
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.AddressingAnnot.required()

        if (seiFeatureList != null) {
            for (int i = 0; i < seiFeatureList.size(); i++) {
                Annotation checkAnnotation = seiFeatureList.get(i);
                if (checkAnnotation instanceof AddressingAnnot) {
                    AddressingAnnot addressingAnnot = (AddressingAnnot) checkAnnotation;
                    enabled = addressingAnnot.required();
                }
            }
        }
        return enabled;
    }
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.