Codota Logo
StringUtils
Code IndexAdd Codota to your IDE (free)

How to use
StringUtils
in
com.ibm.wsdl.util

Best Java code snippets using com.ibm.wsdl.util.StringUtils (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: wsdl4j/wsdl4j

         ? StringUtils.getURL(null, contextURI)
         : null;
URL url = StringUtils.getURL(contextURL, wsdlURI);
InputStream inputStream = StringUtils.getContentAsInputStream(url);
InputSource inputSource = new InputSource(inputStream);
inputSource.setSystemId(url.toString());
origin: wsdl4j/wsdl4j

return StringUtils.parseNMTokens(attrValue);
List oldList = StringUtils.parseNMTokens(attrValue);
int size = oldList.size();
List newList = new Vector(size);
origin: wsdl4j/wsdl4j

attrStrValue = StringUtils.getNMTokens(attrValueList);
origin: org.wso2.wsdl.validator/wsdl-validator

/**
 * Run WSDL validation on a given file.
 * 
 * @param filename 
 *         The name of the file to validate.
 * @throws Exception
 */
protected IValidationReport validateFile(String filename)
{    
 // Resolve the location of the file.
 String filelocation = null;
 try
 {
  URL fileURL = StringUtils.getURL(new URL(FILE_PREFIX + workingdir + "/"), filename);
  filelocation = fileURL.toExternalForm();
 }
 catch (MalformedURLException e)
 {
  // Do nothing. The WSDL validator will handle the error.
  //LoggerFactory.getInstance().getLogger().log(MessageFormat.format(WSDLValidateTextUIMessages._ERROR_UNABLE_TO_READ_FILE, new Object[]{filename}), ILogger.SEV_ERROR);
 }
 
 // Run validation on the file.
 IValidationReport valReport = wsdlValidator.validate(filelocation, null, configuration);
 return valReport;
}
origin: wsdl4j/wsdl4j

public static String getClassName(Class targetClass)
{
 String className = targetClass.getName();
 return targetClass.isArray() ? parseDescriptor(className) : className;
}
origin: org.wso2.wsdl.validator/wsdl-validator

/**
 * Parse the XML document and return the document element.
 * 
 * @param uri the location of the XML document.
 * @param schema a String identifying related schema document.
 * @return a Document object.
 * @throws WSIException if there is a problem parsing the XML document.
 * @throws IOException if an I/O exception of some sort has occurred.
 */
public static Document parseXMLDocument(String uri, String schema)
throws WSIException, IOException 
{
   URL url = StringUtils.getURL(null, uri);
   InputStream inputStream = (InputStream)url.getContent();
   InputSource inputSource = new InputSource(inputStream);
   inputSource.setSystemId(url.toString());
   
   if (schema == null)
     return parseXML(inputSource, false);
   else
    return parseXML(inputSource, schema);
}
origin: org.wso2.wsdl4j/wsdl4j

public static String getClassName(Class targetClass)
{
 String className = targetClass.getName();
 return targetClass.isArray() ? parseDescriptor(className) : className;
}
origin: wsdl4j/wsdl4j

         ? StringUtils.getURL(null, contextURI)
         : null;
url = StringUtils.getURL(contextURL, locationURI);
importedDef = (Definition)importedDefs.get(url.toString());
 inputStream = StringUtils.getContentAsInputStream(url);
origin: wsdl4j/wsdl4j

soapBody.setParts(StringUtils.parseNMTokens(partsStr));
soapBody.setEncodingStyles(StringUtils.parseNMTokens(encStyleStr));
origin: org.eclipse/org.eclipse.wst.wsi

/**
 * Parse the XML document and return the document element.
 * 
 * @param uri the location of the XML document.
 * @param schema a String identifying related schema document.
 * @return a Document object.
 * @throws WSIException if there is a problem parsing the XML document.
 * @throws IOException if an I/O exception of some sort has occurred.
 */
public static Document parseXMLDocument(String uri, String schema)
throws WSIException, IOException 
{
   URL url = StringUtils.getURL(null, uri);
   InputStream inputStream = (InputStream)url.getContent();
   InputSource inputSource = new InputSource(inputStream);
   inputSource.setSystemId(url.toString());
   
   if (schema == null)
     return parseXML(inputSource, false);
   else
    return parseXML(inputSource, schema);
}
origin: wsdl4j/wsdl4j

            StringUtils.getNMTokens(soapBody.getParts()),
            pw);
DOMUtils.printAttribute(SOAPConstants.ATTR_USE, soapBody.getUse(), pw);
DOMUtils.printAttribute(SOAPConstants.ATTR_ENCODING_STYLE,
         StringUtils.getNMTokens(soapBody.getEncodingStyles()),
         pw);
DOMUtils.printAttribute(Constants.ATTR_NAMESPACE,
origin: wsdl4j/wsdl4j

 URL contextURL = (contextURI != null) ? StringUtils.getURL(null, contextURI) : null;
 URL url = StringUtils.getURL(contextURL, schemaRef.getSchemaLocationURI());
 location = url.toExternalForm();
inputStream = StringUtils.getContentAsInputStream(url);
origin: wsdl4j/wsdl4j

op.setParameterOrdering(StringUtils.parseNMTokens(parameterOrderStr));
origin: org.wso2.wsdl.validator/wsdl-validator

URL url1 = s2 == null ? null : StringUtils.getURL(null, s2);
url = StringUtils.getURL(url1, s1);
definition1 = (Definition) map.get(url.toString());
if (definition1 == null)
origin: wsdl4j/wsdl4j

            StringUtils.getNMTokens(soapBody.getParts()),
            pw);
DOMUtils.printAttribute(SOAP12Constants.ATTR_USE, soapBody.getUse(), pw);
origin: org.wso2.wsdl.validator/wsdl-validator

URL contextURL = (contextURI != null) ? StringUtils.getURL(null, contextURI) : null;
URL url = StringUtils.getURL(contextURL, wsdlURI);
InputStream reader = StringUtils.getContentAsInputStream(url);
InputSource inputSource = new InputSource(reader);
Document doc = getDocument(inputSource, wsdlURI);
origin: wsdl4j/wsdl4j

soapBody.setParts(StringUtils.parseNMTokens(partsStr));
origin: org.eclipse/org.eclipse.wst.wsi

URL url1 = s2 == null ? null : StringUtils.getURL(null, s2);
url = StringUtils.getURL(url1, s1);
definition1 = (Definition) map.get(url.toString());
if (definition1 == null)
origin: wsdl4j/wsdl4j

            pw);
DOMUtils.printAttribute(SOAPConstants.ATTR_ENCODING_STYLE,
   StringUtils.getNMTokens(soapHeaderFault.getEncodingStyles()),
   pw);
DOMUtils.printAttribute(Constants.ATTR_NAMESPACE,
origin: org.wso2.wsdl4j/wsdl4j

         ? StringUtils.getURL(null, contextURI)
         : null;
URL url = StringUtils.getURL(contextURL, wsdlURI);
InputStream inputStream = StringUtils.getContentAsInputStream(url);
InputSource inputSource = new InputSource(inputStream);
inputSource.setSystemId(url.toString());
com.ibm.wsdl.utilStringUtils

Javadoc

Deals with strings (probably need to elaborate some more).

Most used methods

  • getURL
  • getContentAsInputStream
  • parseNMTokens
  • getNMTokens
  • parseDescriptor

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Notification (javax.management)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now