<?
/**
* Parser for the XMI Attributes
*
*@author Teoni Valois da Mota Silva
*@name AttributeParser
*@package Attributes
*@version 0.1.1
*
*/
class AttributeParser extends XMIParser{
/**
* AttributeParser's Object constructor
*
* @param String $xmiFile
*/
function AttributeParser($data){
$this->data = $data[0]['UML:Attribute'];
}
/**
* AttributeParser's Object destructor
*
*/
function __destruct(){
$this->data = null;
}
/**
* Returns the Name of the Attibute
*
* @param Int $attributeId
* @return String
*/
function getName($attributeId){
return $this->data[$attributeId]['name'];
}
/**
* Returns the XMI Id of The Attribute
*
* @param Int $attributeId
* @return String
*/
function getXMIId($attributeId){
return $this->data[$attributeId]['xmi.id'];
}
/**
* Returns the Visibility Status of the Attibute
*
* @param Int $attributeId
* @return String
*/
function getVisibility($attributeId){
return $this->data[$attributeId]['visibility'];
}
/**
* Returns the Specification Status of the Attibute
*
* @param Int $attributeId
* @return String
*/
function getSpecificationStatus($attributeId){
return $this->data[$attributeId]['isSpecification'];
}
/**
* Returns the Owner Scope of the Attibute
*
* @param Int $attributeId
* @return String
*/
function getOwnerScope($attributeId){
return $this->data[$attributeId]['ownerScope'];
}
/**
* Returns the Changeability Status of the Attibute
*
* @param Int $attributeId
* @return String
*/
function getChangeability($attributeId){
return $this->data[$attributeId]['changeability'];
}
}
?>