Class MarshalRegistry
java.lang.Object
org.apache.cxf.aegis.type.encoded.MarshalRegistry
MarshalRegistry maintains tracks which object instances have been marshaled
and which objects still need to be marshaled.
Note: only the StructType register objects with this class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MarshalRegistryGet the MarshalRegistry stored in the context, and if necessary create a new one.getInstanceId(Object instance) iterator()Returns an iterator over the object instances that have not been marshalled yet.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MarshalRegistry
public MarshalRegistry()
-
-
Method Details
-
get
Get the MarshalRegistry stored in the context, and if necessary create a new one.- Parameters:
context- the unmarshal context- Returns:
- the SoapRefRegistry; never null
-
getInstanceId
-
iterator
Returns an iterator over the object instances that have not been marshalled yet. As each instance in this iterator is written, it may contain references to additional objects that have not been written. Those references objects will be added to the end of this iterator, so the "list" that is being iterated over grows as the iteration preceeds. When an instance is returned from this iterator it is marked as marshalled.
-