Save This Page
Home » dom4j-1.6.1 » org.dom4j.dtd » [javadoc | source]
org.dom4j.dtd
protected static class: AttributeDeclTest.MyTestAttributeDecl [javadoc | source]
java.lang.Object
   org.dom4j.dtd.AttributeDeclTest$MyTestAttributeDecl
Helper is useful since we are trying to exhaustively test the ATTLIST variations and their correct serialization.
Constructor:
 public MyTestAttributeDecl(String elementName,
    String attributeName,
    String type,
    String valueDefault,
    String value,
    String text) 
    DOCUMENT ME!
    Parameters:
    elementName - The name of the element whose attribute is being described.
    attributeName - The name of the attribute.
    type - The type of the declared attribute, e.g., CDATA, ID, IDREF, IDREFS, ENTITY, ENTITIES, NMTOKEN, NKTOKENS
    valueDefault - The type of default that applies for this attribute declaration, e.g., #REQUIRED, #IMPLIED, #FIXED (in which case the value MUST be non- null and specifies the fixed value for the attribute, or null if no valueDefault was specified in the attribute declaration (in which case the value MUST be non- null and specifies the default value for the attribute).
    value - The value of the attribute assigned in the attribute declaration -or- null if no value was provided in the attribute declaration. The value MUST be null unless the valueDefault is either "#FIXED" or null.
    text - The text representation of the attribute declaration, e.g., <!ATTLIST foo id ID #IMPLIED>.
    todo: The - constructor and properties in AttributeDecl should have some similar javadoc so that people more easily understand the interaction and difference between the valueDefault and value properties. The constructor SHOULD be clear about whether and when the valueDefault and value properties MUST be null.
Method from org.dom4j.dtd.AttributeDeclTest$MyTestAttributeDecl Summary:
getAttributeName,   getElementName,   getText,   getType,   getValue,   getValueDefault
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.dtd.AttributeDeclTest$MyTestAttributeDecl Detail:
 public String getAttributeName() 
 public String getElementName() 
 public String getText() 
 public String getType() 
 public String getValue() 
 public String getValueDefault()