public interface ConstraintType<T> extends Child<T>, MapConstraintCommonType<T,ConstraintType<T>,GroupsType<ConstraintType<T>>,PayloadType<ConstraintType<T>>,ElementType<ConstraintType<T>>>
constraintType
xsd typeModifier and Type | Method and Description |
---|---|
ConstraintType<T> |
annotation(String annotation)
Sets the
annotation attribute |
ElementType<ConstraintType<T>> |
createElement()
Creates a new
element element |
List<ElementType<ConstraintType<T>>> |
getAllElement()
Returns all
element elements |
String |
getAnnotation()
Returns the
annotation attribute |
String |
getMessage()
Returns the
message element |
ElementType<ConstraintType<T>> |
getOrCreateElement()
If not already created, a new
element element will be created and returned. |
GroupsType<ConstraintType<T>> |
getOrCreateGroups()
If not already created, a new
groups element with the given value will be created. |
PayloadType<ConstraintType<T>> |
getOrCreatePayload()
If not already created, a new
payload element with the given value will be created. |
ConstraintType<T> |
message(String message)
Sets the
message element |
ConstraintType<T> |
removeAllElement()
Removes all
element elements |
ConstraintType<T> |
removeAnnotation()
Removes the
annotation attribute |
ConstraintType<T> |
removeGroups()
Removes the
groups element |
ConstraintType<T> |
removeMessage()
Removes the
message element |
ConstraintType<T> |
removePayload()
Removes the
payload element |
ConstraintType<T> message(String message)
message
elementmessage
- the value for the element message
ConstraintType
String getMessage()
message
elementmessage
ConstraintType<T> removeMessage()
message
elementConstraintType
GroupsType<ConstraintType<T>> getOrCreateGroups()
groups
element with the given value will be created.
Otherwise, the existing groups
element will be returned.GroupsType>
ConstraintType<T> removeGroups()
groups
elementConstraintType
PayloadType<ConstraintType<T>> getOrCreatePayload()
payload
element with the given value will be created.
Otherwise, the existing payload
element will be returned.PayloadType>
ConstraintType<T> removePayload()
payload
elementConstraintType
ElementType<ConstraintType<T>> getOrCreateElement()
element
element will be created and returned.
Otherwise, the first existing element
element will be returned.element
ElementType<ConstraintType<T>> createElement()
element
elementElementType>
List<ElementType<ConstraintType<T>>> getAllElement()
element
elementselement
ConstraintType<T> removeAllElement()
element
elementsElementType>
ConstraintType<T> annotation(String annotation)
annotation
attributeannotation
- the value for the attribute annotation
ConstraintType
String getAnnotation()
annotation
attributeannotation
ConstraintType<T> removeAnnotation()
annotation
attributeConstraintType
Copyright © 2022 JBoss by Red Hat. All rights reserved.