Class AssignmentConstraintsType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentConstraintsType
-
- All Implemented Interfaces:
JaxbVisitable,Serializable,Cloneable,org.jvnet.jaxb2_commons.lang.Equals,org.jvnet.jaxb2_commons.lang.HashCode
public class AssignmentConstraintsType extends Object implements Serializable, Cloneable, JaxbVisitable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode
Specifies constraints on assignments that are placed in the same focus. It can be used to prohibit multiple assignment of the same role and for similar cases. There are several individual constraints in the type. There is a logical AND between them. This means that if no constraint can be violated. All active constraints must be satisfied at the same time.Java class for AssignmentConstraintsType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AssignmentConstraintsType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element ref="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}documentation" minOccurs="0"/> <element name="allowSameTarget" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> <element name="allowSameRelation" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanallowSameRelationprotected BooleanallowSameTargetstatic QNameCOMPLEX_TYPEprotected Stringdescriptionprotected Stringdocumentationstatic ItemNameF_ALLOW_SAME_RELATIONstatic ItemNameF_ALLOW_SAME_TARGETstatic ItemNameF_DESCRIPTIONstatic ItemNameF_DOCUMENTATION
-
Constructor Summary
Constructors Constructor Description AssignmentConstraintsType()Creates a newAssignmentConstraintsTypeinstance.AssignmentConstraintsType(AssignmentConstraintsType o)Creates a newAssignmentConstraintsTypeinstance by deeply copying a givenAssignmentConstraintsTypeinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(JaxbVisitor visitor)AssignmentConstraintsTypeallowSameRelation(Boolean value)AssignmentConstraintsTypeallowSameTarget(Boolean value)AssignmentConstraintsTypeclone()Creates and returns a deep copy of this object.AssignmentConstraintsTypedescription(String value)AssignmentConstraintsTypedocumentation(String value)booleanequals(Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)StringgetDescription()Gets the value of the description property.StringgetDocumentation()Gets the value of the documentation property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)BooleanisAllowSameRelation()Gets the value of the allowSameRelation property.BooleanisAllowSameTarget()Gets the value of the allowSameTarget property.voidsetAllowSameRelation(Boolean value)Sets the value of the allowSameRelation property.voidsetAllowSameTarget(Boolean value)Sets the value of the allowSameTarget property.voidsetDescription(String value)Sets the value of the description property.voidsetDocumentation(String value)Sets the value of the documentation property.StringtoString()Generates a String representation of the contents of this type.
-
-
-
Field Detail
-
description
protected String description
-
documentation
protected String documentation
-
allowSameTarget
protected Boolean allowSameTarget
-
allowSameRelation
protected Boolean allowSameRelation
-
COMPLEX_TYPE
public static final QName COMPLEX_TYPE
-
F_DESCRIPTION
public static final ItemName F_DESCRIPTION
-
F_DOCUMENTATION
public static final ItemName F_DOCUMENTATION
-
F_ALLOW_SAME_TARGET
public static final ItemName F_ALLOW_SAME_TARGET
-
F_ALLOW_SAME_RELATION
public static final ItemName F_ALLOW_SAME_RELATION
-
-
Constructor Detail
-
AssignmentConstraintsType
public AssignmentConstraintsType()
Creates a newAssignmentConstraintsTypeinstance.
-
AssignmentConstraintsType
public AssignmentConstraintsType(AssignmentConstraintsType o)
Creates a newAssignmentConstraintsTypeinstance by deeply copying a givenAssignmentConstraintsTypeinstance.- Parameters:
o- The instance to copy.- Throws:
NullPointerException- ifoisnull.
-
-
Method Detail
-
getDescription
public String getDescription()
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Sets the value of the description property.- Parameters:
value- allowed object isString
-
getDocumentation
public String getDocumentation()
Gets the value of the documentation property.- Returns:
- possible object is
String
-
setDocumentation
public void setDocumentation(String value)
Sets the value of the documentation property.- Parameters:
value- allowed object isString
-
isAllowSameTarget
public Boolean isAllowSameTarget()
Gets the value of the allowSameTarget property.- Returns:
- possible object is
Boolean
-
setAllowSameTarget
public void setAllowSameTarget(Boolean value)
Sets the value of the allowSameTarget property.- Parameters:
value- allowed object isBoolean
-
isAllowSameRelation
public Boolean isAllowSameRelation()
Gets the value of the allowSameRelation property.- Returns:
- possible object is
Boolean
-
setAllowSameRelation
public void setAllowSameRelation(Boolean value)
Sets the value of the allowSameRelation property.- Parameters:
value- allowed object isBoolean
-
toString
public String toString()
Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals
-
description
public AssignmentConstraintsType description(String value)
-
documentation
public AssignmentConstraintsType documentation(String value)
-
allowSameTarget
public AssignmentConstraintsType allowSameTarget(Boolean value)
-
allowSameRelation
public AssignmentConstraintsType allowSameRelation(Boolean value)
-
accept
public void accept(JaxbVisitor visitor)
- Specified by:
acceptin interfaceJaxbVisitable
-
clone
public AssignmentConstraintsType clone()
Creates and returns a deep copy of this object.
-
-