public static ActionConfig imports ( Xml root ) { Check . notNull ( root ) ; final Xml nodeAction = root . getChild ( NODE_ACTION ) ; final String name = nodeAction . readString ( ATT_NAME ) ; final String description = nodeAction . readString ( ATT_DESCRIPTION ) ; final int x = nodeAction . readInteger ( ATT_X ) ; final int y = nodeAction . readInteger ( ATT_Y ) ; final int width = nodeAction . readInteger ( ATT_WIDTH ) ; final int height = nodeAction . readInteger ( ATT_HEIGHT ) ; return new ActionConfig ( name , description , x , y , width , height ) ; }
Import the action data from node .