public MapAttributeDefinition(final String name, final String xmlName, final boolean allowNull, final int minSize, final int maxSize, final ParameterValidator elementValidator, final String[] alternatives, final String[] requires, final AttributeAccess.Flag... flags) { super(name, xmlName, null, ModelType.OBJECT, allowNull, false, null, new MapValidator(elementValidator, allowNull, minSize, maxSize), alternatives, requires, flags); this.elementValidator = elementValidator; }
protected MapAttributeDefinition(final String name, final String xmlName, final boolean allowNull, boolean allowExpression, final int minSize, final int maxSize, final ParameterCorrector corrector, final ParameterValidator elementValidator, final String[] alternatives, final String[] requires, final AttributeMarshaller attributeMarshaller, final boolean resourceOnly, final DeprecationData deprecated, final AttributeAccess.Flag... flags) { super(name, xmlName, null, ModelType.OBJECT, allowNull, allowExpression, null, corrector, new MapValidator(elementValidator, allowNull, minSize, maxSize), false, alternatives, requires, attributeMarshaller, resourceOnly, deprecated, flags); this.elementValidator = elementValidator; }
@Deprecated protected MapAttributeDefinition(final String name, final String xmlName, final boolean allowNull, boolean allowExpression, final int minSize, final int maxSize, final ParameterCorrector corrector, final ParameterValidator elementValidator, final String[] alternatives, final String[] requires, final AttributeMarshaller attributeMarshaller, final boolean resourceOnly, final DeprecationData deprecated, final AccessConstraintDefinition[] accessConstraints, final Boolean nullSignificant, final AttributeParser parser, final AttributeAccess.Flag... flags) { super(name, xmlName, null, ModelType.OBJECT, allowNull, allowExpression, null, corrector, new MapValidator(elementValidator, allowNull, minSize, maxSize), false, alternatives, requires, attributeMarshaller, resourceOnly, deprecated, accessConstraints, nullSignificant, parser, flags); this.elementValidator = elementValidator; }
@Override public ParameterValidator getValidator() { ParameterValidator result = super.getValidator(); if (result == null) { ParameterValidator mapElementValidator = getElementValidator(); // Subclasses must call setElementValidator before calling this assert mapElementValidator != null; result = new MapValidator(getElementValidator(), isAllowNull(), getMinSize(), getMaxSize()); } return result; } }
@Override public ParameterValidator getValidator() { ParameterValidator result = super.getValidator(); if (result == null) { ParameterValidator mapElementValidator = getElementValidator(); // Subclasses must call setElementValidator before calling this assert mapElementValidator != null; result = new MapValidator(getElementValidator(), isAllowNull(), getMinSize(), getMaxSize()); } return result; } }
@Override public ParameterValidator getValidator() { ParameterValidator result = super.getValidator(); if (result == null) { ParameterValidator mapElementValidator = getElementValidator(); // Subclasses must call setElementValidator before calling this assert mapElementValidator != null; result = new MapValidator(getElementValidator(), isAllowNull(), getMinSize(), getMaxSize()); } return result; } }