
@Generated(value="org.jomc.tools.SourceFileProcessor 1.6", comments="See http://www.jomc.org/jomc/1.6/jomc-tools-1.6") public class RuntimeSpecification extends Specification implements RuntimeModelObject
Specification.
any, classDeclaration, clazz, identifier, multiplicity, properties, scope, vendor, versionauthors, createDate, deprecated, documentation, MODEL_PUBLIC_ID, modelVersion| Constructor and Description |
|---|
RuntimeSpecification()
Creates a new
RuntimeSpecification instance. |
RuntimeSpecification(Specification specification)
Creates a new
RuntimeSpecification instance by deeply copying a given Specification instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears shared runtime state.
|
void |
gc()
Handles shared runtime state.
|
Class<?> |
getJavaClass(ClassLoader classLoader)
Gets the Java class of the specification for a given class loader.
|
JavaTypeName |
getJavaTypeName()
Gets the Java type name of the type referenced by the specification.
|
clone, getAny, getAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getClazz, getIdentifier, getMultiplicity, getProperties, getScope, getVendor, getVersion, isClassDeclaration, setClassDeclaration, setClazz, setIdentifier, setMultiplicity, setProperties, setScope, setVendor, setVersiongetAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getAuthors, getCreateDate, getDocumentation, getModelVersion, isDeprecated, setAuthors, setCreateDate, setDeprecated, setDocumentation, setModelVersionpublic RuntimeSpecification(Specification specification)
RuntimeSpecification instance by deeply copying a given Specification instance.specification - The instance to copy.NullPointerException - if specification is null.@Generated(value="org.jomc.tools.SourceFileProcessor 1.6", comments="See http://www.jomc.org/jomc/1.6/jomc-tools-1.6") public RuntimeSpecification()
RuntimeSpecification instance.public Class<?> getJavaClass(ClassLoader classLoader) throws ModelObjectException, ClassNotFoundException
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method RuntimeModelObjects.clear() must be used to synchronize the state of the
internal cache with the state of the class loader, should the state of the class loader change.
getJavaClass in class SpecificationclassLoader - The class loader to get the Java class from or null, to get the Java class from the
platform's bootstrap class loader.null, if the specification does not declare a class.ClassNotFoundException - if the Java class is not found.ModelObjectException - if parsing the name of the referenced type fails.Specification.getClazz(),
RuntimeModelObjects.clear()public JavaTypeName getJavaTypeName() throws ModelObjectException
This method queries an internal cache for a result object to return. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear() must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getJavaTypeName in class Specificationnull, if the specification does
not reference a type.ModelObjectException - if compiling the name of the referenced type to a JavaTypeName fails.getJavaTypeName(),
clear()public void gc()
RuntimeModelObjectgc in interface RuntimeModelObjectpublic void clear()
RuntimeModelObjectclear in interface RuntimeModelObjectCopyright © 2005–2014 The JOMC Project. All rights reserved.