Codota Logo
XmlSchemaObjectCollection.removeAt
Code IndexAdd Codota to your IDE (free)

How to use
removeAt
method
in
org.apache.ws.commons.schema.XmlSchemaObjectCollection

Best Java code snippets using org.apache.ws.commons.schema.XmlSchemaObjectCollection.removeAt (Showing top 3 results out of 315)

  • Common ways to obtain XmlSchemaObjectCollection
private void myMethod () {
XmlSchemaObjectCollection x =
  • Codota Iconnew XmlSchemaObjectCollection()
  • Codota IconXmlSchema xmlSchema;xmlSchema.getItems()
  • Codota IconXmlSchema xmlSchema;xmlSchema.getIncludes()
  • Smart code suggestions by Codota
}
origin: org.apache.tuscany.sca/tuscany-base-runtime

public void fixUpMovedTypeReferences(String fromNamespace, String toNamespace, XmlSchemaObject fixUpObj, List<XmlSchema> relatedSchema){
  
  if (!(fixUpObj instanceof XmlSchemaComplexType)){
    return;
  }
  
  for (XmlSchema schema : relatedSchema){
    int importRemoveIndex = -1;
    for (int i = 0; i < schema.getItems().getCount(); i++){
      XmlSchemaObject obj = schema.getItems().getItem(i);
      
      processXMLSchemaObject(toNamespace, obj, fixUpObj);
      
      // remove FROM imports
      if (obj instanceof XmlSchemaImport &&
        ((XmlSchemaImport)obj).getNamespace().equals(fromNamespace)){
        importRemoveIndex = i;
      }
    }
    if (importRemoveIndex >= 0){
      schema.getItems().removeAt(importRemoveIndex);
    }
  }
}

origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen

public void fixUpMovedTypeReferences(String fromNamespace, String toNamespace, XmlSchemaObject fixUpObj, List<XmlSchema> relatedSchema){
  
  if (!(fixUpObj instanceof XmlSchemaComplexType)){
    return;
  }
  
  for (XmlSchema schema : relatedSchema){
    int importRemoveIndex = -1;
    for (int i = 0; i < schema.getItems().getCount(); i++){
      XmlSchemaObject obj = schema.getItems().getItem(i);
      
      processXMLSchemaObject(toNamespace, obj, fixUpObj);
      
      // remove FROM imports
      if (obj instanceof XmlSchemaImport &&
        ((XmlSchemaImport)obj).getNamespace().equals(fromNamespace)){
        importRemoveIndex = i;
      }
    }
    if (importRemoveIndex >= 0){
      schema.getItems().removeAt(importRemoveIndex);
    }
  }
}

origin: org.springframework.ws/org.springframework.xml

private void inlineIncludes(XmlSchema schema, Set<XmlSchema> processedIncludes, Set<XmlSchema> processedImports) {
  processedIncludes.add(schema);
  XmlSchemaObjectCollection schemaItems = schema.getItems();
  for (int i = 0; i < schemaItems.getCount(); i++) {
    XmlSchemaObject schemaObject = schemaItems.getItem(i);
    if (schemaObject instanceof XmlSchemaInclude) {
      XmlSchema includedSchema = ((XmlSchemaInclude) schemaObject).getSchema();
      if (!processedIncludes.contains(includedSchema)) {
        inlineIncludes(includedSchema, processedIncludes, processedImports);
        findImports(includedSchema, processedImports, processedIncludes);
        XmlSchemaObjectCollection includeItems = includedSchema.getItems();
        for (int j = 0; j < includeItems.getCount(); j++) {
          XmlSchemaObject includedItem = includeItems.getItem(j);
          schemaItems.add(includedItem);
        }
      }
      // remove the <include/>
      schemaItems.removeAt(i);
      i--;
    }
  }
}
org.apache.ws.commons.schemaXmlSchemaObjectCollectionremoveAt

Popular methods of XmlSchemaObjectCollection

  • getIterator
  • getCount
  • getItem
  • add
  • <init>
    Creates new XmlSchemaObjectCollection
  • toString

Popular in Java

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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