|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeOwner
Common protocol for classifiers that own attributes.
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 |
---|
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 create
createOwnedAttribute(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 to match any
attribute nametype
- the attribute type to match, or to match any
attribute type
null
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 to match any
attribute nametype
- the attribute type to match, or 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 found
null
if not found and
createOnDemand
is false
getOwnedAttribute(String, Type)
|
Copyright 2003, 2014 IBM Corporation, CEA, and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |