P - the type of the parent/owner namepublic class NameImpl<P extends Name<?>> extends Object implements Name<P>
| Modifier and Type | Field and Description |
|---|---|
static Name<?> |
NO_MAP_NAME
A common constant of "no name" and "stop mapping", as null is not name acceptable value
|
protected static PrintModelElement |
PRINT_MODEL_ELEMENT |
METAMODEL_PATH_SEPARATOR, METAMODEL_PATH_SEPARATOR_PARSE| Modifier | Constructor and Description |
|---|---|
protected |
NameImpl(P owner,
String name)
Construct a name in the context of the owner name
|
protected |
NameImpl(String name)
Construct root name
|
| Modifier and Type | Method and Description |
|---|---|
Name<P> |
constructName(P parent,
String name) |
ConstructProcedure<javax.jmi.reflect.RefAssociationLink> |
constructNoTransfromation() |
static Name |
constructQualifiedElementName(javax.jmi.model.ModelElement metaObject) |
static ClassName |
constructQualifiedMetaObjectName(javax.jmi.reflect.RefObject modelElement) |
ConstructProcedure<?> |
constructTransfromation()
Override in subclasses
|
boolean |
equals(Object obj) |
String |
getName() |
P |
getOwner() |
int |
hashCode() |
boolean |
isEmpty() |
static Name |
parseQualifiedName(String qualifiedName) |
String |
toString() |
public static final Name<?> NO_MAP_NAME
protected static final PrintModelElement PRINT_MODEL_ELEMENT
public static ClassName constructQualifiedMetaObjectName(javax.jmi.reflect.RefObject modelElement)
modelElement - non-null model elementpublic static Name constructQualifiedElementName(javax.jmi.model.ModelElement metaObject)
metaObject - non-null MOF objectpublic final boolean isEmpty()
public final int hashCode()
hashCode in class ObjectObject.hashCode()public final boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public final P getOwner()
getOwner in interface Name<P extends Name<?>>Name.getOwner()public final String getName()
getName in interface Name<P extends Name<?>>Name.getName()public static Name parseQualifiedName(String qualifiedName)
parseQualifiedName in interface Name<P extends Name<?>>qualifiedName - not nullpublic Name<P> constructName(P parent, String name)
constructName in interface Name<P extends Name<?>>Name.constructName(net.mdatools.modelant.core.api.name.Name, java.lang.String)public final ConstructProcedure<javax.jmi.reflect.RefAssociationLink> constructNoTransfromation()
constructNoTransfromation in interface Name<P extends Name<?>>Name.constructNoTransfromation()public ConstructProcedure<?> constructTransfromation()
constructTransfromation in interface Name<P extends Name<?>>Name.constructTransfromation()Copyright © 2001–2018 MDA Tools. All rights reserved.