Interface ElementInterface

    • Method Detail

      • getReference

        EntityReference getReference()
        Returns:
        the reference of the element
        Since:
        3.2M1
      • getDocumentReference

        DocumentReference getDocumentReference()
        Returns:
        the reference to the document in which this element is defined (for elements where this make sense, for example for an XClass or a XObject).
        Since:
        2.2M2
      • getName

        String getName()
        Returns:
        the free form name (for elements which don't point to a reference, for example for instances of BaseProperty).
      • setDocumentReference

        void setDocumentReference​(DocumentReference reference)
        Since:
        2.2M2
      • setName

        void setName​(String name)
      • apply

        boolean apply​(ElementInterface newElement,
                      boolean clean)
        Apply the provided element so that the current one contains the same informations and indicate if it was necessary to modify it in any way.
        Parameters:
        newElement - the element to apply
        clean - true if informations that are not in the new element should be removed (for example class properties not in the new class)
        Returns:
        true if the element has been modified
        Since:
        4.3M1