public abstract class ModelTargetImpl extends Object implements ModelTarget
ModelTarget.ModelTargetType| Modifier and Type | Field and Description |
|---|---|
protected static oracle.fmwplatform.util.logging.PlatformLogger |
LOGGER |
ALL_NAMES_WILDCARD, ID_PREFIX, NAME_PREFIX, VALIDATE_MODEL_PROPERTY| Constructor and Description |
|---|
ModelTargetImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
abstract <T> T |
getContainerFromModel(EnvironmentModel model)
Return the model object of the target container.
|
abstract String |
getContainerName()
Return the name (or id) of the target's container.
|
abstract ModelTarget.ModelTargetType |
getContainerType()
Return the type of the target's container.
|
protected Domain |
getDomainById(String name,
EnvironmentModel model) |
protected Domain |
getDomainByName(String name,
EnvironmentModel model) |
protected NodeManager |
getNodeManagerByName(String name,
EnvironmentModel model) |
<T> T |
getSingleTargetFromModel(EnvironmentModel model)
Return a single model object which should be targeted.
|
abstract String |
getTargetName()
Return the name (or id) of the target object.
|
abstract <T> List<T> |
getTargetsFromModel(EnvironmentModel model)
Return a list of model objects which should be targeted.
|
abstract ModelTarget.ModelTargetType |
getTargetType()
Return the type of the target.
|
int |
hashCode() |
boolean |
isAllNamesWildcard(String name)
Examine the passed name and determine if it is a wildcard
representing all names for the type.
|
protected boolean |
isTargetId(String name) |
protected boolean |
isTargetName(String name) |
protected String |
stripNamePrefix(String name) |
String |
toCompactString()
Returns a compact string representation of the object in JSON format.
|
static String |
toCompactString(List<ModelTarget> targets)
Returns a compact string representation of the objects in JSON format.
|
String |
toString() |
void |
validate(oracle.fmwplatform.util.validation.Validate validate)
Children may override this to provide type specific validation
|
public void validate(oracle.fmwplatform.util.validation.Validate validate)
validate in interface oracle.fmwplatform.util.validation.ValidationParticipantvalidate - the validate object containing configuration
and a list of messages to be appendedpublic abstract String getTargetName()
ModelTargetgetTargetName in interface ModelTargetpublic abstract String getContainerName()
ModelTargetgetContainerName in interface ModelTargetpublic abstract ModelTarget.ModelTargetType getTargetType()
ModelTargetgetTargetType in interface ModelTargetpublic abstract ModelTarget.ModelTargetType getContainerType()
ModelTargetgetContainerType in interface ModelTargetpublic boolean isAllNamesWildcard(String name)
ModelTargetisAllNamesWildcard in interface ModelTargetname - the name to be examined.public abstract <T> List<T> getTargetsFromModel(EnvironmentModel model) throws FMWEnvSpecException
ModelTargetgetTargetsFromModel in interface ModelTargetT - type derived by compiler from the assignment statement.model - the environment model.FMWEnvSpecException - if an error occurs.public abstract <T> T getContainerFromModel(EnvironmentModel model) throws FMWEnvSpecException
ModelTargetgetContainerFromModel in interface ModelTargetT - type derived by compiler from the assignment statement.model - the environment model.FMWEnvSpecException - if an error occurs.public <T> T getSingleTargetFromModel(EnvironmentModel model) throws FMWEnvSpecException
ModelTargetgetSingleTargetFromModel in interface ModelTargetT - type derived by compiler from the assignment statement.model - the environment model.FMWEnvSpecException - if an error occurs.public String toCompactString()
toCompactString in interface ModelTargetpublic static String toCompactString(List<ModelTarget> targets)
targets - the list of targetsprotected boolean isTargetId(String name)
protected boolean isTargetName(String name)
protected Domain getDomainById(String name, EnvironmentModel model)
protected Domain getDomainByName(String name, EnvironmentModel model) throws FMWEnvSpecException
FMWEnvSpecExceptionprotected NodeManager getNodeManagerByName(String name, EnvironmentModel model) throws FMWEnvSpecException
FMWEnvSpecException