org.apache.tuscany.sca.policy.impl
Class IntentImpl

java.lang.Object
  extended by org.apache.tuscany.sca.policy.impl.IntentImpl
All Implemented Interfaces:
Intent
Direct Known Subclasses:
ProfileIntentImpl, QualifiedIntentImpl

public class IntentImpl
extends java.lang.Object
implements Intent

Represents a policy intent.


Constructor Summary
protected IntentImpl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 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
 int hashCode()
           
 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntentImpl

protected IntentImpl()
Method Detail

getName

public javax.xml.namespace.QName getName()
Description copied from interface: Intent
Returns the intent name.

Specified by:
getName in interface Intent
Returns:
the intent name

setName

public void setName(javax.xml.namespace.QName name)
Description copied from interface: Intent
Sets the intent name

Specified by:
setName in interface Intent
Parameters:
name - the intent name

getDomain

public java.lang.String getDomain()
Description copied from interface: Intent
Get the intent domain (the root intent name before any qualifiers)

Specified by:
getDomain in interface Intent
Returns:
the domain

getQualifiedNames

public java.lang.String[] getQualifiedNames()
Description copied from interface: Intent
Get the intent qualifiers

Specified by:
getQualifiedNames in interface Intent
Returns:
the domain

getConstrains

public java.util.List<javax.xml.namespace.QName> getConstrains()
Description copied from interface: Intent
Returns the list of SCA constructs that this intent is meant to configure.

Specified by:
getConstrains in interface Intent
Returns:
the list of SCA constructs that this intent is meant to configure

getDescription

public java.lang.String getDescription()
Description copied from interface: Intent
Returns the intent description.

Specified by:
getDescription in interface Intent
Returns:
the intent description

setDescription

public void setDescription(java.lang.String description)
Description copied from interface: Intent
Sets the intent description.

Specified by:
setDescription in interface Intent
Parameters:
description - the intent description

getQualifiedIntents

public java.util.List<Intent> getQualifiedIntents()
Description copied from interface: Intent
Returns the list of children qualified intents.

Specified by:
getQualifiedIntents in interface Intent
Returns:
the list of children qualified intents.

getExcludedIntents

public java.util.List<Intent> getExcludedIntents()
Description copied from interface: Intent
Returns the list of intents which are mutually exclusive with this intent.

Specified by:
getExcludedIntents in interface Intent
Returns:
the list of mutually exclusive intents.

isUnresolved

public boolean isUnresolved()
Description copied from interface: Intent
Returns true if the model element is unresolved.

Specified by:
isUnresolved in interface Intent
Returns:
true if the model element is unresolved.

setUnresolved

public void setUnresolved(boolean unresolved)
Description copied from interface: Intent
Sets whether the model element is unresolved.

Specified by:
setUnresolved in interface Intent
Parameters:
unresolved - whether the model element is unresolved

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object