public abstract class DataType extends Object
This class handles the common description attribute and provides a default implementation for reference handling and checking for circular references that is appropriate for types that can not be nested inside elements of the same type (i.e. <patternset> but not <path>).
| Constructor and Description |
|---|
DataType() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the description for the current data type.
|
protected boolean |
isChecked() |
protected Exception |
noChildrenAllowed()
Creates an exception that indicates that this XML element must
not have child elements if the refid attribute is set.
|
protected void |
setChecked(boolean checked) |
void |
setDescription(String desc)
Sets a description of the current data type.
|
protected Exception |
tooManyAttributes()
Creates an exception that indicates that refid has to be the
only attribute if it is set.
|
public void setDescription(String desc)
public String getDescription()
protected Exception tooManyAttributes()
protected Exception noChildrenAllowed()
protected boolean isChecked()
protected void setChecked(boolean checked)
Copyright © 2001–2025. All rights reserved.