Top Description Inners Fields Constructors Methods
com.sun.tools.xjc.reader.internalizer

public final Class SCDBasedBindingSet

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collection, .Iterator, .List, com.sun.tools.xjc.reader.Ring, com.sun.tools.xjc.reader.xmlschema.AcknowledgePluginCustomizationBinder, com.sun.xml.xsom.*, jakarta.xml.bind.JAXBException, .Unmarshaller, .UnmarshallerHandler, javax.xml.validation.ValidatorHandler, com.sun.istack.NotNull, .SAXParseException2, com.sun.tools.xjc.ErrorReceiver, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIDeclaration, .BindInfo, com.sun.tools.xjc.util.ForkContentHandler, .DOMUtils, org.w3c.dom.Element, org.xml.sax.SAXException, .SAXParseException

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.
Author
Kohsuke Kawaguchi
See Also
SCD

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
SCDBasedBindingSet.Target

Represents the target schema component of the customization identified by SCD.

Field Summary

Modifier and TypeField and Description
private ErrorReceiver
private final DOMForest
forest

The forest where binding elements came from.

private ForkContentHandler
private SCDBasedBindingSet.Target
private UnmarshallerHandler

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
apply(XSSchemaSet schema, ErrorReceiver errorReceiver)

Applies the additional binding customizations.

pack-priv SCDBasedBindingSet.Target
private void
reportError(Element errorSource, String formattedMsg)

private void
reportError(Element errorSource, String formattedMsg, Exception nestedException)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorReceiverback to summary
private ErrorReceiver errorReceiver
forestback to summary
private final DOMForest forest

The forest where binding elements came from. Needed to report line numbers for errors.

loaderback to summary
private ForkContentHandler loader
topLevelback to summary
private SCDBasedBindingSet.Target topLevel
unmarshallerback to summary
private UnmarshallerHandler unmarshaller

Constructor Detail

SCDBasedBindingSetback to summary
pack-priv SCDBasedBindingSet(DOMForest forest)

Method Detail

applyback to summary
public void apply(XSSchemaSet schema, ErrorReceiver errorReceiver)

Applies the additional binding customizations.

createNewTargetback to summary
pack-priv SCDBasedBindingSet.Target createNewTarget(SCDBasedBindingSet.Target parent, Element src, SCD scd)
reportErrorback to summary
private void reportError(Element errorSource, String formattedMsg)
reportErrorback to summary
private void reportError(Element errorSource, String formattedMsg, Exception nestedException)
com.sun.tools.xjc.reader.internalizer back to summary

pack-priv final Class SCDBasedBindingSet.Target

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.tools.xjc.reader.internalizer.SCDBasedBindingSet.Target

Represents the target schema component of the customization identified by SCD.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final List<Element>
bindings

Bindings that apply to this SCD.

private SCDBasedBindingSet.Target
firstChild

SCDs can be specified via multiple steps, like:

<bindings scd="foo/bar">
  <bindings scd="zot/xyz">
private final SCDBasedBindingSet.Target
private final SCD
scd

Compiled SCD.

private final Element
src

The element on which SCD was found.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addBinidng(Element binding)

Adds a new binding declaration to be associated to the schema component identified by scd.

private void
apply(Collection<? extends XSComponent> contextNode)

Applies bindings to the schema component for just this node.

private void
applyAll(Collection<? extends XSComponent> contextNode)

Applies bindings to the schema component for this and its siblings.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bindingsback to summary
private final List<Element> bindings

Bindings that apply to this SCD.

firstChildback to summary
private SCDBasedBindingSet.Target firstChild

SCDs can be specified via multiple steps, like:

<bindings scd="foo/bar">
  <bindings scd="zot/xyz">
This field and nextSibling form a single-linked list that represent the children that shall be evaluated within this target. Think of it as List<Target>.
nextSiblingback to summary
private final SCDBasedBindingSet.Target nextSibling
scdback to summary
private final SCD scd

Compiled SCD.

Annotations
@NotNull
srcback to summary
private final Element src

The element on which SCD was found.

Annotations
@NotNull

Constructor Detail

Targetback to summary
private Target(SCDBasedBindingSet.Target parent, Element src, SCD scd)

Method Detail

addBinidngback to summary
pack-priv void addBinidng(Element binding)

Adds a new binding declaration to be associated to the schema component identified by scd.

applyback to summary
private void apply(Collection<? extends XSComponent> contextNode)

Applies bindings to the schema component for just this node.

applyAllback to summary
private void applyAll(Collection<? extends XSComponent> contextNode)

Applies bindings to the schema component for this and its siblings.