|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biomage.tools.generate_dtd.WriteDTDElement
org.biomage.tools.generate_dtd.WriteDTDClassElement
public class WriteDTDClassElement
Description: Class that is resposible for generating the DTD entities, if base class, and element and attribute if not abstract for the CreateClassFile passed into the c'tor.
Field Summary | |
---|---|
protected java.lang.String |
entityPrefix
Description: String to use as prefix for the entities for this class. |
protected static java.lang.String |
NEWLINE
|
Constructor Summary | |
---|---|
protected |
WriteDTDClassElement(CreateFile createFile)
Description: Constructor for classes for the DTD file generator. |
Method Summary | |
---|---|
protected void |
addAttributeComments(java.util.Vector attrInfos,
java.lang.StringBuffer commentsBuffer,
java.lang.String typeAttr)
Description: Adds the documentation for the attributes passed in. |
protected void |
createAttrs(java.lang.StringBuffer buffer)
Description: Creates the attribute entity for the class. |
protected void |
createAttrsEntity(java.lang.StringBuffer entitiesBuffer)
Description: Creates the attribute entity for the class. |
protected void |
createChoices(java.lang.StringBuffer buffer,
java.util.Vector choices,
java.lang.String offset)
Description: Creates all the possibilities of ordering the vector of choices. |
protected void |
createClassesEntity(java.lang.StringBuffer entitiesBuffer)
Description: Creates the classes entity and, if not owned, the ref entity. |
protected void |
createClassesOrRefEntity(java.lang.StringBuffer entitiesBuffer,
java.lang.String adornment)
Description: Creates either classes entity or the ref entity, depending on adornment parameter. |
protected java.lang.String |
createComment()
Description: Creates the documentation for the class. |
protected java.lang.String |
createContainer(CreateFile.AssociationAttrInformation assnInfo)
Description: Creates the name of the container for the association passed in. |
protected void |
createContent(java.lang.StringBuffer buffer)
Description: Creates the content entity for the class. |
protected void |
createContentEntity(java.lang.StringBuffer entitiesBuffer)
Description: Creates the content entity for the class. |
protected void |
createElementAndAttlist(java.lang.StringBuffer elementBuffer)
Description: If not owned, creates the *_ref element and attlist then creates the element and attlist declarations for the class. |
protected java.lang.String |
createElementAndAttlists()
Description: Creates the different element and attlist declarations for the class. |
protected java.lang.String |
createEntities()
Description: Creates the different entities for the class. |
protected void |
createReference(java.lang.StringBuffer elementBuffer)
Description: If not owned, creates the *_ref element and attlist then creates the element and attlist declarations for the class. |
protected void |
createRoleDeclarations(java.lang.StringBuffer elementBuffer)
Description: Creates the element and attlist declarations for the role names of the class. |
protected void |
createXMLStrings()
Description: Creates the different entities, elements and attlists for the class. |
protected void |
writeBody(java.io.FileWriter writer)
Description: Method to write out entities. |
protected void |
writeEntities(java.io.FileWriter writer)
Description: Method to write out entities. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String NEWLINE
protected final java.lang.String entityPrefix
Constructor Detail |
---|
protected WriteDTDClassElement(CreateFile createFile) throws java.lang.Exception
createFile:
- the class to write to the DTD.
java.lang.Exception
Method Detail |
---|
protected void createXMLStrings() throws java.lang.Exception
createXMLStrings
in class WriteDTDElement
packageOrdering:
- the XML configuration element for package ordering information.
Not used by this subclass.
java.lang.Exception
protected java.lang.String createComment() throws java.lang.Exception
java.lang.Exception
protected void addAttributeComments(java.util.Vector attrInfos, java.lang.StringBuffer commentsBuffer, java.lang.String typeAttr) throws java.lang.Exception
attrInfos:
- the vector of attributes to add documentation.commentsBuffer:
- buffer to fill with the comments
for the attributes of this class.typeAttr:
- will be either "attributes" or "associations".
java.lang.Exception
protected java.lang.String createEntities() throws java.lang.Exception
java.lang.Exception
protected void createClassesEntity(java.lang.StringBuffer entitiesBuffer) throws java.lang.Exception
entitiesBuffer:
- buffer to fill with the appropriate
entities for this class.
java.lang.Exception
protected void createClassesOrRefEntity(java.lang.StringBuffer entitiesBuffer, java.lang.String adornment) throws java.lang.Exception
entitiesBuffer:
- buffer to fill with the appropriate
entities for this class.adornment:
- suffix for the entity, either "_classes" or
"_ref".
java.lang.Exception
protected void createContentEntity(java.lang.StringBuffer entitiesBuffer) throws java.lang.Exception
entitiesBuffer:
- buffer to fill with the content
entity for this class.
java.lang.Exception
protected void createAttrsEntity(java.lang.StringBuffer entitiesBuffer) throws java.lang.Exception
entitiesBuffer:
- buffer to fill with the attrs
entity for this class.
java.lang.Exception
protected java.lang.String createElementAndAttlists() throws java.lang.Exception
java.lang.Exception
protected void createRoleDeclarations(java.lang.StringBuffer elementBuffer) throws java.lang.Exception
java.lang.Exception
protected void createReference(java.lang.StringBuffer elementBuffer) throws java.lang.Exception
elementBuffer:
- buffer to use to create the declarations.
java.lang.Exception
protected void createElementAndAttlist(java.lang.StringBuffer elementBuffer) throws java.lang.Exception
elementBuffer:
- buffer to use to create the declarations.
java.lang.Exception
protected void createContent(java.lang.StringBuffer buffer) throws java.lang.Exception
buffer:
- buffer to fill with the content
for this class.
java.lang.Exception
protected void createChoices(java.lang.StringBuffer buffer, java.util.Vector choices, java.lang.String offset) throws java.lang.Exception
buffer:
- buffer to fill with the choices from the Vector.choices:
- names of the differenct choices.
java.lang.Exception
protected java.lang.String createContainer(CreateFile.AssociationAttrInformation assnInfo) throws java.lang.Exception
assnInfo:
- the association to create the container name for.
java.lang.Exception
protected void createAttrs(java.lang.StringBuffer buffer) throws java.lang.Exception
buffer:
- buffer to fill with the attrs
for this class.
java.lang.Exception
protected void writeEntities(java.io.FileWriter writer) throws java.lang.Exception
writeEntities
in class WriteDTDElement
write:
- the writer to use.
java.lang.Exception
protected void writeBody(java.io.FileWriter writer) throws java.lang.Exception
writeBody
in class WriteDTDElement
write:
- the writer to use.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |