Class 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">
         <restriction base="{}anyType">
             <element name="description" type="{}string" minOccurs="0"/>
             <element name="allowSameTarget" type="{}boolean" minOccurs="0"/>
             <element name="allowSameRelation" type="{}boolean" minOccurs="0"/>
    See Also:
    Serialized Form
    • Field Detail

      • description

        protected String description
      • allowSameTarget

        protected Boolean allowSameTarget
      • allowSameRelation

        protected Boolean allowSameRelation

        public static final QName COMPLEX_TYPE

        public static final ItemName F_DESCRIPTION

        public static final ItemName F_ALLOW_SAME_TARGET

        public static final ItemName F_ALLOW_SAME_RELATION
    • Constructor Detail

      • AssignmentConstraintsType

        public AssignmentConstraintsType()
        Creates a new AssignmentConstraintsType instance.
      • AssignmentConstraintsType

        public AssignmentConstraintsType​(AssignmentConstraintsType o)
        Creates a new AssignmentConstraintsType instance by deeply copying a given AssignmentConstraintsType instance.
        o - The instance to copy.
        NullPointerException - if o is null.
    • Method Detail

      • getDescription

        public String getDescription()
        Gets the value of the description property.
        possible object is String
      • setDescription

        public void setDescription​(String value)
        Sets the value of the description property.
        value - allowed object is String
      • isAllowSameTarget

        public Boolean isAllowSameTarget()
        Gets the value of the allowSameTarget property.
        possible object is Boolean
      • setAllowSameTarget

        public void setAllowSameTarget​(Boolean value)
        Sets the value of the allowSameTarget property.
        value - allowed object is Boolean
      • isAllowSameRelation

        public Boolean isAllowSameRelation()
        Gets the value of the allowSameRelation property.
        possible object is Boolean
      • setAllowSameRelation

        public void setAllowSameRelation​(Boolean value)
        Sets the value of the allowSameRelation property.
        value - allowed object is Boolean
      • 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
        toString in class Object
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode
      • hashCode

        public int hashCode()
        hashCode in class Object
      • 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 interface org.jvnet.jaxb2_commons.lang.Equals