This object is responsible for coordinating Loaders to
perform the whole unmarshalling.
| Modifier and Type | Class and Description |
|---|---|
| private static class | UnmarshallingContext.
Root loader that uses the tag name and possibly its @xsi:type to decide how to start unmarshalling. |
| private static class | UnmarshallingContext.
Root loader that uses |
| private static class | UnmarshallingContext.
Stub to the user-specified factory method. |
| public class | UnmarshallingContext.
State information for each element. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final AssociationMap | assoc
If the unmarshaller is doing associative unmarshalling, this field is initialized to non-null. |
| public ClassLoader | classLoader
User-supplied |
| public ClassResolver | classResolver
Used to discover additional classes when we hit unknown elements/types. |
| private UnmarshallingContext. | current
The currently active state. |
| private Object | |
| private static final Loader | |
| private static final LocatorEx | |
| private NamespaceContext | |
| private static volatile int | errorsCounter
The variable introduced to avoid reporting n^10 similar errors. |
| private static final Loader | |
| private JaxBeanInfo | expectedType
If non-null, this unmarshaller will unmarshal |
| private final Map | factories
User-specified factory methods. |
| private IDResolver | idResolver
Handles ID/IDREF. |
| private boolean | isInplaceMode
Indicates whether we are doing in-place unmarshalling or not. |
| private boolean | isUnmarshalInProgress
This flag is set to true at the startDocument event and false at the endDocument event. |
| private LocatorEx | |
| private static final Logger | |
| private String[] | |
| private int | |
| public final UnmarshallerImpl | |
| private Patcher[] | patchers
Submitted patchers in the order they've submitted. |
| private int | |
| private Object | result
Root object that is being unmarshalled. |
| private final UnmarshallingContext. | root
Root state. |
| private InfosetScanner | scanner
This object is consulted to get the element object for the current element event. |
| private Scope | |
| private int | scopeTop
Points to the top of the scope stack (=size-1). |
| Access | Constructor and Description |
|---|---|
| public | UnmarshallingContext(UnmarshallerImpl _parent, AssociationMap<XmlNode>
Must be both non-null when the unmarshaller does the
in-place unmarshalling. Otherwise must be both null. assoc)Creates a new unmarshaller. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public void | addPatcher(Patcher
The run method of this object is called. job)Adds a job that will be executed at the last of the unmarshalling. |
| public String | Returns: Returns the value passed as the parameter. This is a hack, but this makes it easier for ID transducer to do its job.Adds the object which is currently being unmarshalled to the ID table. |
| pack-priv void | |
| public void | |
| public Object | |
| public Object | |
| public void | |
| public void | |
| public void | endPrefixMapping(String prefix)
Implements org. Called after |
| public void | endScope(int
The same size that gets passed to the frameSize)startScope(int)
method.Ends the current packing scope. |
| public void | errorUnresolvedIDREF(Object bean, String idref, LocatorEx loc)
Called when there's no corresponding ID value. |
| public boolean | expectText()
Implements org.
Deprecated
You should be always calling this through |
| public String[] | Returns: A possible zero-length array of prefixes. The default prefix is represented by the empty string.Returns a list of all in-scope prefixes. |
| private List | |
| public UnmarshallingContext | getContext()
Implements org. Returns the |
| public Collection | |
| public Collection | |
| public UnmarshallingContext. | |
| public Object | Returns: null if the current element doesn't have an inner peer, or if we are not doing the in-place unmarshalling.Gets the inner peer JAXB object associated with the current element. |
| public static UnmarshallingContext | getInstance()
When called from within the realm of the unmarshaller, this method returns the current in charge. |
| public JAXBContextImpl | |
| protected ValidationEventLocator | getLocation()
Implements abstract org. Gets the current location. |
| public LocatorEx | |
| public String | getNamespaceURI(String prefix)
Implements javax. Get Namespace URI bound to a prefix in the current scope. |
| public String[] | Returns: A possible zero-length array of prefixes. The default prefix is represented by the empty string.Returns a list of prefixes newly declared on the current element. |
| public Callable | |
| public Object | Returns: null if the current element doesn't have an inner peer, or if we are not doing the in-place unmarshalling.Gets the outer peer JAXB object associated with the current element. |
| public XmlVisitor. | getPredictor()
Implements org.
Deprecated
You should be always getting |
| public String | getPrefix(String uri)
Implements javax. Get prefix bound to Namespace URI in the current scope. |
| public Iterator | getPrefixes(String uri)
Implements javax. Get all prefixes bound to a Namespace URI in the current scope. |
| private String[] | |
| public Object | |
| public Scope | |
| public StructureLoader | |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | handleEvent(ValidationEvent event, boolean canRecover)
Reports an error to the user, and asks if s/he wants to recover. |
| public boolean | handleEvent(ValidationEvent event)
Implements jakarta. Receive notification of a validation warning or error. |
| public void | |
| public void | |
| public void | reset(InfosetScanner<XmlNode> scanner, boolean isInplaceMode, JaxBeanInfo<BeanT> expectedType, IDResolver idResolver)
|
| private String | |
| private void | |
| public Loader | selectRootLoader(UnmarshallingContext.
On top of |
| public void | |
| public boolean | Returns: true in case ifLevel#FINEST is set OR we haven't exceed errors reporting limit.Based on current |
| public void | startDocument(LocatorEx locator, NamespaceContext nsContext)
Implements org. Notifies a start of the document. |
| public void | startElement(TagName tagName)
Implements org. Notifies a start tag of a new element. |
| public void | startPrefixMapping(String prefix, String uri)
Implements org. Called before |
| public void | |
| public void | text(CharSequence pcdata)
Implements org. Text events. |