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

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

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

metadata element.

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

Constructor Summary
Element()
           
 
Method Summary
 void addAttribute(Attribute attribute)
          Method addAttribute.
 void addElement(Element element)
          Method addElement.
 void breakElementAssociation(Element element)
          Method breakElementAssociation.
 void createElementAssociation(Element element)
          Method createElementAssociation.
 java.util.List getAttributes()
          Method getAttributes.
 java.util.List getElements()
          Method getElements.
 java.lang.String getModelEncoding()
           
 java.lang.String getName()
          Get name of this element.
 void removeAttribute(Attribute attribute)
          Method removeAttribute.
 void removeElement(Element element)
          Method removeElement.
 void setAttributes(java.util.List attributes)
          Set group of metadata element attributes.
 void setElements(java.util.List elements)
          Set group of metadata element elements.
 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 element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Element

public Element()
Method Detail

addAttribute

public void addAttribute(Attribute attribute)
Method addAttribute.

Parameters:
attribute -

addElement

public void addElement(Element element)
Method addElement.

Parameters:
element -

breakElementAssociation

public void breakElementAssociation(Element element)
Method breakElementAssociation.

Parameters:
element -

createElementAssociation

public void createElementAssociation(Element element)
Method createElementAssociation.

Parameters:
element -

getAttributes

public java.util.List getAttributes()
Method getAttributes.

Returns:
java.util.List

getElements

public java.util.List getElements()
Method getElements.

Returns:
java.util.List

getName

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

Returns:
String

removeAttribute

public void removeAttribute(Attribute attribute)
Method removeAttribute.

Parameters:
attribute -

removeElement

public void removeElement(Element element)
Method removeElement.

Parameters:
element -

setAttributes

public void setAttributes(java.util.List attributes)
Set group of metadata element attributes.

Parameters:
attributes -

setElements

public void setElements(java.util.List elements)
Set group of metadata element elements.

Parameters:
elements -

setName

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

Parameters:
name -

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.