public static FeaturableConfig imports ( Xml root ) { Check . notNull ( root ) ; final String clazz ; if ( root . hasChild ( ATT_CLASS ) ) { clazz = root . getChild ( ATT_CLASS ) . getText ( ) ; } else { clazz = DEFAULT_CLASS_NAME ; } final String setup ; if ( root . hasChild ( ATT_SETUP ) ) { setup = root . getChild ( ATT_SETUP ) . getText ( ) ; } else { setup = Constant . EMPTY_STRING ; } return new FeaturableConfig ( clazz , setup ) ; }
Import the featurable data from node .