org.jboss.system.server.profileservice.repository.clustered.metadata
Class RepositoryRootMetadata

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.clustered.metadata.AbstractSortedMetadataContainer<List<String>,RepositoryItemMetadata>
      extended by org.jboss.system.server.profileservice.repository.clustered.metadata.RepositoryRootMetadata
All Implemented Interfaces:
Serializable, Comparable<RepositoryRootMetadata>, Identifiable<String>

public class RepositoryRootMetadata
extends AbstractSortedMetadataContainer<List<String>,RepositoryItemMetadata>
implements Identifiable<String>, Serializable, Comparable<RepositoryRootMetadata>

Concise description of the contents under a single root URI in a ClusteredDeploymentRepository. A repository may consist of multiple root URIs.

Author:
Brian Stansberry
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.system.server.profileservice.repository.clustered.metadata.AbstractSortedMetadataContainer
sortedItems
 
Constructor Summary
RepositoryRootMetadata()
          Constructor for XML parser.
RepositoryRootMetadata(RepositoryRootMetadata toCopy)
          Copy constructor.
RepositoryRootMetadata(String name)
          Create a new RepositoryRootMetadata with the given name.
 
Method Summary
 void addItemMetadata(RepositoryItemMetadata md)
           
 int compareTo(RepositoryRootMetadata other)
           
 boolean equals(Object obj)
           
 Collection<RepositoryItemMetadata> getContent()
           
 String getId()
           
 RepositoryItemMetadata getItemMetadata(List<String> path)
           
 String getName()
           
 int hashCode()
           
 boolean removeItemMetadata(List<String> path)
           
 void setContent(Collection<RepositoryItemMetadata> content)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class org.jboss.system.server.profileservice.repository.clustered.metadata.AbstractSortedMetadataContainer
getContainedMetadata, getContainedMetadataIds, getExposedCollection
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepositoryRootMetadata

public RepositoryRootMetadata()
Constructor for XML parser.


RepositoryRootMetadata

public RepositoryRootMetadata(String name)
Create a new RepositoryRootMetadata with the given name.

Parameters:
name - the name. Cannot be null
Throws:
IllegalArgumentException - if name is null

RepositoryRootMetadata

public RepositoryRootMetadata(RepositoryRootMetadata toCopy)
Copy constructor.

Parameters:
toCopy - the item to copy
Throws:
NullPointerException - if toCopy is null
Method Detail

getId

public String getId()
Specified by:
getId in interface Identifiable<String>

getName

public String getName()

setName

public void setName(String name)

getContent

public Collection<RepositoryItemMetadata> getContent()

setContent

public void setContent(Collection<RepositoryItemMetadata> content)

getItemMetadata

public RepositoryItemMetadata getItemMetadata(List<String> path)

addItemMetadata

public void addItemMetadata(RepositoryItemMetadata md)

removeItemMetadata

public boolean removeItemMetadata(List<String> path)

compareTo

public int compareTo(RepositoryRootMetadata other)
Specified by:
compareTo in interface Comparable<RepositoryRootMetadata>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.