com.jxml.quick.model.qjml
Class QMLink

java.lang.Object
  |
  +--com.jxml.quick.model.qjml.QMCloneable
        |
        +--com.jxml.quick.model.qjml.QMCoin
              |
              +--com.jxml.quick.model.qjml.QMLink
All Implemented Interfaces:
Cloneable, QMElement

public class QMLink
extends QMCoin
implements QMElement

Link coins are used to define hyperlinks between documents.

DTD :

<!ELEMENT link EMPTY>

<!ATTLIST link
    label CDATA #IMPLIED
    tag CDATA #IMPLIED
    wild CDATA "False"
    coin CDATA #REQUIRED
    schema CDATA #REQUIRED
    schemaClass CDATA #IMPLIED
    inline CDATA "False"
    ID id #IMPLIED
>


Field Summary
 String coin
          Models the coin attribute on the link element.
 boolean inline
          Models the inline attribute on the link element.
 QMCoin mCoin
          The QMInterface, QMAbstract, QMText or QMBean object named by the coin attribute.
 String schema
          Models the schema attribute on the link element.
 String schemaClass
          Models the schemaClass attribute on the link element.
 String tag
           Models the tag attribute on the link element.
 boolean wild
           Models the wild attribute on the link coin.
 
Fields inherited from class com.jxml.quick.model.qjml.QMCoin
accessors, extensions, generate, implementations, label, remList
 
Constructor Summary
QMLink()
           
 
Method Summary
 void buildMaps(Map coinMap, Map contentMap)
          Builds the maps.
 Object clone()
          Returns a deep copy of this object, but in an uninitialized form.
 Map getAtts()
          Returns a table of objects which model attribute item elements.
 String getClassName()
          Returns the fully qualified name of the class described by this coin.
 String getLabel()
          Returns the unique (within the scope of the QJML document) name of the coin, as specified by the coin's label.
 String getTag()
          Returns the XML tag name assigned to the bean element.
 void init(Map coinMap, Map contentMap)
          Resolve references, inheritance.
 
Methods inherited from class com.jxml.quick.model.qjml.QMCoin
getAccessor
 
Methods inherited from class com.jxml.quick.model.qjml.QMCloneable
clone, clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tag

public String tag

Models the tag attribute on the link element. The tag attribute holds the XML tag name for the element being defined by the link element.

When the label attribute is not present, the tag attribute is used to name the link coin.


wild

public boolean wild

Models the wild attribute on the link coin. The wild attribute defaults to false. When the wild attribute is true, the link element can be used to represent an element with any tag name.

When the wild attribute is false, the tag attribute is required, but when the wild attribute is true, the tag attribute must not be present.

When the wild attribute is false, the label attribute is optional, but when the wild attribute is true, the label attribute is required.


coin

public String coin
Models the coin attribute on the link element. The coin attribute is required. The coin attribute names a coin which defines the type of element that the link will reference. The coin that is named must be local to the current document or included in it.

schema

public String schema
Models the schema attribute on the link element. The schema attribute is required. The schema attribute gives the URL of the QIML document which describes the XML document being referenced by the link.

schemaClass

public String schemaClass
Models the schemaClass attribute on the link element. The schemaClass attribute is optional. The schemaClass attribute gives the class name of the schema factory for the QIML schema which describes the XML document being referenced by the link.

inline

public boolean inline
Models the inline attribute on the link element. The inline attribute is optional, with a default value of false. When creating an XML document, the element is begun on a new line unless inline is set to true.

mCoin

public transient QMCoin mCoin
The QMInterface, QMAbstract, QMText or QMBean object named by the coin attribute. This variable is set when the data model is initialized.
Constructor Detail

QMLink

public QMLink()
Method Detail

clone

public Object clone()
Description copied from class: QMCoin
Returns a deep copy of this object, but in an uninitialized form.
Overrides:
clone in class QMCoin

getLabel

public String getLabel()
Description copied from class: QMCoin
Returns the unique (within the scope of the QJML document) name of the coin, as specified by the coin's label.
Overrides:
getLabel in class QMCoin

getTag

public String getTag()
Returns the XML tag name assigned to the bean element. When wild is true, the value of the label attribute is returned.

buildMaps

public void buildMaps(Map coinMap,
                      Map contentMap)
               throws SAXException
Description copied from class: QMCoin
Builds the maps. This method is called during initialization of the data model.
Overrides:
buildMaps in class QMCoin

init

public void init(Map coinMap,
                 Map contentMap)
          throws SAXException
Description copied from class: QMCoin
Resolve references, inheritance. This method is called during initialization of the data model.
Overrides:
init in class QMCoin

getAtts

public Map getAtts()
            throws SAXException
Description copied from interface: QMElement
Returns a table of objects which model attribute item elements. Inherited attribute item elements are included.
Specified by:
getAtts in interface QMElement

getClassName

public String getClassName()
                    throws SAXException
Description copied from class: QMCoin
Returns the fully qualified name of the class described by this coin.
Overrides:
getClassName in class QMCoin