@classmethod
def forname(cls, name):
    """Return the axis constant for the given name, or `None` if no such
        axis was defined.
        """
    return getattr(cls, name.upper().replace('-', '_'), None)
