Class XsdStringRestrictions
- java.lang.Object
-
- org.xmlet.xsdparser.xsdelements.XsdAbstractElement
-
- org.xmlet.xsdparser.xsdelements.XsdIdentifierElements
-
- org.xmlet.xsdparser.xsdelements.XsdAnnotatedElements
-
- org.xmlet.xsdparser.xsdelements.xsdrestrictions.XsdStringRestrictions
-
- Direct Known Subclasses:
XsdEnumeration,XsdMaxExclusive,XsdMaxInclusive,XsdMinExclusive,XsdMinInclusive,XsdPattern
public class XsdStringRestrictions extends XsdAnnotatedElements
This class serves as a base to every different restriction that has its restricting parameter defined as anString. Classes likeXsdPatternorXsdEnumerationshould extend this class.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringvalueThe 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 XsdStringRestrictions(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 java.lang.StringgetValue()static booleanhasDifferentValue(XsdStringRestrictions o1, XsdStringRestrictions o2)Compares two different objects of this type.-
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
-
value
private java.lang.String 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 isXsdEnumerationthis field means that the attribute which has the restriction can only have the value that is specified in this field.
-
-
Constructor Detail
-
XsdStringRestrictions
XsdStringRestrictions(@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(XsdStringRestrictions o1, XsdStringRestrictions 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 java.lang.String getValue()
-
-