|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ctc.wstx.dtd.StructValidator
com.ctc.wstx.dtd.EmptyValidator
public class EmptyValidator
Simple content model validator that accepts no elements, ever; this is true for pure #PCDATA content model as well as EMPTY content model. Can be used as a singleton, since all info needed for diagnostics is passed via methods.
| Method Summary | |
|---|---|
java.lang.String |
fullyValid()
If we ever get as far as element closing, things are all good; can just return null. |
static EmptyValidator |
getEmptyInstance()
|
static EmptyValidator |
getPcdataInstance()
|
StructValidator |
newInstance()
Simple; can always (re)use instance itself; no state information is kept. |
java.lang.String |
tryToValidate(NameKey elemName)
Method called when a new (start) element is encountered within the scope of parent element this validator monitors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static EmptyValidator getPcdataInstance()
public static EmptyValidator getEmptyInstance()
public StructValidator newInstance()
newInstance in class StructValidatorpublic java.lang.String tryToValidate(NameKey elemName)
StructValidator
tryToValidate in class StructValidatorpublic java.lang.String fullyValid()
fullyValid in class StructValidator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||