Public Member Functions

org.exolab.castor.xml.dtd.Attribute Class Reference

List of all members.

Public Member Functions

 Attribute (Element element, String name)
String getName ()
Element getElement ()
Iterator getValues ()
void setStringType ()
boolean isStringType ()
void setIDType ()
boolean isIDType ()
void setIDREFType ()
boolean isIDREFType ()
void setIDREFSType ()
boolean isIDREFSType ()
void setENTITYType ()
boolean isENTITYType ()
void setENTITIESType ()
boolean isENTITIESType ()
void setNMTOKENType ()
boolean isNMTOKENType ()
void setNMTOKENSType ()
boolean isNMTOKENSType ()
void setNOTATIONType ()
boolean isNOTATIONType ()
void setEnumerationType ()
boolean isEnumerationType ()
void setDEFAULT ()
boolean isDEFAULT ()
void setREQUIRED ()
boolean isREQUIRED ()
void setIMPLIED ()
boolean isIMPLIED ()
void setFIXED ()
boolean isFIXED ()
void setDefaultValue (String value)
String getDefaultValue ()
synchronized void addValue (String value) throws DTDException

Detailed Description

Implementation of DTD Attribute declaration specification.

Author:
Alexander Totok
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:19

Constructor & Destructor Documentation

org.exolab.castor.xml.dtd.Attribute.Attribute ( Element  element,
String  name 
)

Constructor, setting name, owning element of the attribute and occurance specification to DEFAULT.

Parameters:
element must not be null.
name must not be null or equal to empty String.

Member Function Documentation

synchronized void org.exolab.castor.xml.dtd.Attribute.addValue ( String  value  )  throws DTDException

Adds the value to the set of possible values.

Exceptions:
DTDException if the value is already contained in the set of possible values.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

String org.exolab.castor.xml.dtd.Attribute.getDefaultValue (  ) 

Returns default value.

Element org.exolab.castor.xml.dtd.Attribute.getElement (  ) 

Returns Element owning this attribute.

String org.exolab.castor.xml.dtd.Attribute.getName (  ) 

Returns the name of the attribute.

Referenced by org.exolab.castor.xml.dtd.Element.addAttribute().

Iterator org.exolab.castor.xml.dtd.Attribute.getValues (  ) 

Returns iterator of the set of possible values, if of NOTATION or Enumeration type, null otherwise.

References org.exolab.castor.xml.dtd.Attribute.isEnumerationType(), and org.exolab.castor.xml.dtd.Attribute.isNOTATIONType().

boolean org.exolab.castor.xml.dtd.Attribute.isDEFAULT (  ) 

True if attribute's default value is specified, false otherwise.

boolean org.exolab.castor.xml.dtd.Attribute.isENTITIESType (  ) 

True if the attribute is of ENTITIES type, false otherwise.

boolean org.exolab.castor.xml.dtd.Attribute.isENTITYType (  ) 

True if the attribute is of ENTITY type, false otherwise.

boolean org.exolab.castor.xml.dtd.Attribute.isEnumerationType (  ) 

True if the attribute is of Enumeration type, false otherwise.

Referenced by org.exolab.castor.xml.dtd.Attribute.getValues().

boolean org.exolab.castor.xml.dtd.Attribute.isFIXED (  ) 

True if the attribute has fixed value, false otherwise.

boolean org.exolab.castor.xml.dtd.Attribute.isIDREFSType (  ) 

True if the attribute is of IDREFS type, false otherwise.

boolean org.exolab.castor.xml.dtd.Attribute.isIDREFType (  ) 

True if the attribute is of IDREF type, false otherwise.

boolean org.exolab.castor.xml.dtd.Attribute.isIDType (  ) 

True if the attribute is of ID type, false otherwise.

boolean org.exolab.castor.xml.dtd.Attribute.isIMPLIED (  ) 

True if no default value for the attribute is provided ("IMPLIED" specification), false otherwise.

boolean org.exolab.castor.xml.dtd.Attribute.isNMTOKENSType (  ) 

True if the attribute is of NMTOKENS type, false otherwise.

boolean org.exolab.castor.xml.dtd.Attribute.isNMTOKENType (  ) 

True if the attribute is of NMTOKEN type, false otherwise.

boolean org.exolab.castor.xml.dtd.Attribute.isNOTATIONType (  ) 

True if the attribute is of NOTATION type, false otherwise.

Referenced by org.exolab.castor.xml.dtd.Attribute.getValues().

boolean org.exolab.castor.xml.dtd.Attribute.isREQUIRED (  ) 

True if the attribute is required, false otherwise.

boolean org.exolab.castor.xml.dtd.Attribute.isStringType (  ) 

True if the attribute is of CDATA type, false otherwise.

void org.exolab.castor.xml.dtd.Attribute.setDEFAULT (  ) 

Sets occurance specification to DEFAULT.

void org.exolab.castor.xml.dtd.Attribute.setDefaultValue ( String  value  ) 
void org.exolab.castor.xml.dtd.Attribute.setENTITIESType (  ) 

Sets the type of the attribute to ENTITIES.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setENTITYType (  ) 

Sets the type of the attribute to ENTITY.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setEnumerationType (  ) 

Sets the type of the attribute to Enumeration.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setFIXED (  ) 

Sets occurance specification to FIXED.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setIDREFSType (  ) 

Sets the type of the attribute to IDREFS.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setIDREFType (  ) 

Sets the type of the attribute to IDREF.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setIDType (  ) 

Sets the type of the attribute to ID.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setIMPLIED (  ) 

Sets occurance specification to IMPLIED.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setNMTOKENSType (  ) 

Sets the type of the attribute to NMTOKENS.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setNMTOKENType (  ) 

Sets the type of the attribute to NMTOKEN.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setNOTATIONType (  ) 

Sets the type of the attribute to NOTATION.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setREQUIRED (  ) 

Sets occurance specification to REQUIRED.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().

void org.exolab.castor.xml.dtd.Attribute.setStringType (  ) 

Sets the type of the attribute to CDATA.

Referenced by org.exolab.castor.xml.dtd.parser.DTDParser.AttlistDecl().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties