Class XsdIntegerRestrictions
- java.lang.Object
-
- org.xmlet.xsdparser.xsdelements.XsdAbstractElement
-
- org.xmlet.xsdparser.xsdelements.XsdIdentifierElements
-
- org.xmlet.xsdparser.xsdelements.XsdAnnotatedElements
-
- org.xmlet.xsdparser.xsdelements.xsdrestrictions.XsdIntegerRestrictions
-
- Direct Known Subclasses:
XsdFractionDigits,XsdLength,XsdMaxLength,XsdMinLength,XsdTotalDigits
public class XsdIntegerRestrictions extends XsdAnnotatedElements
This class serves as a base to every different restriction that has its restricting parameter defined as anInteger. Classes likeXsdMaxLengthorXsdLengthshould extend this class. i.e. xsd:maxLength or xsd:length.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanfixedIndicates if the value is fixed.protected intvalueThe value of associated with a given restriction.-
Fields inherited from class org.xmlet.xsdparser.xsdelements.XsdAbstractElement
ABSTRACT_TAG, ATTRIBUTE_FORM_DEFAULT, attributesMap, BASE_TAG, BLOCK_DEFAULT, BLOCK_TAG, DEFAULT_ELEMENT_TAG, DEFAULT_TAG, ELEMENT_FORM_DEFAULT, FINAL_DEFAULT, FINAL_TAG, FIXED_TAG, FORM_TAG, ID_TAG, ITEM_TYPE_TAG, MAX_OCCURS_TAG, MEMBER_TYPES_TAG, MIN_OCCURS_TAG, MIXED_TAG, NAME_TAG, NAMESPACE, NILLABLE_TAG, parentAvailable, REF_TAG, SCHEMA_LOCATION, SOURCE_TAG, SUBSTITUTION_GROUP_TAG, TARGET_NAMESPACE, TYPE_TAG, USE_TAG, VALUE_TAG, VERSION, visitorFunction, XML_LANG_TAG, XMLNS
-
-
Constructor Summary
Constructors Constructor Description XsdIntegerRestrictions(XsdParserCore parser, java.util.Map<java.lang.String,java.lang.String> elementFieldsMapParam, java.util.function.Function<XsdAbstractElement,XsdAbstractElementVisitor> visitorFunction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static booleanhasDifferentValue(XsdIntegerRestrictions o1, XsdIntegerRestrictions o2)Compares two different objects of this type.booleanisFixed()-
Methods inherited from class org.xmlet.xsdparser.xsdelements.XsdAnnotatedElements
getAnnotation, setAnnotation
-
Methods inherited from class org.xmlet.xsdparser.xsdelements.XsdIdentifierElements
getId
-
Methods inherited from class org.xmlet.xsdparser.xsdelements.XsdAbstractElement
accept, clone, clone, compareReference, convertNodeMap, getAttributesMap, getCloneOf, getElements, getParent, getParent, getParser, getVisitor, getXsdElements, getXsdSchema, getXsdSchema, replaceUnsolvedElements, setCloneOf, setParent, setParentAvailable, validateSchemaRules, xsdParseSkeleton
-
-
-
-
Field Detail
-
fixed
private boolean fixed
Indicates if the value is fixed.
-
value
protected int value
The value of associated with a given restriction. This field has different meanings depending on the concrete restriction, e.g. if the concrete class isXsdLengththis field means that the attribute which has the restriction can only have the length specified in this field..
-
-
Constructor Detail
-
XsdIntegerRestrictions
XsdIntegerRestrictions(@NotNull XsdParserCore parser, @NotNull java.util.Map<java.lang.String,java.lang.String> elementFieldsMapParam, @NotNull java.util.function.Function<XsdAbstractElement,XsdAbstractElementVisitor> visitorFunction)
-
-
Method Detail
-
hasDifferentValue
public static boolean hasDifferentValue(XsdIntegerRestrictions o1, XsdIntegerRestrictions o2)
Compares two different objects of this type.- Parameters:
o1- The first object.o2- The object to compare.- Returns:
- True if the value of both classes is different, False if the value is equal.
-
getValue
public int getValue()
-
isFixed
public boolean isFixed()
-
-