XsdFractionDigits, XsdLength, XsdMaxLength, XsdMinLength, XsdTotalDigitspublic class XsdIntegerRestrictions extends XsdAnnotatedElements
Integer.
Classes like XsdMaxLength or XsdLength should extend this class.
i.e. xsd:maxLength or xsd:length.| Modifier and Type | Field | Description |
|---|---|---|
private boolean |
fixed |
Indicates if the value is fixed.
|
protected int |
value |
The value of associated with a given restriction.
|
private XsdAnnotatedElementsVisitor |
visitor |
elementFieldsMap, FIXED_TAG, NAME_TAG, REF_TAG, VALUE_TAG| Constructor | Description |
|---|---|
XsdIntegerRestrictions(XsdParser parser,
Map<String,String> elementFieldsMapParam) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getValue() |
|
XsdAnnotatedElementsVisitor |
getVisitor() |
Obtains the visitor of a concrete
XsdAbstractElement instance. |
static boolean |
hasDifferentValue(XsdIntegerRestrictions o1,
XsdIntegerRestrictions o2) |
Compares two different objects of this type.
|
boolean |
isFixed() |
|
void |
setFields(Map<String,String> elementFieldsMapParam) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, convertNodeMap, getElementFieldsMap, getElements, getParent, getParser, getXsdElements, replaceUnsolvedElements, setParent, validateSchemaRulesgetAnnotation, setAnnotationgetIdprivate XsdAnnotatedElementsVisitor visitor
private boolean fixed
protected int value
XsdLength this field means that the attribute which
has the restriction can only have the length specified in this field..public XsdAnnotatedElementsVisitor getVisitor()
XsdAbstractElementXsdAbstractElement instance.getVisitor in class XsdAbstractElementpublic void setFields(@NotNull
Map<String,String> elementFieldsMapParam)
XsdIdentifierElementssetFields in class XsdIdentifierElementselementFieldsMapParam - The Map object containing the information previously contained in the
Node object.public static boolean hasDifferentValue(XsdIntegerRestrictions o1, XsdIntegerRestrictions o2)
o1 - The first object.o2 - The object to compare.public int getValue()
public boolean isFixed()
Copyright © 2018. All rights reserved.