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 Boolean
allowSameRelation
protected Boolean
allowSameTarget
static QName
COMPLEX_TYPE
protected String
description
protected String
documentation
static ItemName
F_ALLOW_SAME_RELATION
static ItemName
F_ALLOW_SAME_TARGET
static ItemName
F_DESCRIPTION
static ItemName
F_DOCUMENTATION
-
Constructor Summary
Constructors Constructor Description AssignmentConstraintsType()
Creates a newAssignmentConstraintsType
instance.AssignmentConstraintsType(AssignmentConstraintsType o)
Creates a newAssignmentConstraintsType
instance by deeply copying a givenAssignmentConstraintsType
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(JaxbVisitor visitor)
AssignmentConstraintsType
allowSameRelation(Boolean value)
AssignmentConstraintsType
allowSameTarget(Boolean value)
AssignmentConstraintsType
clone()
Creates and returns a deep copy of this object.AssignmentConstraintsType
description(String value)
AssignmentConstraintsType
documentation(String value)
boolean
equals(Object object)
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)
String
getDescription()
Gets the value of the description property.String
getDocumentation()
Gets the value of the documentation property.int
hashCode()
int
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
Boolean
isAllowSameRelation()
Gets the value of the allowSameRelation property.Boolean
isAllowSameTarget()
Gets the value of the allowSameTarget property.void
setAllowSameRelation(Boolean value)
Sets the value of the allowSameRelation property.void
setAllowSameTarget(Boolean value)
Sets the value of the allowSameTarget property.void
setDescription(String value)
Sets the value of the description property.void
setDocumentation(String value)
Sets the value of the documentation property.String
toString()
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 newAssignmentConstraintsType
instance.
-
AssignmentConstraintsType
public AssignmentConstraintsType(AssignmentConstraintsType o)
Creates a newAssignmentConstraintsType
instance by deeply copying a givenAssignmentConstraintsType
instance.- Parameters:
o
- The instance to copy.- Throws:
NullPointerException
- ifo
isnull
.
-
-
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:
hashCode
in 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:
equals
in 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:
accept
in interfaceJaxbVisitable
-
clone
public AssignmentConstraintsType clone()
Creates and returns a deep copy of this object.
-
-