Class XfaForm.InverseStore

  • Enclosing class:
    XfaForm

    public static class XfaForm.InverseStore
    extends java.lang.Object
    A structure to store each part of a SOM name and link it to the next part beginning from the lower hierarchy.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.ArrayList<java.lang.Object> follow  
      protected java.util.ArrayList<java.lang.String> part  
    • Constructor Summary

      Constructors 
      Constructor Description
      InverseStore()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDefaultName()
      Gets the full name by traversing the hierarchy using only the index 0.
      boolean isSimilar​(java.lang.String name)
      Search the current node for a similar name.
      • Methods inherited from class java.lang.Object

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

      • part

        protected java.util.ArrayList<java.lang.String> part
      • follow

        protected java.util.ArrayList<java.lang.Object> follow
    • Constructor Detail

      • InverseStore

        public InverseStore()
    • Method Detail

      • getDefaultName

        public java.lang.String getDefaultName()
        Gets the full name by traversing the hierarchy using only the index 0.
        Returns:
        the full name
      • isSimilar

        public boolean isSimilar​(java.lang.String name)
        Search the current node for a similar name. A similar name starts with the same name but has a different index. For example, "detail[3]" is similar to "detail[9]". The main use is to discard names that correspond to out of bounds records.
        Parameters:
        name - the name to search
        Returns:
        true if a similitude was found