@classmethod
def fromAttr(cls, attr, **kw):
    """
        Construct a parameter from an Axiom attribute.
        """
    kw.setdefault('name', attr.attrname)
    kw.setdefault('value', attr.default)
    kw.setdefault('doc', attr.doc or None)
    return cls(**kw)
