|
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
public abstract class AegisType
Aegis abstraction for a object. Types are responsible for reading and writing the contents of objects, but not, almost always, their own outermost XML element.
Field Summary | |
---|---|
protected Type |
typeClass
|
Constructor Summary | |
---|---|
AegisType()
|
Method Summary | |
---|---|
void |
addToSchemaElement(org.apache.ws.commons.schema.XmlSchemaElement schemaElement)
If the type object merely wants to contribute attributes to the xsd:element element, it can implement this. |
boolean |
equals(Object obj)
|
Set<AegisType> |
getDependencies()
Return a set of AegisType dependencies. |
long |
getMaxOccurs()
|
long |
getMinOccurs()
|
QName |
getSchemaType()
|
Type |
getType()
|
Class<?> |
getTypeClass()
|
TypeMapping |
getTypeMapping()
|
int |
hashCode()
|
boolean |
hasMaxOccurs()
|
boolean |
hasMinOccurs()
|
boolean |
isAbstract()
|
boolean |
isComplex()
|
boolean |
isFlatArray()
|
boolean |
isNillable()
|
boolean |
isWriteOuter()
Defaults to true. |
abstract Object |
readObject(MessageReader reader,
Context context)
Read in the XML fragment and create an object. |
void |
setAbstract(boolean ab)
|
void |
setFlatArray(boolean flatArray)
|
void |
setNillable(boolean nillable)
|
void |
setSchemaType(QName name)
|
void |
setTypeClass(Type typeClass)
|
void |
setTypeMapping(TypeMapping typeMapping)
|
void |
setWriteOuter(boolean writeOuter)
|
String |
toString()
|
boolean |
usesUtilityTypes()
True if this type requires the import of the aegisTypes schema. |
boolean |
usesXmime()
|
abstract void |
writeObject(Object object,
MessageWriter writer,
Context context)
Writes the object to the MessageWriter. |
void |
writeSchema(org.apache.ws.commons.schema.XmlSchema root)
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 java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Type typeClass
Constructor Detail |
---|
public AegisType()
Method Detail |
---|
public abstract Object readObject(MessageReader reader, Context context) throws DatabindingException
reader
- context
-
DatabindingException
public abstract void writeObject(Object object, MessageWriter writer, Context context) throws DatabindingException
object
- writer
- context
-
DatabindingException
public void writeSchema(org.apache.ws.commons.schema.XmlSchema root)
root
- root of the XSD document.public void addToSchemaElement(org.apache.ws.commons.schema.XmlSchemaElement schemaElement)
schemaElement
- public TypeMapping getTypeMapping()
public void setTypeMapping(TypeMapping typeMapping)
typeMapping
- The typeMapping to set.public Class<?> getTypeClass()
public Type getType()
public void setTypeClass(Type typeClass)
typeClass
- The typeClass to set.public boolean isComplex()
public boolean isAbstract()
public void setAbstract(boolean ab)
public boolean isNillable()
public void setNillable(boolean nillable)
public Set<AegisType> getDependencies()
AegisType
dependenciespublic boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
public QName getSchemaType()
public void setSchemaType(QName name)
name
- The qName to set.public boolean isWriteOuter()
public void setWriteOuter(boolean writeOuter)
public boolean usesXmime()
public boolean usesUtilityTypes()
public boolean hasMinOccurs()
public boolean hasMaxOccurs()
public long getMinOccurs()
public long getMaxOccurs()
public String toString()
toString
in class Object
public boolean isFlatArray()
public void setFlatArray(boolean flatArray)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |