|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.aegis.type.encoded.SoapRefRegistry
public class SoapRefRegistry
SoapRefRegistry handles resolving all SOAP encoded references. After each object is unmarshalled if the xml contained a SOAP id attribute it is registered with that attribute. As each object is unmarshalled if any nested elements have a SOAP ref attribute it, the references is registered. If there is a object instance already registered with the referenced id, the SOAP reference is immediately set. Otherwise, the reference is set when an object instance is registered with the id. This allows for the objects to occur in any order in the XML document.
Note: only the StructType and TraillingBlocks register objects with this class.
Constructor Summary | |
---|---|
SoapRefRegistry()
|
Method Summary | |
---|---|
void |
addInstance(String id,
Object instance)
Add an object instance to the registry. |
void |
addRef(String id,
SoapRef soapRef)
Adds a reference to the specified id. |
static SoapRefRegistry |
get(Context context)
Get the SoapRefRegistry stored in the context, and if necessary create a new one. |
Set<String> |
getIds()
Gets the ids of the registered object instances. |
SortedMap<String,List<SoapRef>> |
getUnresolvedRefs()
Gets the unresolved SOAP references by referenced id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SoapRefRegistry()
Method Detail |
---|
public static SoapRefRegistry get(Context context)
context
- the unmarshal context
public void addInstance(String id, Object instance)
id
- the unique identifier of the instanceinstance
- the instance
DatabindingException
- if another object instance is already registered with the idpublic void addRef(String id, SoapRef soapRef)
id
- the id of the referenced object instancesoapRef
- the reference to setpublic Set<String> getIds()
public SortedMap<String,List<SoapRef>> getUnresolvedRefs()
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |