org.apache.tuscany.sca.policy
Interface Intent

All Known Subinterfaces:
ProfileIntent, QualifiedIntent
All Known Implementing Classes:
IntentImpl, ProfileIntentImpl, QualifiedIntentImpl

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.
 java.lang.String getDomain()
          Get the intent domain (the root intent name before any qualifiers)
 java.util.List<Intent> getExcludedIntents()
          Returns the list of intents which are mutually exclusive with this intent.
 javax.xml.namespace.QName getName()
          Returns the intent name.
 java.util.List<Intent> getQualifiedIntents()
          Returns the list of children qualified intents.
 java.lang.String[] getQualifiedNames()
          Get the intent qualifiers
 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

getDomain

java.lang.String getDomain()
Get the intent domain (the root intent name before any qualifiers)

Returns:
the domain

getQualifiedNames

java.lang.String[] getQualifiedNames()
Get the intent qualifiers

Returns:
the domain

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

getExcludedIntents

java.util.List<Intent> getExcludedIntents()
Returns the list of intents which are mutually exclusive with this intent.

Returns:
the list of mutually exclusive intents.

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