public abstract class Definition extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ATTR_DELIM |
protected static GsRandom |
RegDefRand |
protected static String |
SPEC_NAME_DELIM |
protected static String |
SPEC_TERMINATOR |
protected Map |
specMap |
protected String |
specName |
protected String[] |
tokenArr |
protected int |
tokenIndex |
protected static String |
WHITE_SPACE_DELIM |
| Constructor and Description |
|---|
Definition() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
getDefinition(Long hydraSpecParam,
String specName)
Fill in this instance of Definition based on the spec named
by
specName. |
protected String |
getNextToken()
Return the next token
|
protected Boolean |
getTokenBoolean()
Return a Boolean (or null) from the next token or list of tokens
|
protected Class |
getTokenClass()
Return a Class (or null) from the next token or list of tokens
|
protected String |
getTokenEquals()
Get the next tokean and make sure it is an =
|
protected Float |
getTokenFloat()
Return a Float (or null) from the next token or list of tokens
|
protected String |
getTokenFromList()
Get the next 1 or more tokens and randomly choose one.
|
protected Integer |
getTokenInteger()
Return an Integer (or null) from the next token or list of tokens
|
protected List |
getTokenList()
Get the next 1 or more tokens and return as a List.
|
protected Long |
getTokenLong()
Return a Long (or null) from the next token or list of tokens
|
protected String |
getTokenString()
Return a String (or null) from the next token or list of tokens
|
protected void |
initializeSpecMap(Long hydraSpecParam)
Initialize the specMap with the spec String read from hydra parameters.
|
protected abstract void |
initializeWithSpec(String specStr) |
protected String |
tokensToString() |
abstract String |
toString() |
protected String specName
protected Map specMap
protected static GsRandom RegDefRand
protected static String SPEC_NAME_DELIM
protected static String WHITE_SPACE_DELIM
protected static String ATTR_DELIM
protected static String SPEC_TERMINATOR
protected String[] tokenArr
protected int tokenIndex
protected abstract void initializeWithSpec(String specStr)
protected void getDefinition(Long hydraSpecParam, String specName)
specName.TestException - if there is no spec named specNameprotected void initializeSpecMap(Long hydraSpecParam)
hydraSpecParam - - the hydra parameter containing attributes specifications.protected String getNextToken()
protected String getTokenEquals()
protected List getTokenList()
protected String getTokenFromList()
protected Boolean getTokenBoolean()
protected String getTokenString()
protected Integer getTokenInteger()
protected Long getTokenLong()
protected Float getTokenFloat()
protected Class getTokenClass()
protected String tokensToString()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.