public final class DefaultAttrValue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEF_DEFAULT |
static int |
DEF_FIXED |
static int |
DEF_IMPLIED |
static int |
DEF_REQUIRED |
Modifier and Type | Method and Description |
---|---|
void |
addUndeclaredGE(java.lang.String name,
javax.xml.stream.Location loc) |
void |
addUndeclaredPE(java.lang.String name,
javax.xml.stream.Location loc) |
static DefaultAttrValue |
constructFixed() |
static DefaultAttrValue |
constructImplied() |
static DefaultAttrValue |
constructOptional() |
static DefaultAttrValue |
constructRequired() |
java.lang.String |
getValue() |
java.lang.String |
getValueIfOk() |
boolean |
hasDefaultValue() |
boolean |
hasUndeclaredEntities() |
boolean |
isFixed() |
boolean |
isRequired() |
boolean |
isSpecial()
Method used by the element to figure out if attribute needs "special"
checking; basically if it's required, and/or has a default value.
|
void |
reportUndeclared(ValidationContext ctxt) |
void |
setValue(java.lang.String v) |
public static final int DEF_DEFAULT
public static final int DEF_IMPLIED
public static final int DEF_REQUIRED
public static final int DEF_FIXED
public static DefaultAttrValue constructImplied()
public static DefaultAttrValue constructRequired()
public static DefaultAttrValue constructFixed()
public static DefaultAttrValue constructOptional()
public void setValue(java.lang.String v)
public void addUndeclaredPE(java.lang.String name, javax.xml.stream.Location loc)
public void addUndeclaredGE(java.lang.String name, javax.xml.stream.Location loc)
public void reportUndeclared(ValidationContext ctxt) throws XMLValidationException
XMLValidationException
public boolean hasUndeclaredEntities()
public java.lang.String getValue()
public java.lang.String getValueIfOk()
public boolean isRequired()
public boolean isFixed()
public boolean hasDefaultValue()
public boolean isSpecial()