org.jboss.shrinkwrap.descriptor.api.validationMapping11.ConstraintDefinitionType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Client View of the ShrinkWrap Descriptors Project
The newest version!
package org.jboss.shrinkwrap.descriptor.api.validationMapping11;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.validationMapping11.ValidatedByType;
import org.jboss.shrinkwrap.descriptor.api.validationMapping.*;
import org.jboss.shrinkwrap.descriptor.api.validationMapping.MapConstraintDefinitionCommonType;
import org.jboss.shrinkwrap.descriptor.api.validationMapping11.ValidatedByType;/**
* This interface defines the contract for the constraint-definitionType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public interface ConstraintDefinitionType extends Child,
MapConstraintDefinitionCommonType,
ValidatedByType>> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConstraintDefinitionType ElementName: map:validated-byType ElementType : validated-by
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new validated-by
element with the given value will be created.
* Otherwise, the existing validated-by
element will be returned.
* @return a new or existing instance of ValidatedByType>
*/
public ValidatedByType> getOrCreateValidatedBy();
/**
* Removes the validated-by
element
* @return the current instance of ConstraintDefinitionType
*/
public ConstraintDefinitionType removeValidatedBy();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConstraintDefinitionType ElementName: xsd:string ElementType : annotation
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the annotation
attribute
* @param annotation the value for the attribute annotation
* @return the current instance of ConstraintDefinitionType
*/
public ConstraintDefinitionType annotation(String annotation);
/**
* Returns the annotation
attribute
* @return the value defined for the attribute annotation
*/
public String getAnnotation();
/**
* Removes the annotation
attribute
* @return the current instance of ConstraintDefinitionType
*/
public ConstraintDefinitionType removeAnnotation();
}