org.apache.tuscany.sca.policy
Interface Intent


public interface Intent

Represents a policy intent. See the Policy Framework specification for a description of this element.


Method Summary
 java.util.List<javax.xml.namespace.QName> getConstrains()
          Returns the list of SCA constructs that this intent is meant to configure.
 java.lang.String getDescription()
          Returns the intent description.
 javax.xml.namespace.QName getName()
          Returns the intent name.
 java.util.List<Operation> getOperations()
          Returns the list of operations that this intent applies to.
 java.util.List<Intent> getQualifiedIntents()
          Returns the list of children qualified intents.
 java.util.List<Intent> getRequiredIntents()
          Returns the list of required intents.
 boolean isUnresolved()
          Returns true if the model element is unresolved.
 void setDescription(java.lang.String description)
          Sets the intent description.
 void setName(javax.xml.namespace.QName name)
          Sets the intent name
 void setUnresolved(boolean unresolved)
          Sets whether the model element is unresolved.
 

Method Detail

getName

javax.xml.namespace.QName getName()
Returns the intent name.

Returns:
the intent name

setName

void setName(javax.xml.namespace.QName name)
Sets the intent name

Parameters:
name - the intent name

getOperations

java.util.List<Operation> getOperations()
Returns the list of operations that this intent applies to.

Returns:

getConstrains

java.util.List<javax.xml.namespace.QName> getConstrains()
Returns the list of SCA constructs that this intent is meant to configure.

Returns:
the list of SCA constructs that this intent is meant to configure

getRequiredIntents

java.util.List<Intent> getRequiredIntents()
Returns the list of required intents.

Returns:

getQualifiedIntents

java.util.List<Intent> getQualifiedIntents()
Returns the list of children qualified intents.

Returns:
the list of children qualified intents.

getDescription

java.lang.String getDescription()
Returns the intent description.

Returns:
the intent description

setDescription

void setDescription(java.lang.String description)
Sets the intent description.

Parameters:
description - the intent description

isUnresolved

boolean isUnresolved()
Returns true if the model element is unresolved.

Returns:
true if the model element is unresolved.

setUnresolved

void setUnresolved(boolean unresolved)
Sets whether the model element is unresolved.

Parameters:
unresolved - whether the model element is unresolved