XsdMaxExclusive, XsdMaxInclusive, XsdMinExclusive, XsdMinInclusivepublic abstract class XsdDoubleRestrictions extends XsdAnnotatedElements
Double. Classes like XsdMaxInclusive or XsdMinInclusive should derive from this type.| Modifier and Type | Field | Description |
|---|---|---|
private boolean |
fixed |
Indicates if the value is fixed.
|
private String |
restrictionName |
The name of the restrictions that extends this class.
|
private double |
value |
The value of associated with a given restriction.
|
private XsdAnnotatedElementsVisitor |
visitor |
elementFieldsMap, FIXED_TAG, NAME_TAG, REF_TAG, VALUE_TAG| Constructor | Description |
|---|---|
XsdDoubleRestrictions(XsdParser parser,
Map<String,String> elementFieldsMapParam,
String restrictionName) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
getValue() |
|
XsdAnnotatedElementsVisitor |
getVisitor() |
Obtains the visitor of a concrete
XsdAbstractElement instance. |
static boolean |
hasDifferentValue(XsdDoubleRestrictions o1,
XsdDoubleRestrictions 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 String restrictionName
ParsingException.private boolean fixed
private double value
XsdMaxInclusive this field means that the attribute which
has the restriction can only have a value that doesn't exceed the current value of the value 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(XsdDoubleRestrictions o1, XsdDoubleRestrictions o2)
o1 - The first object.o2 - The object to compare.public double getValue()
public boolean isFixed()
Copyright © 2018. All rights reserved.