public static CollisionRange imports(XmlReader node)
    {
        Check.notNull(node);

        final String axisName = node.readString(ATT_AXIS);
        try
        {
            final Axis axis = Axis.valueOf(axisName);
            final int minX = node.readInteger(ATT_MIN_X);
            final int maxX = node.readInteger(ATT_MAX_X);
            final int minY = node.readInteger(ATT_MIN_Y);
            final int maxY = node.readInteger(ATT_MAX_Y);

            return new CollisionRange(axis, minX, maxX, minY, maxY);
        }
        catch (final IllegalArgumentException exception)
        {
            throw new LionEngineException(exception, ERROR_TYPE + axisName);
        }
    }
public static CollisionRange imports ( XmlReader node ) { Check . notNull ( node ) ; final String axisName = node . readString ( ATT_AXIS ) ; try { final Axis axis = Axis . valueOf ( axisName ) ; final int minX = node . readInteger ( ATT_MIN_X ) ; final int maxX = node . readInteger ( ATT_MAX_X ) ; final int minY = node . readInteger ( ATT_MIN_Y ) ; final int maxY = node . readInteger ( ATT_MAX_Y ) ; return new CollisionRange ( axis , minX , maxX , minY , maxY ) ; } catch ( final IllegalArgumentException exception ) { throw new LionEngineException ( exception , ERROR_TYPE + axisName ) ; } }
Create the collision range data from a node.

@param node The node reference (must not be <code>null</code>).
@return The collision range data.
@throws LionEngineException If error when reading node.