org.eclipse.uml2.uml
Interface AttributeOwner

All Known Subinterfaces:
Activity, Artifact, AssociationClass, Behavior, Class, Collaboration, Component, DataType, DeploymentSpecification, Device, EncapsulatedClassifier, Enumeration, ExecutionEnvironment, FunctionBehavior, Interaction, Interface, Node, OpaqueBehavior, PrimitiveType, ProtocolStateMachine, Signal, StateMachine, Stereotype, StructuredClassifier

public interface AttributeOwner

Common protocol for classifiers that own attributes.

Since:
5.0

Method Summary
 Property createOwnedAttribute(java.lang.String name, Type type)
          Creates a new Property as an owned attribute of this classifier.
 Property createOwnedAttribute(java.lang.String name, Type type, org.eclipse.emf.ecore.EClass eClass)
          Creates a new property as an owned attribute of this classifier.
 Property getOwnedAttribute(java.lang.String name, Type type)
          Finds the first owned attribute that matches the given name and/or type.
 Property getOwnedAttribute(java.lang.String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
          Finds the first owned attribute that matches the given name (optionally irrespective of case) and/or type.
 org.eclipse.emf.common.util.EList<Property> getOwnedAttributes()
          Obtains the attributes owned by this classifier.
 

Method Detail

getOwnedAttributes

org.eclipse.emf.common.util.EList<Property> getOwnedAttributes()
Obtains the attributes owned by this classifier.

Returns:
my owned attributes

createOwnedAttribute

Property createOwnedAttribute(java.lang.String name,
                              Type type)
Creates a new Property as an owned attribute of this classifier.

Parameters:
name - the name of the new attribute (may be null)
type - the type of the new attribute (may be null)
Returns:
the new owned attribute
See Also:
createOwnedAttribute(String, Type, EClass), getOwnedAttribute(String, Type)

createOwnedAttribute

Property createOwnedAttribute(java.lang.String name,
                              Type type,
                              org.eclipse.emf.ecore.EClass eClass)
Creates a new property as an owned attribute of this classifier.

Parameters:
name - the name of the new attribute (may be null)
type - the type of the new attribute (may be null)
eClass - the Ecore metaclass of the attribute to create
Returns:
the new owned attribute
See Also:
createOwnedAttribute(String, Type), getOwnedAttribute(String, Type, boolean, EClass, boolean)

getOwnedAttribute

Property getOwnedAttribute(java.lang.String name,
                           Type type)
Finds the first owned attribute that matches the given name and/or type.

Parameters:
name - the attribute name to match, or to match any attribute name
type - the attribute type to match, or to match any attribute type
Returns:
any matching attribute, or null if not found
See Also:
getOwnedAttribute(String, Type, boolean, EClass, boolean)

getOwnedAttribute

Property getOwnedAttribute(java.lang.String name,
                           Type type,
                           boolean ignoreCase,
                           org.eclipse.emf.ecore.EClass eClass,
                           boolean createOnDemand)
Finds the first owned attribute that matches the given name (optionally irrespective of case) and/or type.

Parameters:
name - the attribute name to match, or to match any attribute name
type - the attribute type to match, or to match any attribute type
ignoreCase - whether to match names case-insensitively
eClass - the Ecore metaclass of attribute to match, or null to match any kind of attribute
createOnDemand - whether to create the owned attribute and return it if an existing match is not found
Returns:
any matching attribute, or null if not found and createOnDemand is false
See Also:
getOwnedAttribute(String, Type)

Copyright 2003, 2014 IBM Corporation, CEA, and others.
All Rights Reserved.