|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectelectric.xml.io.Type
electric.xml.io.complex.ComplexContent
ComplexContent
Field Summary |
Fields inherited from class electric.xml.io.Type |
anonymous, dominant, inhibit, javaName, name, schema |
Fields inherited from interface electric.xml.IEXMLLoggingConstants |
MAPPING_EVENT, SCHEMA_EVENT |
Fields inherited from interface electric.util.log.ILoggingConstants |
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT, WARNING_EVENT |
Constructor Summary | |
ComplexContent(ComplexType complexType)
|
|
ComplexContent(ComplexType complexType,
Element schema)
|
Method Summary | |
void |
addAttribute(SchemaAttribute attribute)
|
void |
addAttributeGroup(electric.xml.io.model.AttributeGroup attributeGroup)
|
void |
addDependencies(java.util.Vector dependencies)
Add all the types that this type depends on into the Vector. |
void |
forceResolution()
This method forces the resolution of refs in itself, and any entries underneath it. |
electric.xml.io.model.AttributeGroup[] |
getAttributeGroups()
|
SchemaAttribute[] |
getAttributes()
|
Type |
getBaseType()
|
java.lang.Class |
getJavaClass()
|
java.lang.String |
getJavaName()
Return the javaName that this type represents. |
electric.xml.io.model.IModel |
getModel()
|
SchemaAttribute |
getSchemaAttribute(java.lang.String name)
This method is used by CustomFactory to locate the arguments it needs. |
SchemaElement |
getSchemaElement(java.lang.String name)
This method is used by CustomFactory to locate the arguments it needs. |
void |
readObject(IReader reader,
Value value)
Read in the object from the reader, and place it in the value. |
void |
readSchema(Element schema)
|
void |
setBaseType(java.lang.Class javaClass)
|
void |
setModel(electric.xml.io.model.IModel model)
|
void |
setSchema(Schema schema)
|
void |
writeJava(JavaSource source)
Write out a java representation of this class into the JavaSource. |
void |
writeObject(IWriter writer,
java.lang.Object object)
Write out the object specified to the writer using this type. |
void |
writeSchema(Element element,
boolean annotated)
Append the schema for this type to the element passed in. |
Methods inherited from class electric.xml.io.Type |
addAllDependencies, appendSchema, equals, findJavaClass, getJavaClassWithCheck, getName, getName, getName, getName, getNamespace, getNamespaces, getQName, getRuntimeType, getSchema, getSchemaElement, getType, getXSDPrefix, getXSIPrefix, isAnonymous, isDominant, isInhibit, isMultiReference, isStandard, setAnonymous, setDominant, setInhibit, setJavaClass, setJavaName, setName, setNamespaces, useAnonymous, useSchemaElement, writeSchema, writeType |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComplexContent(ComplexType complexType, Element schema) throws SchemaException
complexType
- schema
-
SchemaException
public ComplexContent(ComplexType complexType) throws SchemaException
complexType
-
SchemaException
Method Detail |
public electric.xml.io.model.IModel getModel() throws SchemaException
SchemaException
public void setModel(electric.xml.io.model.IModel model)
model
- public void forceResolution()
electric.xml.io.model.IModel
forceResolution
in interface electric.xml.io.model.IModel
public void addAttribute(SchemaAttribute attribute)
attribute
- public SchemaAttribute[] getAttributes()
public void addAttributeGroup(electric.xml.io.model.AttributeGroup attributeGroup)
attributeGroup
- public electric.xml.io.model.AttributeGroup[] getAttributeGroups()
public SchemaElement getSchemaElement(java.lang.String name) throws SchemaException
getSchemaElement
in interface electric.xml.io.model.IModel
name
-
SchemaException
public SchemaAttribute getSchemaAttribute(java.lang.String name) throws SchemaException
getSchemaAttribute
in interface electric.xml.io.model.IModel
name
-
SchemaException
public Type getBaseType() throws SchemaException
SchemaException
public void setBaseType(java.lang.Class javaClass) throws SchemaException
javaClass
-
SchemaException
public void addDependencies(java.util.Vector dependencies) throws SchemaException
Type
addDependencies
in interface electric.xml.io.model.IModel
addDependencies
in class Type
dependencies
-
SchemaException
public void setSchema(Schema schema)
setSchema
in interface electric.xml.io.model.IModel
setSchema
in class Type
schema
- public void readSchema(Element schema) throws SchemaException
readSchema
in class Type
schema
-
SchemaException
public void writeSchema(Element element, boolean annotated) throws SchemaException
Type
writeSchema
in interface electric.xml.io.model.IModel
writeSchema
in class Type
element
- annotated
-
SchemaException
public java.lang.Class getJavaClass() throws SchemaException
getJavaClass
in class Type
SchemaException
public java.lang.String getJavaName() throws SchemaException
Type
getJavaName
in class Type
SchemaException
public void writeJava(JavaSource source) throws SchemaException
Type
writeJava
in interface electric.xml.io.model.IModel
writeJava
in class Type
source
-
SchemaException
public void writeObject(IWriter writer, java.lang.Object object) throws java.io.IOException
Type
writeObject
in interface electric.xml.io.model.IModel
writeObject
in class Type
writer
- object
-
java.io.IOException
public void readObject(IReader reader, Value value) throws java.io.IOException
Type
readObject
in interface electric.xml.io.model.IModel
readObject
in class Type
reader
- value
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |