public interface ResourceInstanceData
Modifier and Type | Method and Description |
---|---|
ResourceInstanceData |
clone()
Called to create a copy of this object.
|
java.util.Collection<NonQualifiedEnvValue> |
getEnvValues()
Resource providers return any environment dependent values via this call.
|
java.util.Set<Ref> |
getExternalReferences()
Returns a set of Ref object representing the external references found in the given data.
|
java.lang.Object |
getKeyValue(java.lang.String keyName)
Computes the value of the key whose name is given using the data.
|
byte[] |
serialize()
Serialize this object to a byte array.
|
ResourceInstanceData |
setEnvValues(java.util.Collection<EnvValueAction> envValues)
Processes the given collection of environment value actions in the data.
|
ResourceInstanceData |
setExternalReferences(java.util.Map<Ref,Ref> mapping)
Updates references in the data according to the given map and returns the result.
|
void |
validate(Diagnostics diags)
Validates the data and throws exception on validation error
|
java.lang.Object getKeyValue(java.lang.String keyName)
keyName
- name of the key.java.util.Set<Ref> getExternalReferences()
java.util.Collection<NonQualifiedEnvValue> getEnvValues()
ResourceInstanceData setEnvValues(java.util.Collection<EnvValueAction> envValues)
envValues
- collection of environment values to setvoid validate(Diagnostics diags)
diags
- the Diagnostics object to carry the validation errorsResourceInstanceData setExternalReferences(java.util.Map<Ref,Ref> mapping) throws java.lang.Exception
mapping
- mapping from old references to the new onesjava.lang.Exception
- on errorResourceInstanceData clone()
byte[] serialize()