Class Ref


  • public class Ref
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void addStringToReferences​(java.lang.String str, java.util.ArrayList<Ref> refs)
      Add references in a String representation to a Ref ArrayList Used to add the Ref(s) property in the Config to references
      java.lang.String getId()
      Get the Id of the reference
      float getPostMargin()
      Get the postMargin of the reference
      float getPreMargin()
      Get the preMargin of the reference
      float getWeight()
      Get the weight of the reference
      static float parseFloat​(java.lang.Object obj)
      Try to parse an object into a float number
      static Ref parseStringToRef​(java.lang.String str)  
      void setId​(java.lang.String id)
      Set the Id of the reference
      void setPostMargin​(float postMargin)
      Set the postMargin of the reference
      void setPreMargin​(float preMargin)
      Set the preMargin of the reference
      void setWeight​(float weight)
      Set the weight of the reference
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • getId

        public java.lang.String getId()
        Get the Id of the reference
        Returns:
        the Id of the reference
      • setId

        public void setId​(java.lang.String id)
        Set the Id of the reference
        Parameters:
        id -
      • getWeight

        public float getWeight()
        Get the weight of the reference
        Returns:
        the weight of the reference
      • setWeight

        public void setWeight​(float weight)
        Set the weight of the reference
        Parameters:
        weight -
      • getPreMargin

        public float getPreMargin()
        Get the preMargin of the reference
        Returns:
        the preMargin of the reference
      • setPreMargin

        public void setPreMargin​(float preMargin)
        Set the preMargin of the reference
        Parameters:
        preMargin -
      • getPostMargin

        public float getPostMargin()
        Get the postMargin of the reference
        Returns:
        the preMargin of the reference
      • setPostMargin

        public void setPostMargin​(float postMargin)
        Set the postMargin of the reference
        Parameters:
        postMargin -
      • parseFloat

        public static float parseFloat​(java.lang.Object obj)
        Try to parse an object into a float number
        Parameters:
        obj - object to be parsed
        Returns:
        a number
      • parseStringToRef

        public static Ref parseStringToRef​(java.lang.String str)
      • addStringToReferences

        public static void addStringToReferences​(java.lang.String str,
                                                 java.util.ArrayList<Ref> refs)
        Add references in a String representation to a Ref ArrayList Used to add the Ref(s) property in the Config to references
        Parameters:
        str - references in a String representation
        refs - a Ref ArrayList
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object