|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cxf.aegis.type.Type
public abstract class Type
A Type reads and writes XML fragments to create and write objects.
Field Summary | |
---|---|
protected java.lang.Class |
typeClass
|
Constructor Summary | |
---|---|
Type()
|
Method Summary | |
---|---|
void |
addToSchemaElement(org.jdom.Element schemaElement)
If the type object merely wants to contribute attributes to the xsd:element element, it can implement this. |
boolean |
equals(java.lang.Object obj)
|
java.util.Set<Type> |
getDependencies()
Return a set of Type dependencies. |
long |
getMaxOccurs()
|
long |
getMinOccurs()
|
javax.xml.namespace.QName |
getSchemaType()
|
java.lang.Class |
getTypeClass()
|
TypeMapping |
getTypeMapping()
|
int |
hashCode()
|
boolean |
hasMaxOccurs()
|
boolean |
hasMinOccurs()
|
boolean |
isAbstract()
|
boolean |
isComplex()
|
boolean |
isNillable()
|
boolean |
isWriteOuter()
|
abstract java.lang.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(javax.xml.namespace.QName name)
|
void |
setTypeClass(java.lang.Class typeClass)
|
void |
setTypeMapping(TypeMapping typeMapping)
|
void |
setWriteOuter(boolean writeOuter)
|
java.lang.String |
toString()
|
boolean |
usesUtilityTypes()
True if this type requires the import of the aegisTypes schema. |
boolean |
usesXmime()
|
abstract void |
writeObject(java.lang.Object object,
MessageWriter writer,
Context context)
Writes the object to the MessageWriter. |
void |
writeSchema(org.jdom.Element 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 java.lang.Class typeClass
Constructor Detail |
---|
public Type()
Method Detail |
---|
public abstract java.lang.Object readObject(MessageReader reader, Context context) throws DatabindingException
reader
- context
-
DatabindingException
public abstract void writeObject(java.lang.Object object, MessageWriter writer, Context context) throws DatabindingException
object
- writer
- context
-
DatabindingException
public void writeSchema(org.jdom.Element root)
root
- root of the XSD document.public void addToSchemaElement(org.jdom.Element schemaElement)
schemaElement
- public TypeMapping getTypeMapping()
public void setTypeMapping(TypeMapping typeMapping)
typeMapping
- The typeMapping to set.public java.lang.Class getTypeClass()
public void setTypeClass(java.lang.Class 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 java.util.Set<Type> getDependencies()
Type
dependenciespublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
public javax.xml.namespace.QName getSchemaType()
public void setSchemaType(javax.xml.namespace.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 java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |