org.jboss.system.server.profileservice.repository.clustered.metadata
Class RepositoryRootMetadata
java.lang.Object
org.jboss.system.server.profileservice.repository.clustered.metadata.AbstractSortedMetadataContainer<List<String>,RepositoryItemMetadata>
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
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
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.