public class Attribute
extends java.lang.Object
Constructor | Description |
---|---|
Attribute(Element element,
java.lang.String name) |
Constructor, setting name, owning element of the attribute and
occurance specification to DEFAULT.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addValue(java.lang.String value) |
Adds the value to the set of possible values.
|
java.lang.String |
getDefaultValue() |
Returns default value.
|
Element |
getElement() |
Returns Element owning this attribute.
|
java.lang.String |
getName() |
Returns the name of the attribute.
|
java.util.Iterator |
getValues() |
Returns
iterator of the set of possible values,
if of NOTATION or Enumeration type, null otherwise. |
boolean |
isDEFAULT() |
True if attribute's default value is specified, false otherwise.
|
boolean |
isENTITIESType() |
True if the attribute is of ENTITIES type,
false otherwise.
|
boolean |
isENTITYType() |
True if the attribute is of ENTITY type,
false otherwise.
|
boolean |
isEnumerationType() |
True if the attribute is of Enumeration type, false otherwise.
|
boolean |
isFIXED() |
True if the attribute has fixed value, false otherwise.
|
boolean |
isIDREFSType() |
True if the attribute is of IDREFS type,
false otherwise.
|
boolean |
isIDREFType() |
True if the attribute is of IDREF type,
false otherwise.
|
boolean |
isIDType() |
True if the attribute is of ID type, false otherwise.
|
boolean |
isIMPLIED() |
True if no default value for the attribute is provided
("IMPLIED" specification), false otherwise.
|
boolean |
isNMTOKENSType() |
True if the attribute is of NMTOKENS type,
false otherwise.
|
boolean |
isNMTOKENType() |
True if the attribute is of NMTOKEN type,
false otherwise.
|
boolean |
isNOTATIONType() |
True if the attribute is of NOTATION type,
false otherwise.
|
boolean |
isREQUIRED() |
True if the attribute is required, false otherwise.
|
boolean |
isStringType() |
True if the attribute is of CDATA type,
false otherwise.
|
void |
setDEFAULT() |
Sets occurance specification to DEFAULT.
|
void |
setDefaultValue(java.lang.String value) |
Sets default value.
|
void |
setENTITIESType() |
Sets the type of the attribute to ENTITIES.
|
void |
setENTITYType() |
Sets the type of the attribute to ENTITY.
|
void |
setEnumerationType() |
Sets the type of the attribute to Enumeration.
|
void |
setFIXED() |
Sets occurance specification to FIXED.
|
void |
setIDREFSType() |
Sets the type of the attribute to IDREFS.
|
void |
setIDREFType() |
Sets the type of the attribute to IDREF.
|
void |
setIDType() |
Sets the type of the attribute to ID.
|
void |
setIMPLIED() |
Sets occurance specification to IMPLIED.
|
void |
setNMTOKENSType() |
Sets the type of the attribute to NMTOKENS.
|
void |
setNMTOKENType() |
Sets the type of the attribute to NMTOKEN.
|
void |
setNOTATIONType() |
Sets the type of the attribute to NOTATION.
|
void |
setREQUIRED() |
Sets occurance specification to REQUIRED.
|
void |
setStringType() |
Sets the type of the attribute to CDATA.
|
public Attribute(Element element, java.lang.String name)
element
- must not be null.name
- must not be null or equal to empty String.public java.lang.String getName()
public Element getElement()
public java.util.Iterator getValues()
iterator
of the set of possible values,
if of NOTATION or Enumeration type, null otherwise.public void setStringType()
public boolean isStringType()
public void setIDType()
public boolean isIDType()
public void setIDREFType()
public boolean isIDREFType()
public void setIDREFSType()
public boolean isIDREFSType()
public void setENTITYType()
public boolean isENTITYType()
public void setENTITIESType()
public boolean isENTITIESType()
public void setNMTOKENType()
public boolean isNMTOKENType()
public void setNMTOKENSType()
public boolean isNMTOKENSType()
public void setNOTATIONType()
public boolean isNOTATIONType()
public void setEnumerationType()
public boolean isEnumerationType()
public void setDEFAULT()
public boolean isDEFAULT()
public void setREQUIRED()
public boolean isREQUIRED()
public void setIMPLIED()
public boolean isIMPLIED()
public void setFIXED()
public boolean isFIXED()
public void setDefaultValue(java.lang.String value)
public java.lang.String getDefaultValue()
public void addValue(java.lang.String value) throws DTDException
DTDException
- if the value is already contained
in the set of possible values.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com