package com.ericfeminella.annotations
{
import mx.collections.ArrayCollection;
import flash.utils.Dictionary;
/**
*
* <code>Metadata</code> provides a strongly typed implementation
* of a metadata entry.
*
*/
public class Metadata
{
/**
*
* @private
*
* Defines the <code>Metadata</code> entry name
*
*/
private var _name:String;
/**
*
* @private
*
* Defines the <code>Metadata</code> entry arguments
*
*/
private var _arguments:Dictionary;
/**
*
* <code>Metadata</code> constructor accepts a metadata entry
* name and arguments
*
* @param name of the metadata entry
* @param arguments defined for the metadata entry
*
*/
public function Metadata(name:String, arguments:Dictionary)
{
this._name = name;
this._arguments = arguments;
}
/**
*
* Retrieves the name specified for the <code>Metadata</code>
* entry instance
*
* @return <code>Metadata</code> entry name
*
*/
public function get name() : String
{
return _name;
}
/**
*
* Retrieves the arguments specified for the <code>Metadata</code>
* entry instance.
*
* <p>
* <code>Metadata.arguments</code> are defined as name / values
* pairs of metadata keys and their associated values
* </p>
*
* @return <code>Metadata</code> entry name
*
*/
public function get arguments() : Dictionary
{
return _arguments;
}
}
}