org.apache.cxf.aegis.type
Class Type
java.lang.Object
org.apache.cxf.aegis.type.Type
- Direct Known Subclasses:
- AbstractXOPType, ArrayType, Base64Type, BeanType, BigDecimalType, BigIntegerType, BooleanType, ByteType, CalendarType, CharacterType, DateTimeType, DateType, DocumentType, DoubleType, DurationType, EnumType, FloatType, IntType, JDOMDocumentType, JDOMElementType, LongType, MapType, ObjectType, ShortType, SourceType, StringType, TimestampType, TimeType, URIType, XMLGregorianCalendarType, XMLStreamReaderType
public abstract class Type
- extends java.lang.Object
A Type reads and writes XML fragments to create and write objects.
- Author:
- Dan Diephouse
Field Summary |
protected java.lang.Class |
typeClass
|
Constructor Summary |
Type()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
typeClass
protected java.lang.Class typeClass
Type
public Type()
readObject
public abstract java.lang.Object readObject(MessageReader reader,
Context context)
throws DatabindingException
- Read in the XML fragment and create an object.
- Parameters:
reader
- context
-
- Returns:
-
- Throws:
DatabindingException
writeObject
public abstract void writeObject(java.lang.Object object,
MessageWriter writer,
Context context)
throws DatabindingException
- Writes the object to the MessageWriter.
- Parameters:
object
- writer
- context
-
- Throws:
DatabindingException
writeSchema
public void writeSchema(org.jdom.Element root)
getTypeMapping
public TypeMapping getTypeMapping()
- Returns:
- Returns the typeMapping.
setTypeMapping
public void setTypeMapping(TypeMapping typeMapping)
- Parameters:
typeMapping
- The typeMapping to set.
getTypeClass
public java.lang.Class getTypeClass()
- Returns:
- Returns the typeClass.
setTypeClass
public void setTypeClass(java.lang.Class typeClass)
- Parameters:
typeClass
- The typeClass to set.
isComplex
public boolean isComplex()
- Returns:
- True if a complex type schema must be written.
isAbstract
public boolean isAbstract()
setAbstract
public void setAbstract(boolean ab)
isNillable
public boolean isNillable()
setNillable
public void setNillable(boolean nillable)
getDependencies
public java.util.Set<Type> getDependencies()
- Return a set of Type dependencies. Returns null if this type has no
dependencies.
- Returns:
- Set of
Type
dependencies
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getSchemaType
public javax.xml.namespace.QName getSchemaType()
- Returns:
- Get the schema type.
setSchemaType
public void setSchemaType(javax.xml.namespace.QName name)
- Parameters:
name
- The qName to set.
isWriteOuter
public boolean isWriteOuter()
setWriteOuter
public void setWriteOuter(boolean writeOuter)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Apache CXF