public final class DefaultAttrValue extends 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(String name,
Location loc) |
void |
addUndeclaredPE(String name,
Location loc) |
static DefaultAttrValue |
constructFixed() |
static DefaultAttrValue |
constructImplied() |
static DefaultAttrValue |
constructOptional() |
static DefaultAttrValue |
constructRequired() |
String |
getValue() |
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(org.codehaus.stax2.validation.ValidationContext ctxt,
org.codehaus.stax2.validation.XMLValidator dtd) |
void |
setValue(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(String v)
public void reportUndeclared(org.codehaus.stax2.validation.ValidationContext ctxt, org.codehaus.stax2.validation.XMLValidator dtd) throws XMLStreamException
XMLStreamException
public boolean hasUndeclaredEntities()
public String getValue()
public String getValueIfOk()
public boolean isRequired()
public boolean isFixed()
public boolean hasDefaultValue()
public boolean isSpecial()
Copyright © 2018 FasterXML. All rights reserved.