Class AbstractIntegrityEvent

    • Constructor Detail

    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Compares based on the class of this instance and the incoming instance, before comparing based on all the internal data. If derived classes store additional data for their functionality, then they should override this.
        Overrides:
        equals in class Object
      • getNodeType

        protected QName getNodeType​(NodeRef nodeRef)
        Gets the node type if the node exists
        Parameters:
        nodeRef - NodeRef
        Returns:
        Returns the node's type or null if the node no longer exists
      • getNodeRef

        protected NodeRef getNodeRef()
      • getTypeQName

        protected QName getTypeQName()
      • getQName

        protected QName getQName()
      • getAssocDef

        protected AssociationDefinition getAssocDef​(List<IntegrityRecord> eventResults,
                                                    QName assocTypeQName)
        Gets the association definition from the dictionary. If the source node type is provided then the association particular to the subtype is attempted.
        Parameters:
        eventResults - results to add a violation message to
        assocTypeQName - the type of the association
        Returns:
        Returns the association definition, or null if not found
      • getMultiplicityString

        protected String getMultiplicityString​(boolean mandatory,
                                               boolean allowMany)