DEF - public class DMODefinitionSet<DEF extends DSDefinitionDMO> extends Object
| Constructor and Description |
|---|
DMODefinitionSet()
Constructs a new global definition set.
|
DMODefinitionSet(String sn)
Constructs a new global definition set.
|
DMODefinitionSet(String cn,
DMODefinitionSet<DSDefinitionDMO> gs)
Constructs a new definition set.
|
DMODefinitionSet(String cn,
DMODefinitionSet<DSDefinitionDMO> gs,
DMODefinitionSet<?> derivedFrom)
Constructs a new definition set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(DEF def)
Adds the specified definition.
|
String |
className() |
static void |
debug(boolean f) |
void |
delete(DEF def)
Deletes the specified definition from all maps.
|
void |
delete(DotName dn)
Deletes the specified object from this definition set.
|
protected void |
deleteFromBase(DSDefinitionDMO dsd) |
String |
getAllDotNames() |
DEF |
getDefinition(DotName name) |
DEF |
getDefinition(String name)
Attempts to return a definition based on its name.
|
DEF |
getDefinitionByNameAndType(DotName dn)
Attempts to return a definition based on the defname.type form of its name.
|
int |
getLongestName() |
int |
size() |
String |
summary() |
Collection<DEF> |
values() |
public DMODefinitionSet()
public DMODefinitionSet(String sn)
sn - the set name - so that we can see the name of this set when debuggingpublic DMODefinitionSet(String cn, DMODefinitionSet<DSDefinitionDMO> gs)
cn - the name of the class of definition being stored in this definition setgs - the global definition setpublic DMODefinitionSet(String cn, DMODefinitionSet<DSDefinitionDMO> gs, DMODefinitionSet<?> derivedFrom)
cn - the name of the class of definition being stored in this definition setgs - the global definition setderivedFrom - definition set for class from which we're derivedpublic static void debug(boolean f)
public String className()
public void add(DEF def)
def - the definition to be added.public void delete(DotName dn) throws Exception
dn - the fully qualified name of a definition.Exception - if the object deosn't exist or is of the wrong class.protected void deleteFromBase(DSDefinitionDMO dsd) throws Exception
Exceptionpublic void delete(DEF def) throws Exception
def - the definition to be deleted.Exceptionpublic int size()
public int getLongestName()
public DEF getDefinition(DotName name)
name - the name of the object you're looking forpublic Collection<DEF> values()
public DEF getDefinition(String name) throws DmcNameClashException, DmcValueException
name - the name of the definition you're looking forDmcNameClashException - if there's more than one definition with the specified
name, we throw an exceptionDmcValueExceptionpublic DEF getDefinitionByNameAndType(DotName dn) throws DmcNameClashException
dn - the defname.type form of a definition nameDmcNameClashException - DmcNameClashException if there's more than one definition with the specified
name, we throw an exceptionDmcValueExceptionpublic String getAllDotNames()
public String summary()
Copyright © 2023. All rights reserved.