Class Util


  • public class Util
    extends java.lang.Object
    Utility functions for navigating VODML models.
    Since:
    30 Aug 2021
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends ObjectCopier<T>>
      java.util.List<? extends T>
      cloneList​(java.util.List<? extends T> l)  
      static void findReferences​(java.lang.Object modelInstance, java.util.Map<java.lang.Class,​java.util.Set> l)
      Will find all the references referred to by the vodml-ref in the key of the map and add them to the corresponding set that is the value of the map
      static java.util.List<XmlIdManagement> findXmlIDs​(java.util.List<java.lang.Object> modelInstance)  
      static void makeUniqueIDs​(java.util.List<? extends XmlIdManagement> els)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findReferences

        public static void findReferences​(java.lang.Object modelInstance,
                                          java.util.Map<java.lang.Class,​java.util.Set> l)
        Will find all the references referred to by the vodml-ref in the key of the map and add them to the corresponding set that is the value of the map
        Parameters:
        modelInstance - the vodml model instance to be searched.
        l - the map of Class -> Set correspondences;
      • findXmlIDs

        public static java.util.List<XmlIdManagement> findXmlIDs​(java.util.List<java.lang.Object> modelInstance)
      • makeUniqueIDs

        public static void makeUniqueIDs​(java.util.List<? extends XmlIdManagement> els)
      • cloneList

        public static <T extends ObjectCopier<T>> java.util.List<? extends T> cloneList​(java.util.List<? extends T> l)