public function getAttributes()
    {
        $attributes = array();

        foreach ($this->getProperty() as $name => $property) {
            if ($property->isAttribute()) {
                $attributes[$name] = $property;
            }
        }

        return $attributes;
    }