An extension of ValidationState which can be configured to turn off checking for ID/IDREF errors and unparsed entity errors.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | fIdIdrefChecking
Whether to check for ID/IDREF errors |
| private boolean | fUnparsedEntityChecking
Whether to check for unparsed entity errors |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addId(String
the ID to add name)Overrides com. Implements com. Adds the ID, if ID/IDREF checking is enabled. |
| public void | addIdRef(String
the IDREF to add name)Overrides com. Implements com. Adds the IDREF, if ID/IDREF checking is enabled. |
| public Iterator | Returns: null, if ID/IDREF checking is turned off otherwise, returns the value of the super implementationOverrides com. Checks if all IDREFs have a corresponding ID. |
| public boolean | Returns: true, if unparsed entity checking is turned off otherwise, returns the value of the super implementationOverrides com. Implements com. Checks if an entity is declared. |
| public boolean | Returns: true, if unparsed entity checking is turned off otherwise, returns the value of the super implementationOverrides com. Implements com. Checks if an entity is unparsed. |
| public boolean | Returns: false, if ID/IDREF checking is turned off otherwise, returns the value of the super implementationOverrides com. Implements com. Checks if an ID has already been declared. |
| public void | setIdIdrefChecking(boolean
true to turn on error checking,
false to turn off error checking setting)Turns checking for ID/IDREF errors on and off. |
| public void | setUnparsedEntityChecking(boolean
true to turn on error checking,
false to turn off error checking setting)Turns checking for unparsed entity errors on and off. |
| fIdIdrefChecking | back to summary |
|---|---|
| private boolean fIdIdrefChecking Whether to check for ID/IDREF errors | |
| fUnparsedEntityChecking | back to summary |
|---|---|
| private boolean fUnparsedEntityChecking Whether to check for unparsed entity errors | |
| ConfigurableValidationState | back to summary |
|---|---|
| public ConfigurableValidationState() Creates a new ConfigurableValidationState. By default, error checking for both ID/IDREFs and unparsed entities are turned on. | |
| addId | back to summary |
|---|---|
| public void addId(String name) Overrides com. Implements com. Adds the ID, if ID/IDREF checking is enabled.
| |
| addIdRef | back to summary |
|---|---|
| public void addIdRef(String name) Overrides com. Implements com. Adds the IDREF, if ID/IDREF checking is enabled.
| |
| checkIDRefID | back to summary |
|---|---|
| public Iterator Overrides com. Checks if all IDREFs have a corresponding ID. | |
| isEntityDeclared | back to summary |
|---|---|
| public boolean isEntityDeclared(String name) Overrides com. Implements com. Checks if an entity is declared.
| |
| isEntityUnparsed | back to summary |
|---|---|
| public boolean isEntityUnparsed(String name) Overrides com. Implements com. Checks if an entity is unparsed.
| |
| isIdDeclared | back to summary |
|---|---|
| public boolean isIdDeclared(String name) Overrides com. Implements com. Checks if an ID has already been declared.
| |
| setIdIdrefChecking | back to summary |
|---|---|
| public void setIdIdrefChecking(boolean setting) Turns checking for ID/IDREF errors on and off.
| |
| setUnparsedEntityChecking | back to summary |
|---|---|
| public void setUnparsedEntityChecking(boolean setting) Turns checking for unparsed entity errors on and off.
| |