Skip to content

Commit

Permalink
Implemented model stubs.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-wyluda committed Jul 5, 2013
1 parent 9725772 commit 843a047
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,50 @@
*/
public class GradleDependencyImpl implements GradleDependency
{
private final String name;
private final String group;
private final String version;
private final GradleDependencyConfiguration configuration;
private final String configurationName;

public GradleDependencyImpl(String name, String group, String version, GradleDependencyConfiguration configuration,
String configurationName)
{
this.name = name;
this.group = group;
this.version = version;
this.configuration = configuration;
this.configurationName = configurationName;
}

@Override
public String getName()
{
// TODO Auto-generated method stub
return null;
return name;
}

@Override
public String getGroup()
{
// TODO Auto-generated method stub
return null;
return group;
}

@Override
public String getVersion()
{
// TODO Auto-generated method stub
return null;
return version;
}

@Override
public GradleDependencyConfiguration getConfiguration()
{
// TODO Auto-generated method stub
return null;
return configuration;
}

@Override
public String getConfigurationName()
{
// TODO Auto-generated method stub
return null;
return configurationName;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,24 @@
*/
public class GradlePluginImpl implements GradlePlugin
{
private final String clazz;
private final GradlePluginType type;

public GradlePluginImpl(String clazz, GradlePluginType type)
{
this.clazz = clazz;
this.type = type;
}

@Override
public String getClazz()
{
// TODO Auto-generated method stub
return null;
return clazz;
}

@Override
public GradlePluginType getType()
{
// TODO Auto-generated method stub
return null;
return type;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,33 @@
*/
public class GradleProfileImpl implements GradleProfile
{
private final String name;
private final GradleModel model;
private final FileResource<?> profileResource;

public GradleProfileImpl(String name, GradleModel model, FileResource<?> profileResource)
{
this.name = name;
this.model = model;
this.profileResource = profileResource;
}

@Override
public String getName()
{
// TODO Auto-generated method stub
return null;
return name;
}

@Override
public GradleModel getModel()
{
// TODO Auto-generated method stub
return null;
return model;
}

@Override
public FileResource<?> getProfileResource()
{
// TODO Auto-generated method stub
return null;
return profileResource;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,24 @@
*/
public class GradleRepositoryImpl implements GradleRepository
{
private final String name;
private final String url;

public GradleRepositoryImpl(String name, String url)
{
this.name = name;
this.url = url;
}

@Override
public String getName()
{
// TODO Auto-generated method stub
return null;
return name;
}

@Override
public String getURL()
{
// TODO Auto-generated method stub
return null;
return url;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,24 @@
*/
public class GradleTaskImpl implements GradleTask
{
private final String name;
private final Set<GradleTask> dependsOn;

public GradleTaskImpl(String name, Set<GradleTask> dependsOn)
{
this.name = name;
this.dependsOn = dependsOn;
}

@Override
public String getName()
{
// TODO Auto-generated method stub
return null;
return name;
}

@Override
public Set<GradleTask> getDependsOn()
{
// TODO Auto-generated method stub
return null;
return dependsOn;
}

}

0 comments on commit 843a047

Please sign in to comment.