SCDBasedBindingSet
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.sun.tools.xjc.reader.internalizer.SCDBasedBindingSet(Showing top 15 results out of 315)

  • Common ways to obtain SCDBasedBindingSet
private void myMethod () {
SCDBasedBindingSet s =
  • DOMForest dOMForest;dOMForest.transform(options.isExtensionMode())
  • DOMForest forest;new SCDBasedBindingSet(forest)
  • DOMForest dOMForest;Internalizer.transform(dOMForest, enableSCD, disableSecureProcessing)
  • Smart code suggestions by Codota
}
origin: org.jvnet.jaxb2_commons/jaxb2-basics-jaxb-xjc

private void reportError( Element errorSource, String formattedMsg ) {
  reportError( errorSource, formattedMsg, null );
}
origin: com.sun.xml.bind/jaxb-xjc

private SCDBasedBindingSet transform() {
  // either target nodes are conventional DOM nodes (as per spec),
  Map<Element,List<Node>> targetNodes = new HashMap<Element,List<Node>>();
  // ... or it will be schema components by means of SCD (RI extension)
  SCDBasedBindingSet scd = new SCDBasedBindingSet(forest);
  
  //
  // identify target nodes for all <jaxb:bindings>
  //
  for (Element jaxbBindings : forest.outerMostBindings) {
    // initially, the inherited context is itself
    buildTargetNodeMap(jaxbBindings, jaxbBindings, null, targetNodes, scd);
  }
  
  //
  // then move them to their respective positions.
  //
  for (Element jaxbBindings : forest.outerMostBindings) {
    move(jaxbBindings, targetNodes);
  }
  return scd;
}

origin: org.jvnet.jaxb2_commons/jaxb-xjc

/**
 * Parses a {@link DOMForest} into a {@link XSSchemaSet}.
 *
 * @return
 *      null if the parsing failed.
 */
public XSSchemaSet createXSOM(DOMForest forest, SCDBasedBindingSet scdBasedBindingSet) throws SAXException {
  // set up other parameters to XSOMParser
  XSOMParser reader = createXSOMParser(forest);
  // re-parse the transformed schemas
  for (String systemId : forest.getRootDocuments()) {
    errorReceiver.pollAbort();
    Document dom = forest.get(systemId);
    if (!dom.getDocumentElement().getNamespaceURI().equals(Const.JAXB_NSURI))
      reader.parse(systemId);
  }
  XSSchemaSet result = reader.getResult();
  if(result!=null)
    scdBasedBindingSet.apply(result,errorReceiver);
  return result;
}
 
origin: com.sun.xml.bind/jaxb-xjc

private void reportError( Element errorSource, String formattedMsg ) {
  reportError( errorSource, formattedMsg, null );
}
origin: org.glassfish.jaxb/jaxb-xjc

private void reportError( Element errorSource, String formattedMsg ) {
  reportError( errorSource, formattedMsg, null );
}
origin: com.sun.xml.bind/jaxb-osgi

private void reportError( Element errorSource, String formattedMsg ) {
  reportError( errorSource, formattedMsg, null );
}
origin: org.jvnet.jaxb2_commons/jaxb-xjc

private void reportError( Element errorSource, String formattedMsg ) {
  reportError( errorSource, formattedMsg, null );
}
origin: org.glassfish.jaxb/jaxb-xjc

private SCDBasedBindingSet transform() {
  // either target nodes are conventional DOM nodes (as per spec),
  Map<Element,List<Node>> targetNodes = new HashMap<Element,List<Node>>();
  // ... or it will be schema components by means of SCD (RI extension)
  SCDBasedBindingSet scd = new SCDBasedBindingSet(forest);
  
  //
  // identify target nodes for all <jaxb:bindings>
  //
  for (Element jaxbBindings : forest.outerMostBindings) {
    // initially, the inherited context is itself
    buildTargetNodeMap(jaxbBindings, jaxbBindings, null, targetNodes, scd);
  }
  
  //
  // then move them to their respective positions.
  //
  for (Element jaxbBindings : forest.outerMostBindings) {
    move(jaxbBindings, targetNodes);
  }
  return scd;
}

origin: org.jvnet.jaxb2_commons/jaxb2-basics-jaxb-xjc

private SCDBasedBindingSet transform() {
  // either target nodes are conventional DOM nodes (as per spec),
  Map<Element,List<Node>> targetNodes = new HashMap<Element,List<Node>>();
  // ... or it will be schema components by means of SCD (RI extension)
  SCDBasedBindingSet scd = new SCDBasedBindingSet(forest);
  //
  // identify target nodes for all <jaxb:bindings>
  //
  for (Element jaxbBindings : forest.outerMostBindings) {
    // initially, the inherited context is itself
    buildTargetNodeMap(jaxbBindings, jaxbBindings, null, targetNodes, scd);
  }
  //
  // then move them to their respective positions.
  //
  for (Element jaxbBindings : forest.outerMostBindings) {
    move(jaxbBindings, targetNodes);
  }
  return scd;
}
origin: org.jvnet.jaxb2_commons/jaxb-xjc

private SCDBasedBindingSet transform() {
  // either target nodes are conventional DOM nodes (as per spec),
  Map<Element,Node> targetNodes = new HashMap<Element,Node>();
  // ... or it will be schema components by means of SCD (RI extension)
  SCDBasedBindingSet scd = new SCDBasedBindingSet(forest);
  
  //
  // identify target nodes for all <jaxb:bindings>
  //
  for (Element jaxbBindings : forest.outerMostBindings) {
    // initially, the inherited context is itself
    buildTargetNodeMap(jaxbBindings, jaxbBindings, null, targetNodes, scd);
  }
  
  //
  // then move them to their respective positions.
  //
  for (Element jaxbBindings : forest.outerMostBindings) {
    move(jaxbBindings, targetNodes);
  }
  return scd;
}
 
origin: com.sun.xml.bind/jaxb-osgi

private SCDBasedBindingSet transform() {
  // either target nodes are conventional DOM nodes (as per spec),
  Map<Element,List<Node>> targetNodes = new HashMap<Element,List<Node>>();
  // ... or it will be schema components by means of SCD (RI extension)
  SCDBasedBindingSet scd = new SCDBasedBindingSet(forest);
  
  //
  // identify target nodes for all <jaxb:bindings>
  //
  for (Element jaxbBindings : forest.outerMostBindings) {
    // initially, the inherited context is itself
    buildTargetNodeMap(jaxbBindings, jaxbBindings, null, targetNodes, scd);
  }
  
  //
  // then move them to their respective positions.
  //
  for (Element jaxbBindings : forest.outerMostBindings) {
    move(jaxbBindings, targetNodes);
  }
  return scd;
}

origin: com.sun.xml.bind/jaxb-xjc

/**
 * Parses a {@link DOMForest} into a {@link XSSchemaSet}.
 *
 * @return
 *      null if the parsing failed.
 */
public XSSchemaSet createXSOM(DOMForest forest, SCDBasedBindingSet scdBasedBindingSet) throws SAXException {
  // set up other parameters to XSOMParser
  XSOMParser reader = createXSOMParser(forest);
  // re-parse the transformed schemas
  for (String systemId : forest.getRootDocuments()) {
    errorReceiver.pollAbort();
    Document dom = forest.get(systemId);
    if (!dom.getDocumentElement().getNamespaceURI().equals(Const.JAXB_NSURI)) {
      reader.parse(systemId);
    }
  }
  XSSchemaSet result = reader.getResult();
  if(result!=null)
    scdBasedBindingSet.apply(result,errorReceiver);
  return result;
}
origin: org.jvnet.jaxb2_commons/jaxb2-basics-jaxb-xjc

/**
 * Parses a {@link DOMForest} into a {@link XSSchemaSet}.
 *
 * @return
 *      null if the parsing failed.
 */
public XSSchemaSet createXSOM(DOMForest forest, SCDBasedBindingSet scdBasedBindingSet) throws SAXException {
  // set up other parameters to XSOMParser
  XSOMParser reader = createXSOMParser(forest);
  // re-parse the transformed schemas
  for (String systemId : forest.getRootDocuments()) {
    errorReceiver.pollAbort();
    Document dom = forest.get(systemId);
    if (!dom.getDocumentElement().getNamespaceURI().equals(Const.JAXB_NSURI))
      reader.parse(systemId);
  }
  XSSchemaSet result = reader.getResult();
  if(result!=null)
    scdBasedBindingSet.apply(result,errorReceiver);
  return result;
}

origin: org.glassfish.jaxb/jaxb-xjc

/**
 * Parses a {@link DOMForest} into a {@link XSSchemaSet}.
 *
 * @return
 *      null if the parsing failed.
 */
public XSSchemaSet createXSOM(DOMForest forest, SCDBasedBindingSet scdBasedBindingSet) throws SAXException {
  // set up other parameters to XSOMParser
  XSOMParser reader = createXSOMParser(forest);
  // re-parse the transformed schemas
  for (String systemId : forest.getRootDocuments()) {
    errorReceiver.pollAbort();
    Document dom = forest.get(systemId);
    if (!dom.getDocumentElement().getNamespaceURI().equals(Const.JAXB_NSURI)) {
      reader.parse(systemId);
    }
  }
  XSSchemaSet result = reader.getResult();
  if(result!=null)
    scdBasedBindingSet.apply(result,errorReceiver);
  return result;
}
origin: com.sun.xml.bind/jaxb-osgi

/**
 * Parses a {@link DOMForest} into a {@link XSSchemaSet}.
 *
 * @return
 *      null if the parsing failed.
 */
public XSSchemaSet createXSOM(DOMForest forest, SCDBasedBindingSet scdBasedBindingSet) throws SAXException {
  // set up other parameters to XSOMParser
  XSOMParser reader = createXSOMParser(forest);
  // re-parse the transformed schemas
  for (String systemId : forest.getRootDocuments()) {
    errorReceiver.pollAbort();
    Document dom = forest.get(systemId);
    if (!dom.getDocumentElement().getNamespaceURI().equals(Const.JAXB_NSURI)) {
      reader.parse(systemId);
    }
  }
  XSSchemaSet result = reader.getResult();
  if(result!=null)
    scdBasedBindingSet.apply(result,errorReceiver);
  return result;
}
com.sun.tools.xjc.reader.internalizerSCDBasedBindingSet

Javadoc

Set of binding nodes that have target nodes specified via SCD. This is parsed during Internalizer works on the tree, but applying this has to wait for XSSchemaSet to be parsed.

Most used methods

  • <init>
  • apply
    Applies the additional binding customizations.
  • createNewTarget
  • reportError

Popular classes and methods

  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Path (java.nio.file)
  • JComboBox (javax.swing)
  • JList (javax.swing)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)