|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.aegis.type.AegisType
org.apache.cxf.aegis.type.encoded.SoapRefType
public class SoapRefType
SoapRefType reads and writes SoapRef objects.
When reading, this class checks for a SOAP ref attribute, and if present creates SoapRef and registers it with the SoapRefRegistry. If the SOAP ref attribute is not present, this class delegates to the baseType specified in the constructor. Regardless of the element containing SOAP ref or not, a SoapRef object is returned. In the case of an inline object the SoapRef will contain a null value. When writing, the class always writes an element containing a SOAP ref attribute. The actual object instance is registered with the MarshalRegistry, and is written at the end of the message body by the TrailingBlocks class.
| Field Summary |
|---|
| Fields inherited from class org.apache.cxf.aegis.type.AegisType |
|---|
typeClass |
| Constructor Summary | |
|---|---|
SoapRefType(AegisType baseType)
|
|
| Method Summary | |
|---|---|
Set<AegisType> |
getDependencies()
Return a set of AegisType dependencies. |
QName |
getSchemaType()
|
Class<?> |
getTypeClass()
|
TypeMapping |
getTypeMapping()
|
boolean |
isAbstract()
|
boolean |
isComplex()
|
boolean |
isNillable()
|
boolean |
isWriteOuter()
Defaults to true. |
Object |
readObject(MessageReader reader,
Context context)
Read in the XML fragment and create an object. |
void |
setAbstract(boolean ab)
|
void |
setNillable(boolean nillable)
|
void |
setSchemaType(QName name)
|
void |
setTypeClass(Class<?> typeClass)
|
void |
setTypeMapping(TypeMapping typeMapping)
|
void |
setWriteOuter(boolean writeOuter)
|
void |
writeObject(Object object,
MessageWriter writer,
Context context)
Writes the object to the MessageWriter. |
void |
writeSchema(org.apache.ws.commons.schema.XmlSchema schema)
If this type should correspond to a global, named, schema type, here is where the type object adds it to the schema. |
| Methods inherited from class org.apache.cxf.aegis.type.AegisType |
|---|
addToSchemaElement, equals, getMaxOccurs, getMinOccurs, getType, hashCode, hasMaxOccurs, hasMinOccurs, isFlatArray, setFlatArray, setTypeClass, toString, usesUtilityTypes, usesXmime |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SoapRefType(AegisType baseType)
| Method Detail |
|---|
public Object readObject(MessageReader reader,
Context context)
throws DatabindingException
AegisType
readObject in class AegisTypeDatabindingException
public void writeObject(Object object,
MessageWriter writer,
Context context)
throws DatabindingException
AegisType
writeObject in class AegisTypeDatabindingExceptionpublic void writeSchema(org.apache.ws.commons.schema.XmlSchema schema)
AegisType
writeSchema in class AegisTypeschema - root of the XSD document.public TypeMapping getTypeMapping()
getTypeMapping in class AegisTypepublic void setTypeMapping(TypeMapping typeMapping)
setTypeMapping in class AegisTypetypeMapping - The typeMapping to set.public Class<?> getTypeClass()
getTypeClass in class AegisTypepublic void setTypeClass(Class<?> typeClass)
public boolean isComplex()
isComplex in class AegisTypepublic boolean isAbstract()
isAbstract in class AegisTypepublic void setAbstract(boolean ab)
setAbstract in class AegisTypepublic boolean isNillable()
isNillable in class AegisTypepublic void setNillable(boolean nillable)
setNillable in class AegisTypepublic Set<AegisType> getDependencies()
AegisType
getDependencies in class AegisTypeAegisType dependenciespublic QName getSchemaType()
getSchemaType in class AegisTypepublic void setSchemaType(QName name)
setSchemaType in class AegisTypename - The qName to set.public boolean isWriteOuter()
AegisType
isWriteOuter in class AegisTypepublic void setWriteOuter(boolean writeOuter)
setWriteOuter in class AegisType
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||