|
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.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 AegisType
DatabindingException
public void writeObject(Object object, MessageWriter writer, Context context) throws DatabindingException
AegisType
writeObject
in class AegisType
DatabindingException
public void writeSchema(org.apache.ws.commons.schema.XmlSchema schema)
AegisType
writeSchema
in class AegisType
schema
- root of the XSD document.public TypeMapping getTypeMapping()
getTypeMapping
in class AegisType
public void setTypeMapping(TypeMapping typeMapping)
setTypeMapping
in class AegisType
typeMapping
- The typeMapping to set.public Class getTypeClass()
getTypeClass
in class AegisType
public void setTypeClass(Class typeClass)
public boolean isComplex()
isComplex
in class AegisType
public boolean isAbstract()
isAbstract
in class AegisType
public void setAbstract(boolean ab)
setAbstract
in class AegisType
public boolean isNillable()
isNillable
in class AegisType
public void setNillable(boolean nillable)
setNillable
in class AegisType
public Set<AegisType> getDependencies()
AegisType
getDependencies
in class AegisType
AegisType
dependenciespublic QName getSchemaType()
getSchemaType
in class AegisType
public void setSchemaType(QName name)
setSchemaType
in class AegisType
name
- The qName to set.public boolean isWriteOuter()
AegisType
isWriteOuter
in class AegisType
public 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 |