public interface AttributeOwner
Modifier and Type | Method and Description |
---|---|
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.
|
org.eclipse.emf.common.util.EList<Property> getOwnedAttributes()
Property createOwnedAttribute(java.lang.String name, Type type)
Property
as an owned attribute of this classifier.name
- the name of the new attribute (may be null
)type
- the type of the new attribute (may be null
)createOwnedAttribute(String, Type, EClass)
,
getOwnedAttribute(String, Type)
Property createOwnedAttribute(java.lang.String name, Type type, org.eclipse.emf.ecore.EClass eClass)
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 createcreateOwnedAttribute(String, Type)
,
getOwnedAttribute(String, Type, boolean, EClass, boolean)
Property getOwnedAttribute(java.lang.String name, Type type)
name
and/or type
.name
- the attribute name to match, or null
to match any
attribute nametype
- the attribute type to match, or null
to match any
attribute typenull
if not foundgetOwnedAttribute(String, Type, boolean, EClass, boolean)
Property getOwnedAttribute(java.lang.String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
name
(optionally irrespective of case) and/or type
.name
- the attribute name to match, or null
to match any
attribute nametype
- the attribute type to match, or null
to match any
attribute typeignoreCase
- whether to match names case-insensitivelyeClass
- the Ecore metaclass of attribute to match, or null
to
match any kind of attributecreateOnDemand
- whether to create the owned attribute and return it if an
existing match is not foundnull
if not found and
createOnDemand
is false
getOwnedAttribute(String, Type)