Package ru.curs.celesta.score
Class AbstractScore.ScoreBuilder<T extends AbstractScore>
- java.lang.Object
-
- ru.curs.celesta.score.AbstractScore.ScoreBuilder<T>
-
- Type Parameters:
T
-
- Enclosing class:
- AbstractScore
public static final class AbstractScore.ScoreBuilder<T extends AbstractScore> extends Object
Score builder for subclasses ofAbstractScore
.
-
-
Constructor Summary
Constructors Constructor Description ScoreBuilder(Class<T> scoreClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description T
build()
Builds the score.AbstractScore.ScoreBuilder<T>
path(String path)
Deprecated.UsescoreDiscovery(ScoreDiscovery)
explicitly.AbstractScore.ScoreBuilder<T>
scoreDiscovery(ScoreDiscovery scoreDiscovery)
Sets score discovery.
-
-
-
Method Detail
-
path
@Deprecated public AbstractScore.ScoreBuilder<T> path(String path)
Deprecated.UsescoreDiscovery(ScoreDiscovery)
explicitly.Sets score path.- Parameters:
path
- score path
-
scoreDiscovery
public AbstractScore.ScoreBuilder<T> scoreDiscovery(ScoreDiscovery scoreDiscovery)
Sets score discovery.- Parameters:
scoreDiscovery
- score discovery
-
build
public T build() throws ParseException
Builds the score.- Throws:
ParseException
- when score parsing fails
-
-