org.apache.maven.mercury.repository.cache.md
Class Attribute

java.lang.Object
  extended by org.apache.maven.mercury.repository.cache.md.Attribute
All Implemented Interfaces:
java.io.Serializable

public class Attribute
extends java.lang.Object
implements java.io.Serializable

generic attribute - name/value pair.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Attribute()
           
 
Method Summary
 java.lang.String getModelEncoding()
           
 java.lang.String getName()
          Get name of this attribute.
 java.lang.String getValue()
          Get value of this attribute.
 void setModelEncoding(java.lang.String modelEncoding)
          Set an encoding used for reading/writing the model.
 void setName(java.lang.String name)
          Set name of this attribute.
 void setValue(java.lang.String value)
          Set value of this attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute()
Method Detail

getName

public java.lang.String getName()
Get name of this attribute.

Returns:
String

getValue

public java.lang.String getValue()
Get value of this attribute.

Returns:
String

setName

public void setName(java.lang.String name)
Set name of this attribute.

Parameters:
name -

setValue

public void setValue(java.lang.String value)
Set value of this attribute.

Parameters:
value -

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)
Set an encoding used for reading/writing the model.

Parameters:
modelEncoding - the encoding used when reading/writing the model.

getModelEncoding

public java.lang.String getModelEncoding()
Returns:
the current encoding used when reading/writing this model.


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.