public class XsdRestriction extends XsdAnnotatedElements
| Modifier and Type | Field | Description |
|---|---|---|
private String |
base |
The name of the type where this instance restrictions should be applied.
|
private List<XsdEnumeration> |
enumeration |
A List of
XsdEnumeration items, that represent a set of possible values for a given type. |
private XsdFractionDigits |
fractionDigits |
A
XsdFractionDigits instance that specifies the number of fraction digits allowed in a numeric type. |
private XsdLength |
length |
A
XsdLength instance that specifies the specific length of a List or String type. |
private XsdMaxExclusive |
maxExclusive |
A
XsdMaxExclusive instance that specifies the maxExclusive value for a numeric type. |
private XsdMaxInclusive |
maxInclusive |
A
XsdMaxInclusive instance that specifies the maxInclusive value for a numeric type. |
private XsdMaxLength |
maxLength |
A
XsdMaxLength instance that specifies the maxLength of a List or a String type. |
private XsdMinExclusive |
minExclusive |
A
XsdMinExclusive instance that specifies the minExclusive value for a numeric type. |
private XsdMinInclusive |
minInclusive |
A
XsdMinInclusive instance that specifies the minInclusive value for a numeric type. |
private XsdMinLength |
minLength |
A
XsdMinLength instance that specifies the minLength of a List or a String type. |
private XsdPattern |
pattern |
A
XsdPattern instance that specifies a regex pattern that a String type should follow. |
private XsdSimpleType |
simpleType |
The
XsdSimpleType instance of this XsdRestriction instance. |
private XsdTotalDigits |
totalDigits |
A
XsdTotalDigits instance that specifies the total number of digits that a numeric type is allowed to have. |
private XsdRestrictionsVisitor |
visitor |
XsdRestrictionsVisitor instance which restricts the children elements of XsdRestriction to all
restricting XSD types. |
private XsdWhiteSpace |
whiteSpace |
A
XsdWhiteSpace instance that specifies how the whitespace characters should be dealt with. |
static String |
XS_TAG |
|
static String |
XSD_TAG |
ABSTRACT_TAG, ATTRIBUTE_FORM_DEFAULT, BASE_TAG, BLOCK_DEFAULT, BLOCK_TAG, DEFAULT_ELEMENT_TAG, DEFAULT_TAG, ELEMENT_FORM_DEFAULT, elementFieldsMap, 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, parent, parser, REF_TAG, SCHEMA_LOCATION, SOURCE_TAG, SUBSTITUTION_GROUP_TAG, TARGET_NAMESPACE, TYPE_TAG, USE_TAG, VALUE_TAG, VERSION, XML_LANG_TAG, XMLNS| Modifier | Constructor | Description |
|---|---|---|
private |
XsdRestriction(XsdParser parser,
Map<String,String> elementFieldsMapParam) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertNodeMap, getElementFieldsMap, getElements, getParent, getParser, getXsdElements, setParent, validateSchemaRules, xsdParseSkeleton, xsdRawContentParsegetAnnotation, setAnnotationgetIdpublic static final String XSD_TAG
public static final String XS_TAG
private XsdRestrictionsVisitor visitor
XsdRestrictionsVisitor instance which restricts the children elements of XsdRestriction to all
restricting XSD types. For a full list see XsdRestrictionsVisitor.private XsdSimpleType simpleType
XsdSimpleType instance of this XsdRestriction instance.private List<XsdEnumeration> enumeration
XsdEnumeration items, that represent a set of possible values for a given type.private XsdFractionDigits fractionDigits
XsdFractionDigits instance that specifies the number of fraction digits allowed in a numeric type.private XsdLength length
XsdLength instance that specifies the specific length of a List or String type.private XsdMaxExclusive maxExclusive
XsdMaxExclusive instance that specifies the maxExclusive value for a numeric type.private XsdMaxInclusive maxInclusive
XsdMaxInclusive instance that specifies the maxInclusive value for a numeric type.private XsdMaxLength maxLength
XsdMaxLength instance that specifies the maxLength of a List or a String type.private XsdMinExclusive minExclusive
XsdMinExclusive instance that specifies the minExclusive value for a numeric type.private XsdMinInclusive minInclusive
XsdMinInclusive instance that specifies the minInclusive value for a numeric type.private XsdMinLength minLength
XsdMinLength instance that specifies the minLength of a List or a String type.private XsdPattern pattern
XsdPattern instance that specifies a regex pattern that a String type should follow.private XsdTotalDigits totalDigits
XsdTotalDigits instance that specifies the total number of digits that a numeric type is allowed to have.private XsdWhiteSpace whiteSpace
XsdWhiteSpace instance that specifies how the whitespace characters should be dealt with.private String base
public void setFields(@NotNull
Map<String,String> elementFieldsMapParam)
XsdIdentifierElementssetFields in class XsdIdentifierElementselementFieldsMapParam - The Map object containing the information previously contained in the
Node object.public XsdRestrictionsVisitor getVisitor()
XsdAbstractElementXsdAbstractElement instance.getVisitor in class XsdAbstractElementpublic void accept(XsdAbstractElementVisitor visitorParam)
XsdAbstractElementaccept in class XsdAbstractElementvisitorParam - The visitor that is visiting the current instance.public void replaceUnsolvedElements(NamedConcreteElement element)
XsdAbstractElementUnsolvedReference object that has a
ref attribute that matches the receiving NamedConcreteElement name attribute.replaceUnsolvedElements in class XsdAbstractElementelement - A fully parsed element with a name that will replace an UnsolvedReference object, if a
match between the NamedConcreteElement name attribute and the UnsolvedReference
ref attribute.public static ReferenceBase parse(@NotNull XsdParser parser, Node node)
public Stream<XsdAttribute> getXsdAttributes()
public Stream<XsdAttributeGroup> getXsdAttributeGroup()
public XsdSimpleType getSimpleType()
public String getBase()
public List<XsdEnumeration> getEnumeration()
void setEnumeration(List<XsdEnumeration> enumeration)
public XsdFractionDigits getFractionDigits()
public void setFractionDigits(XsdFractionDigits fractionDigits)
public XsdLength getLength()
public void setLength(XsdLength length)
public XsdMaxExclusive getMaxExclusive()
public void setMaxExclusive(XsdMaxExclusive maxExclusive)
public XsdMaxInclusive getMaxInclusive()
public void setMaxInclusive(XsdMaxInclusive maxInclusive)
public XsdMaxLength getMaxLength()
public void setMaxLength(XsdMaxLength maxLength)
public XsdMinExclusive getMinExclusive()
public void setMinExclusive(XsdMinExclusive minExclusive)
public XsdMinInclusive getMinInclusive()
public void setMinInclusive(XsdMinInclusive minInclusive)
public XsdMinLength getMinLength()
public void setMinLength(XsdMinLength minLength)
public XsdPattern getPattern()
public void setPattern(XsdPattern pattern)
public XsdTotalDigits getTotalDigits()
public void setTotalDigits(XsdTotalDigits totalDigits)
public XsdWhiteSpace getWhiteSpace()
public void setWhiteSpace(XsdWhiteSpace whiteSpace)
public void add(XsdEnumeration enumerationMember)
public void setSimpleType(XsdSimpleType simpleType)
Copyright © 2018. All rights reserved.