Class PropertyConverters.Default

    • Constructor Summary

      Constructors 
      Constructor Description
      Default()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object convert​(java.lang.Object obj, java.lang.Class<?> propertyFieldType, java.lang.String propertyName, java.lang.String propertyValue, boolean check_scope, StackType ip_version)  
      java.lang.Object convert​(Property annotation, java.lang.Object obj, java.lang.Class<?> propertyFieldType, java.lang.String propertyName, java.lang.String propertyValue, boolean check_scope, StackType ip_version)  
      protected static java.net.Inet6Address getScopedInetAddress​(java.net.Inet6Address addr)  
      java.lang.String toString​(java.lang.Object value)
      Converts the value to a string.
      • Methods inherited from class java.lang.Object

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

      • Default

        public Default()
    • Method Detail

      • convert

        public java.lang.Object convert​(java.lang.Object obj,
                                        java.lang.Class<?> propertyFieldType,
                                        java.lang.String propertyName,
                                        java.lang.String propertyValue,
                                        boolean check_scope,
                                        StackType ip_version)
                                 throws java.lang.Exception
        Specified by:
        convert in interface PropertyConverter
        Throws:
        java.lang.Exception
      • convert

        public java.lang.Object convert​(Property annotation,
                                        java.lang.Object obj,
                                        java.lang.Class<?> propertyFieldType,
                                        java.lang.String propertyName,
                                        java.lang.String propertyValue,
                                        boolean check_scope,
                                        StackType ip_version)
                                 throws java.lang.Exception
        Specified by:
        convert in interface PropertyConverter
        Throws:
        java.lang.Exception
      • getScopedInetAddress

        protected static java.net.Inet6Address getScopedInetAddress​(java.net.Inet6Address addr)
      • toString

        public java.lang.String toString​(java.lang.Object value)
        Description copied from interface: PropertyConverter
        Converts the value to a string. The default is to simply invoke Object.toString(), however, some objects need to be printed specially, e.g. a long array etc.
        Specified by:
        toString in interface PropertyConverter
        Returns: