Tabnine Logo
Parameter.getType
Code IndexAdd Tabnine to your IDE (free)

How to use
getType
method
in
org.apache.axis.wsdl.symbolTable.Parameter

Best Java code snippets using org.apache.axis.wsdl.symbolTable.Parameter.getType (Showing top 20 results out of 315)

origin: axis/axis

/**
 * Add an output parameter to the parameters object.
 *
 * @param outputs
 * @param outdex
 * @param parameters
 * @param trim
 */
private void addOutParm(Vector outputs, int outdex, Parameters parameters,
            boolean trim) {
  Parameter p = (Parameter) outputs.get(outdex);
  // If this is an element, we want the XML to reflect the element name
  // not the part name.  Same check is made in addInishParam above.
  if (p.getType() instanceof DefinedElement) {
    DefinedElement de = (DefinedElement) p.getType();
    p.setQName(de.getQName());
  }
  // If this is a collection we want the XML to reflect the type in
  // the collection, not foo[unbounded].
  // Same check is made in addInishParam above.
  if (p.getType() instanceof CollectionElement) {
    p.setQName(p.getType().getRefType().getQName());
  }
  if (trim) {
    outputs.remove(outdex);
  }
  p.setMode(Parameter.OUT);
  ++parameters.outputs;
  parameters.list.add(p);
}    // addOutParm
origin: org.apache.axis/axis

/**
 * Add an output parameter to the parameters object.
 *
 * @param outputs
 * @param outdex
 * @param parameters
 * @param trim
 */
private void addOutParm(Vector outputs, int outdex, Parameters parameters,
            boolean trim) {
  Parameter p = (Parameter) outputs.get(outdex);
  // If this is an element, we want the XML to reflect the element name
  // not the part name.  Same check is made in addInishParam above.
  if (p.getType() instanceof DefinedElement) {
    DefinedElement de = (DefinedElement) p.getType();
    p.setQName(de.getQName());
  }
  // If this is a collection we want the XML to reflect the type in
  // the collection, not foo[unbounded].
  // Same check is made in addInishParam above.
  if (p.getType() instanceof CollectionElement) {
    p.setQName(p.getType().getRefType().getQName());
  }
  if (trim) {
    outputs.remove(outdex);
  }
  p.setMode(Parameter.OUT);
  ++parameters.outputs;
  parameters.list.add(p);
}    // addOutParm
origin: org.apache.axis/com.springsource.org.apache.axis

Parameter p = (Parameter) params.list.get(i);
v.add(p.getType());
v.add(params.returnParam.getType());
origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Add an output parameter to the parameters object.
 *
 * @param outputs
 * @param outdex
 * @param parameters
 * @param trim
 */
private void addOutParm(Vector outputs, int outdex, Parameters parameters,
            boolean trim) {
  Parameter p = (Parameter) outputs.get(outdex);
  // If this is an element, we want the XML to reflect the element name
  // not the part name.  Same check is made in addInishParam above.
  if (p.getType() instanceof DefinedElement) {
    DefinedElement de = (DefinedElement) p.getType();
    p.setQName(de.getQName());
  }
  // If this is a collection we want the XML to reflect the type in
  // the collection, not foo[unbounded].
  // Same check is made in addInishParam above.
  if (p.getType() instanceof CollectionElement) {
    p.setQName(p.getType().getRefType().getQName());
  }
  if (trim) {
    outputs.remove(outdex);
  }
  p.setMode(Parameter.OUT);
  ++parameters.outputs;
  parameters.list.add(p);
}    // addOutParm
origin: axis/axis

Parameter p = (Parameter) params.list.get(i);
v.add(p.getType());
v.add(params.returnParam.getType());
origin: org.apache.axis/axis

Parameter p = (Parameter) params.list.get(i);
v.add(p.getType());
v.add(params.returnParam.getType());
origin: axis/axis

              String source) {
TypeEntry type = param.getType();
  if ((param.isOmittable() && param.getType().getDimensions().equals(""))
    || (param.getType() instanceof CollectionType
      && ((CollectionType) param.getType()).isWrapped())
    || param.getType().getUnderlTypeNillable()) {
origin: net.sf.taverna.cagrid/cagrid-wsdl-generic

private TypeDescriptor processParameter(Parameter param) {
  TypeDescriptor typeDesc = constructType(param.getType());
  typeDesc.setName(param.getName());
  return typeDesc;
}
origin: axis/axis

/**
 * Set the MIME type.  This can be determine in one of two ways:
 * 1.  From WSDL 1.1 MIME constructs on the binding (passed in);
 * 2.  From AXIS-specific xml MIME types.
 *
 * @param p
 * @param mimeInfo
 */
private void setMIMEInfo(Parameter p, MimeInfo mimeInfo) {
  // If there is no binding MIME construct (ie., the mimeType parameter is
  // null), then get the MIME type from the AXIS-specific xml MIME type.
  if (mimeInfo == null && p.getType() != null) {
    QName mimeQName = p.getType().getQName();
    if (mimeQName.getNamespaceURI().equals(Constants.NS_URI_XMLSOAP)) {
      if (Constants.MIME_IMAGE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("image/jpeg", "");
      } else if (Constants.MIME_PLAINTEXT.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/plain", "");
      } else if (Constants.MIME_MULTIPART.equals(mimeQName)) {
        mimeInfo = new MimeInfo("multipart/related", "");
      } else if (Constants.MIME_SOURCE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/xml", "");
      } else if (Constants.MIME_OCTETSTREAM.equals(mimeQName)) {
        mimeInfo = new MimeInfo("application/octet-stream", "");
      }
    }
  }
  p.setMIMEInfo(mimeInfo);
}    // setMIMEType
origin: org.apache.axis/com.springsource.org.apache.axis

ret = parm.getType().getName();
if ((parm.isOmittable() && parm.getType().getDimensions().equals(""))
  || (parm.getType() instanceof CollectionType 
    && ((CollectionType) parm.getType()).isWrapped())
  || parm.getType().getUnderlTypeNillable()) {
  ret = getWrapperType(parm.getType());
  ret = parm.getType().getName();
} else {
  ret += parm.getMIMEInfo().getDimensions();
origin: axis/axis

ret = parm.getType().getName();
if ((parm.isOmittable() && parm.getType().getDimensions().equals(""))
  || (parm.getType() instanceof CollectionType 
    && ((CollectionType) parm.getType()).isWrapped())
  || parm.getType().getUnderlTypeNillable()) {
  ret = getWrapperType(parm.getType());
  ret = parm.getType().getName();
} else {
  ret += parm.getMIMEInfo().getDimensions();
origin: org.apache.axis/axis

ret = parm.getType().getName();
if ((parm.isOmittable() && parm.getType().getDimensions().equals(""))
  || (parm.getType() instanceof CollectionType 
    && ((CollectionType) parm.getType()).isWrapped())
  || parm.getType().getUnderlTypeNillable()) {
  ret = getWrapperType(parm.getType());
  ret = parm.getType().getName();
} else {
  ret += parm.getMIMEInfo().getDimensions();
origin: org.apache.axis/axis

/**
 * Set the MIME type.  This can be determine in one of two ways:
 * 1.  From WSDL 1.1 MIME constructs on the binding (passed in);
 * 2.  From AXIS-specific xml MIME types.
 *
 * @param p
 * @param mimeInfo
 */
private void setMIMEInfo(Parameter p, MimeInfo mimeInfo) {
  // If there is no binding MIME construct (ie., the mimeType parameter is
  // null), then get the MIME type from the AXIS-specific xml MIME type.
  if (mimeInfo == null && p.getType() != null) {
    QName mimeQName = p.getType().getQName();
    if (mimeQName.getNamespaceURI().equals(Constants.NS_URI_XMLSOAP)) {
      if (Constants.MIME_IMAGE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("image/jpeg", "");
      } else if (Constants.MIME_PLAINTEXT.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/plain", "");
      } else if (Constants.MIME_MULTIPART.equals(mimeQName)) {
        mimeInfo = new MimeInfo("multipart/related", "");
      } else if (Constants.MIME_SOURCE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/xml", "");
      } else if (Constants.MIME_OCTETSTREAM.equals(mimeQName)) {
        mimeInfo = new MimeInfo("application/octet-stream", "");
      }
    }
  }
  p.setMIMEInfo(mimeInfo);
}    // setMIMEType
origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Set the MIME type.  This can be determine in one of two ways:
 * 1.  From WSDL 1.1 MIME constructs on the binding (passed in);
 * 2.  From AXIS-specific xml MIME types.
 *
 * @param p
 * @param mimeInfo
 */
private void setMIMEInfo(Parameter p, MimeInfo mimeInfo) {
  // If there is no binding MIME construct (ie., the mimeType parameter is
  // null), then get the MIME type from the AXIS-specific xml MIME type.
  if (mimeInfo == null && p.getType() != null) {
    QName mimeQName = p.getType().getQName();
    if (mimeQName.getNamespaceURI().equals(Constants.NS_URI_XMLSOAP)) {
      if (Constants.MIME_IMAGE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("image/jpeg", "");
      } else if (Constants.MIME_PLAINTEXT.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/plain", "");
      } else if (Constants.MIME_MULTIPART.equals(mimeQName)) {
        mimeInfo = new MimeInfo("multipart/related", "");
      } else if (Constants.MIME_SOURCE.equals(mimeQName)) {
        mimeInfo = new MimeInfo("text/xml", "");
      } else if (Constants.MIME_OCTETSTREAM.equals(mimeQName)) {
        mimeInfo = new MimeInfo("application/octet-stream", "");
      }
    }
  }
  p.setMIMEInfo(mimeInfo);
}    // setMIMEType
origin: axis/axis

/**
 * Method writeParameters
 * 
 * @param pw    
 * @param parms 
 */
protected void writeParameters(PrintWriter pw, Parameters parms) {
  // Write the input and inout parameter list
  boolean needComma = false;
  for (int i = 0; i < parms.list.size(); ++i) {
    Parameter p = (Parameter) parms.list.get(i);
    if (p.getMode() != Parameter.OUT) {
      if (needComma) {
        pw.print(", ");
      } else {
        needComma = true;
      }
      String javifiedName = Utils.xmlNameToJava(p.getName());
      if (p.getMode() != Parameter.IN) {
        javifiedName += ".value";
      }
      if (p.getMIMEInfo() == null && !p.isOmittable()) {
        javifiedName = Utils.wrapPrimitiveType(p.getType(),
            javifiedName);
      }
      pw.print(javifiedName);
    }
  }
}    // writeParamters
origin: org.apache.axis/axis

/**
 * Method writeParameters
 * 
 * @param pw    
 * @param parms 
 */
protected void writeParameters(PrintWriter pw, Parameters parms) {
  // Write the input and inout parameter list
  boolean needComma = false;
  for (int i = 0; i < parms.list.size(); ++i) {
    Parameter p = (Parameter) parms.list.get(i);
    if (p.getMode() != Parameter.OUT) {
      if (needComma) {
        pw.print(", ");
      } else {
        needComma = true;
      }
      String javifiedName = Utils.xmlNameToJava(p.getName());
      if (p.getMode() != Parameter.IN) {
        javifiedName += ".value";
      }
      if (p.getMIMEInfo() == null && !p.isOmittable()) {
        javifiedName = Utils.wrapPrimitiveType(p.getType(),
            javifiedName);
      }
      pw.print(javifiedName);
    }
  }
}    // writeParamters
origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Method writeParameters
 * 
 * @param pw    
 * @param parms 
 */
protected void writeParameters(PrintWriter pw, Parameters parms) {
  // Write the input and inout parameter list
  boolean needComma = false;
  for (int i = 0; i < parms.list.size(); ++i) {
    Parameter p = (Parameter) parms.list.get(i);
    if (p.getMode() != Parameter.OUT) {
      if (needComma) {
        pw.print(", ");
      } else {
        needComma = true;
      }
      String javifiedName = Utils.xmlNameToJava(p.getName());
      if (p.getMode() != Parameter.IN) {
        javifiedName += ".value";
      }
      if (p.getMIMEInfo() == null && !p.isOmittable()) {
        javifiedName = Utils.wrapPrimitiveType(p.getType(),
            javifiedName);
      }
      pw.print(javifiedName);
    }
  }
}    // writeParamters
origin: axis/axis

/**
 * Get the QName that could be used in the xsi:type
 * when serializing an object for this parameter/return
 *
 * @param param is a parameter
 * @return the QName of the parameter's xsi type
 */
public static QName getXSIType(Parameter param) {
  if (param.getMIMEInfo() != null) {
    return getMIMETypeQName(param.getMIMEInfo().getType());
  }
  return getXSIType(param.getType());
}    // getXSIType
origin: org.apache.axis/axis

/**
 * Get the QName that could be used in the xsi:type
 * when serializing an object for this parameter/return
 *
 * @param param is a parameter
 * @return the QName of the parameter's xsi type
 */
public static QName getXSIType(Parameter param) {
  if (param.getMIMEInfo() != null) {
    return getMIMETypeQName(param.getMIMEInfo().getType());
  }
  return getXSIType(param.getType());
}    // getXSIType
origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Get the QName that could be used in the xsi:type
 * when serializing an object for this parameter/return
 *
 * @param param is a parameter
 * @return the QName of the parameter's xsi type
 */
public static QName getXSIType(Parameter param) {
  if (param.getMIMEInfo() != null) {
    return getMIMETypeQName(param.getMIMEInfo().getType());
  }
  return getXSIType(param.getType());
}    // getXSIType
org.apache.axis.wsdl.symbolTableParametergetType

Javadoc

Get the TypeEntry of the parameter.

Popular methods of Parameter

  • getMode
    Get the mode (IN, INOUT, OUT) of the parameter.
  • getName
    Get the name of this parameter. This call is equivalent to getQName().getLocalPart().
  • getQName
    Get the fully qualified name of this parameter.
  • isInHeader
    Is this parameter in the input message header?
  • isOutHeader
    Is this parameter in the output message header?
  • <init>
  • getMIMEInfo
    Get the MIME type of the parameter.
  • isNillable
    Indicates whether this parameter is nillable or not.
  • isOmittable
  • setInHeader
    Set the inHeader flag for this parameter.
  • setMIMEInfo
    Set the MIME type of the parameter.
  • setMode
    Set the mode (IN, INOUT, OUT) of the parameter. If the input to this method is not one of IN, INOUT,
  • setMIMEInfo,
  • setMode,
  • setName,
  • setNillable,
  • setOmittable,
  • setOutHeader,
  • setQName,
  • setType

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • findViewById (Activity)
  • setContentView (Activity)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • BoxLayout (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now