org.nuiton.eugene.models
Interface Model

All Known Subinterfaces:
ObjectModel, StateModel
All Known Implementing Classes:
ObjectModelImpl, StateModelImpl

public interface Model

Model.

Version:
$Revision: 1012 $ Mise a jour: $Date: 2010-11-28 12:24:27 +0100 (Sun, 28 Nov 2010) $ par :

Field Summary
static String ROLE_NAME
          Plexus role name
 
Method Summary
 void addTagValue(String tagValue, String value)
          Adds the given value associated to the tagValue.
 String getName()
          Returns the name of this model.
 String getTagValue(String tagValue)
          Returns the tagValue corresponding to the given name, or null if the element has no associated tagValue for this name.
 Map<String,String> getTagValues()
          Returns the tagValues associated with this element.
 String getVersion()
          Returns the version of this model.
 

Field Detail

ROLE_NAME

static final String ROLE_NAME
Plexus role name

Method Detail

getName

String getName()
Returns the name of this model.

Returns:
the name of this model.

getVersion

String getVersion()
Returns the version of this model.

Returns:
the version of this model.

getTagValues

Map<String,String> getTagValues()
Returns the tagValues associated with this element. For each entry, the key is the name of the tagValue, the value is the value of the tagValue :-)

Returns:
a Map containing all tagValues associated with this element

getTagValue

String getTagValue(String tagValue)
Returns the tagValue corresponding to the given name, or null if the element has no associated tagValue for this name.

Parameters:
tagValue - tag value key
Returns:
the value of the found tagValue, or null if the element has no associated tagValue for this name.

addTagValue

void addTagValue(String tagValue,
                 String value)
Adds the given value associated to the tagValue. Note: If a previous tag value was definied, then it will be replaced.

Parameters:
tagValue - the name of the tag value
value - the value to associate
Since:
2.1.2


Copyright © 2004-2012 CodeLutin. All Rights Reserved.