|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.model.ModelObject
org.jomc.model.Arguments
org.jomc.ri.model.RuntimeArguments
@Generated(value="org.jomc.tools.SourceFileProcessor 1.2.2", comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2") public class RuntimeArguments
Runtime Arguments
.
Field Summary |
---|
Fields inherited from class org.jomc.model.Arguments |
---|
argument |
Fields inherited from class org.jomc.model.ModelObject |
---|
authors, createDate, deprecated, documentation, MODEL_PUBLIC_ID, modelVersion |
Constructor Summary | |
---|---|
RuntimeArguments()
Creates a new RuntimeArguments instance. |
|
RuntimeArguments(Arguments arguments)
Creates a new RuntimeArguments instance by deeply copying a given Arguments instance. |
Method Summary | |
---|---|
void |
clear()
Clears shared runtime state. |
void |
gc()
Handles shared runtime state. |
Argument |
getArgument(int index)
Gets an argument for a given index from the list of arguments. |
Argument |
getArgument(String name)
Gets an argument for a given name from the list of arguments. |
Methods inherited from class org.jomc.model.Arguments |
---|
clone, getArgument |
Methods inherited from class org.jomc.model.ModelObject |
---|
getAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getAuthors, getCreateDate, getDocumentation, getModelVersion, isDeprecated, setAuthors, setCreateDate, setDeprecated, setDocumentation, setModelVersion |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuntimeArguments(Arguments arguments)
RuntimeArguments
instance by deeply copying a given Arguments
instance.
arguments
- The instance to copy.
NullPointerException
- if arguments
is null
.@Generated(value="org.jomc.tools.SourceFileProcessor 1.2.2", comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2") public RuntimeArguments()
RuntimeArguments
instance.
Method Detail |
---|
public Argument getArgument(String name)
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 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.
getArgument
in class Arguments
name
- The name of the argument to return.
null
, if no such argument is found.
NullPointerException
- if name
is null
.Arguments.getArgument()
,
Argument.getName()
,
clear()
public Argument getArgument(int index)
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 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.
getArgument
in class Arguments
index
- The index of the argument to return.
null
, if no such argument is found.
IndexOutOfBoundsException
- if index
is negative, greater or equal to the size of the list of
arguments.Arguments.getArgument()
,
Argument.getIndex()
,
clear()
public void gc()
RuntimeModelObject
gc
in interface RuntimeModelObject
public void clear()
RuntimeModelObject
clear
in interface RuntimeModelObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |