org.jboss.shrinkwrap.descriptor.api.validationConfiguration10.ValidationConfigurationDescriptor Maven / Gradle / Ivy
package org.jboss.shrinkwrap.descriptor.api.validationConfiguration10;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.validationConfiguration10.PropertyType;
import org.jboss.shrinkwrap.descriptor.api.Descriptor;
import org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace;
import org.jboss.shrinkwrap.descriptor.api.validationConfiguration.*;
/**
*
* This deployment descriptor provides the functionalities as described in the specification
*
* Example:
*
*
* ValidationConfigurationDescriptor descriptor = Descriptors.create(ValidationConfigurationDescriptor.class);
*
*
*
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public interface ValidationConfigurationDescriptor extends Descriptor, DescriptorNamespace,
ValidationConfigurationCommonDescriptor> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: ValidationConfigurationDescriptor ElementName: xsd:string ElementType : default-provider
// MaxOccurs: - isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the default-provider
element
* @param defaultProvider the value for the element default-provider
* @return the current instance of ValidationConfigurationDescriptor
*/
public ValidationConfigurationDescriptor defaultProvider(String defaultProvider);
/**
* Returns the default-provider
element
* @return the node defined for the element default-provider
*/
public String getDefaultProvider();
/**
* Removes the default-provider
element
* @return the current instance of ValidationConfigurationDescriptor
*/
public ValidationConfigurationDescriptor removeDefaultProvider();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ValidationConfigurationDescriptor ElementName: xsd:string ElementType : message-interpolator
// MaxOccurs: - isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the message-interpolator
element
* @param messageInterpolator the value for the element message-interpolator
* @return the current instance of ValidationConfigurationDescriptor
*/
public ValidationConfigurationDescriptor messageInterpolator(String messageInterpolator);
/**
* Returns the message-interpolator
element
* @return the node defined for the element message-interpolator
*/
public String getMessageInterpolator();
/**
* Removes the message-interpolator
element
* @return the current instance of ValidationConfigurationDescriptor
*/
public ValidationConfigurationDescriptor removeMessageInterpolator();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ValidationConfigurationDescriptor ElementName: xsd:string ElementType : traversable-resolver
// MaxOccurs: - isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the traversable-resolver
element
* @param traversableResolver the value for the element traversable-resolver
* @return the current instance of ValidationConfigurationDescriptor
*/
public ValidationConfigurationDescriptor traversableResolver(String traversableResolver);
/**
* Returns the traversable-resolver
element
* @return the node defined for the element traversable-resolver
*/
public String getTraversableResolver();
/**
* Removes the traversable-resolver
element
* @return the current instance of ValidationConfigurationDescriptor
*/
public ValidationConfigurationDescriptor removeTraversableResolver();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ValidationConfigurationDescriptor ElementName: xsd:string ElementType : constraint-validator-factory
// MaxOccurs: - isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the constraint-validator-factory
element
* @param constraintValidatorFactory the value for the element constraint-validator-factory
* @return the current instance of ValidationConfigurationDescriptor
*/
public ValidationConfigurationDescriptor constraintValidatorFactory(String constraintValidatorFactory);
/**
* Returns the constraint-validator-factory
element
* @return the node defined for the element constraint-validator-factory
*/
public String getConstraintValidatorFactory();
/**
* Removes the constraint-validator-factory
element
* @return the current instance of ValidationConfigurationDescriptor
*/
public ValidationConfigurationDescriptor removeConstraintValidatorFactory();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ValidationConfigurationDescriptor ElementName: xsd:string ElementType : constraint-mapping
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Creates for all String objects representing constraint-mapping
elements,
* a new constraint-mapping
element
* @param values list of constraint-mapping
objects
* @return the current instance of ValidationConfigurationDescriptor
*/
public ValidationConfigurationDescriptor constraintMapping(String ... values);
/**
* Returns all constraint-mapping
elements
* @return list of constraint-mapping
*/
public List getAllConstraintMapping();
/**
* Removes the constraint-mapping
element
* @return the current instance of ValidationConfigurationDescriptor
*/
public ValidationConfigurationDescriptor removeAllConstraintMapping();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ValidationConfigurationDescriptor ElementName: config:propertyType ElementType : property
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new property
element will be created and returned.
* Otherwise, the first existing property
element will be returned.
* @return the instance defined for the element property
*/
public PropertyType getOrCreateProperty();
/**
* Creates a new property
element
* @return the new created instance of PropertyType
*/
public PropertyType createProperty();
/**
* Returns all property
elements
* @return list of property
*/
public List> getAllProperty();
/**
* Removes all property
elements
* @return the current instance of PropertyType
*/
public ValidationConfigurationDescriptor removeAllProperty();
}