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