Class Converters


  • public class Converters
    extends java.lang.Object
    Utility class for access to default converter for a property.

    Author:
    Javier Paniza
    • Constructor Summary

      Constructors 
      Constructor Description
      Converters()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void _addForStereotype​(java.lang.String name, java.lang.String converterClass, java.lang.String cmpType)  
      static void _addForType​(java.lang.String typeName, java.lang.String converterClass, java.lang.String cmpType)  
      static java.lang.String getCmpTypeFor​(MetaProperty p)  
      static java.lang.String getConverterClassNameFor​(MetaProperty p)  
      • Methods inherited from class java.lang.Object

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

      • Converters

        public Converters()
    • Method Detail

      • _addForStereotype

        public static void _addForStereotype​(java.lang.String name,
                                             java.lang.String converterClass,
                                             java.lang.String cmpType)
                                      throws XavaException
        Throws:
        XavaException
      • _addForType

        public static void _addForType​(java.lang.String typeName,
                                       java.lang.String converterClass,
                                       java.lang.String cmpType)
                                throws XavaException
        Throws:
        XavaException
      • getConverterClassNameFor

        public static java.lang.String getConverterClassNameFor​(MetaProperty p)
                                                         throws XavaException
        Returns:
        null if argument has no default converter associated.

        Throws:
        XavaException