|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.aria.data.DataModel
org.formaria.editor.data.pojo.PojoModelVis
org.formaria.editor.data.pojo.PojoMethodArg
public class PojoMethodArg
DataModel of the arguments of the pojos methods. Works only for primitives.
Copyright (c) Formaria Ltd., 2001-2007, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.
| Field Summary | |
|---|---|
static int |
ARG_NAME
|
static int |
ARG_TYPE
|
static int |
ARG_TYPEG
|
static int |
ARG_VALUE
|
protected int |
argIdx
|
protected java.lang.Class |
argumentType
|
protected java.lang.String |
genericName
|
protected PojoModelEx |
pojoFinder
|
protected PropertiesRetriever |
propertiesRetriever
|
| Fields inherited from class org.formaria.editor.data.pojo.PojoModelVis |
|---|
adapter, ATTRIB_COMBO, ATTRIB_FREETEXT, ATTRIB_NEDITABLE, dataSource, getterSig, hashcode, ID_ATTRIBUTE, idAttrib, NUM_FIXED_ATTRIBUTE, pojo, pojoClass, pojoCollection, pojoGetter, pojoSetter, setterSig, VALUE_ATTRIBUTE, valueAttrib |
| Fields inherited from class org.formaria.aria.data.DataModel |
|---|
parentModel, tagName |
| Constructor Summary | |
|---|---|
PojoMethodArg(PojoMethodArgs pc,
int i,
java.lang.Class at,
java.lang.String gn,
PropertiesRetriever ar)
Full constructor, Creates the new instance of PojoArg class. |
|
| Method Summary | |
|---|---|
int |
getArgIdx()
Gets the position of this argument in the list of arguments. |
java.lang.Class |
getArgumentType()
Gets the current type of the argument wrapped by this node |
java.lang.String |
getAttribName(int idx)
Gets the name of the finder argument's attribute |
int |
getAttribute(java.lang.String attribName)
Returns the index of the attribiteNames array whose value is the same as the attribName |
java.lang.String |
getAttribValue(int idx)
Gets the value of the finder argument's attribute |
java.util.Vector |
getBindingAttributes()
Gets the attributes |
java.lang.String |
getCaption()
Gets the caption of this object which will appear in the visualiser tree. |
java.lang.String |
getGenericName()
Gets the name of this argument's type, as it occurs in the source code. |
java.lang.String |
getName()
Gets the name of this attribute |
int |
getNumAttributes()
Returns the number of attributes of this model node |
int |
getNumChildren()
Gets the number of children of this model node, |
java.lang.Class |
getPojoClass()
|
java.lang.Object |
getValue()
Gets the value of the argument |
boolean |
hasValue()
Determines wheter the value of this argument has been set. |
boolean |
isGeneric()
Indicates whether argument wrapped by this model node was declared in the source code as generic. |
void |
removeValue()
Removes the value of this argument. |
void |
restoreArgument()
Restores the value of this argument |
void |
setArgumentType(java.lang.Class newType)
Sets the new type of the underlying argument. |
void |
setAttribValue(int idx,
java.lang.Object value)
Sets the value of the attribute. |
void |
setValue(java.lang.Object val)
Sets the value of the argument |
| Methods inherited from class org.formaria.editor.data.pojo.PojoModelVis |
|---|
append, append, get, get, getAdapter, getAttribAvailableValues, getAttribRuntime, getAttribType, getAttribValueAsDouble, getAttribValueAsDouble, getAttribValueAsInt, getAttribValueAsString, getBindingPath, getId, getProperties, getValueAsDouble, getValueAsInt, getValueAsString, hashCode, isAttribEditable, isDirty, set, set, setAttribValue, setCaption, setDirty, setId, setPojo, setPojoClass, setPojoGetter, setPojoSetter |
| Methods inherited from class org.formaria.aria.data.DataModel |
|---|
addModelListener, clear, fireModelUpdated, get, getParent, getTagName, hasAutoId, hasAutoId, prefixOutputPath, removeChildren, reset, resetAttributes, setNumAttributes, setNumChildren, setParent, setTagName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ARG_VALUE
public static final int ARG_NAME
public static final int ARG_TYPE
public static final int ARG_TYPEG
protected java.lang.Class argumentType
protected java.lang.String genericName
protected PojoModelEx pojoFinder
protected PropertiesRetriever propertiesRetriever
protected int argIdx
| Constructor Detail |
|---|
public PojoMethodArg(PojoMethodArgs pc,
int i,
java.lang.Class at,
java.lang.String gn,
PropertiesRetriever ar)
idx - argument's position in the list of finder's arguments.at - the type of the argument wrapped by this model node.gat - the type of the generic type of the argumentpc - PojoFinderEx object the argument of which is wrappedac - object being used to obtain value of the argument wrapped
by this PojoFinderArg object| Method Detail |
|---|
public void setArgumentType(java.lang.Class newType)
newType - the new type to be setpublic void restoreArgument()
public boolean hasValue()
public void removeValue()
public java.lang.Class getArgumentType()
public java.lang.String getGenericName()
public java.lang.String getName()
public boolean isGeneric()
public void setValue(java.lang.Object val)
val - new value of the wrapped argumentpublic java.lang.Class getPojoClass()
getPojoClass in class PojoModelVispublic java.lang.Object getValue()
public int getNumChildren()
getNumChildren in class DataModelpublic int getArgIdx()
public void setAttribValue(int idx,
java.lang.Object value)
setAttribValue in class PojoModelVisidx - index of the model's attributevalue - the new values of the underlaying attributepublic int getAttribute(java.lang.String attribName)
getAttribute in class PojoModelVisattribName - The name of the attribute we are trying to locate
public java.lang.String getCaption()
getCaption in interface TreeNodeCaptiongetCaption in class PojoModelVispublic int getNumAttributes()
getNumAttributes in class PojoModelVispublic java.lang.String getAttribName(int idx)
getAttribName in class PojoModelVisidx - the index of the attribute
public java.lang.String getAttribValue(int idx)
getAttribValue in class PojoModelVisidx - the index of the attribute
public java.util.Vector getBindingAttributes()
getBindingAttributes in interface ModelVisgetBindingAttributes in class PojoModelVis
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||