Class GitMetadataImpl
- java.lang.Object
-
- org.guvnor.structure.repositories.impl.GitMetadataImpl
-
- All Implemented Interfaces:
GitMetadata
@Portable public class GitMetadataImpl extends Object implements GitMetadata
Represents information about a repository. It contains the origin name the forks it has, the repository name.
-
-
Constructor Summary
Constructors Constructor Description GitMetadataImpl(String name)GitMetadataImpl(String name, String origin)GitMetadataImpl(String name, String origin, List<String> forks)GitMetadataImpl(String name, List<String> forks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getForks()Returns the list of forks names it hasStringgetName()Returns repository nameStringgetOrigin()The name of the its origin repository
-
-
-
Constructor Detail
-
GitMetadataImpl
public GitMetadataImpl(String name)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:GitMetadataReturns repository name- Specified by:
getNamein interfaceGitMetadata- Returns:
- the repository name
-
getForks
public List<String> getForks()
Description copied from interface:GitMetadataReturns the list of forks names it has- Specified by:
getForksin interfaceGitMetadata- Returns:
- the list of forks names
-
getOrigin
public String getOrigin()
Description copied from interface:GitMetadataThe name of the its origin repository- Specified by:
getOriginin interfaceGitMetadata- Returns:
-
-