Package ru.curs.celesta.score
Class AbstractScore
- java.lang.Object
-
- ru.curs.celesta.score.AbstractScore
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractScore.ScoreBuilder<T extends AbstractScore>
Score builder for subclasses ofAbstractScore
.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
describeGrains()
Returns a human-readable table with all available grains, their versions, checksums and lengths.Grain
getGrain(String name)
Returns grain by its name.Map<String,Grain>
getGrains()
Returns an unmodifiable grain set.abstract IdentifierParser
getIdentifierParser()
Returns identifier parser.abstract String
getSysSchemaName()
Returns system schema name.
-
-
-
Method Detail
-
getGrain
public Grain getGrain(String name) throws ParseException
Returns grain by its name. In case if the grain name is unknown an exception is thrown.- Parameters:
name
- Grain name.- Throws:
ParseException
- If grain name is unknown to the system.
-
getSysSchemaName
public abstract String getSysSchemaName()
Returns system schema name.
-
getIdentifierParser
public abstract IdentifierParser getIdentifierParser()
Returns identifier parser.
-
describeGrains
public final String describeGrains()
Returns a human-readable table with all available grains, their versions, checksums and lengths.
-
-