public interface BaseAttribute
| Modifier and Type | Field and Description |
|---|---|
static int |
OPTION_FIXED |
static int |
OPTION_IMPLIED |
static int |
OPTION_REQUIRED
Values returned by getOption()
|
static int |
TYPE_CDATA
Values returned by getType()
|
static int |
TYPE_ENTITIES |
static int |
TYPE_ENTITY |
static int |
TYPE_ENUM |
static int |
TYPE_ID |
static int |
TYPE_IDREF |
static int |
TYPE_IDREFS |
static int |
TYPE_NMTOKEN |
static int |
TYPE_NOTATION |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue()
Default value used when creating this attribute
|
String |
getDtdName()
Return the dtd name of the attribute, as it appears in the DTD file.
|
String |
getName()
Return the name of the attribute as it is used in the bean class.
|
int |
getOption()
Returns one of the following constants:
OPTION_REQUIRED
OPTION_IMPLIED
OPTION_FIXED
|
int |
getType()
Returns one of the following constants:
TYPE_CDATA
TYPE_ENUM
TYPE_NMTOKEN
TYPE_ID
TYPE_IDREF
TYPE_IDREFS
TYPE_ENTITY
TYPE_ENTITIES
TYPE_NOTATION
|
String[] |
getValues()
If the attribute is Enum, returns the list of possible values
|
boolean |
hasName(String name)
Return true if the name is either equals to getName() or getDtdName()
|
boolean |
isEnum()
True if the attribute is Enum
|
boolean |
isFixed()
True if the attribute has a fixed value
|
boolean |
isTransient()
In general the attributes are defined in the DTD file,
like the properties, and are therefore part of the bean structure,
because part of the generated beans.
|
static final int TYPE_CDATA
static final int TYPE_ENUM
static final int TYPE_NMTOKEN
static final int TYPE_ID
static final int TYPE_IDREF
static final int TYPE_IDREFS
static final int TYPE_ENTITY
static final int TYPE_ENTITIES
static final int TYPE_NOTATION
static final int OPTION_REQUIRED
static final int OPTION_IMPLIED
static final int OPTION_FIXED
String getName()
String getDtdName()
boolean hasName(String name)
String[] getValues()
String getDefaultValue()
boolean isEnum()
boolean isFixed()
int getOption()
int getType()
boolean isTransient()
Copyright © 2017. All Rights Reserved.