| com.xoetrope.data.pojo.XPojoModelVis com.xoetrope.data.pojo.XPojoMethodArg
XPojoMethodArg | public class XPojoMethodArg extends XPojoModelVis (Code) | | Model of the arguments of the pojos methods. Works only for primitives.
Copyright (c) Xoetrope 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 Xoetrope.
|
ARG_NAME | final public static int ARG_NAME(Code) | | |
ARG_TYPE | final public static int ARG_TYPE(Code) | | |
ARG_TYPEG | final public static int ARG_TYPEG(Code) | | |
ARG_VALUE | final public static int ARG_VALUE(Code) | | |
argIdx | protected int argIdx(Code) | | |
XPojoMethodArg | public XPojoMethodArg(XPojoMethodArgs pc, int i, Class at, String gn, XPropertiesRetriever ar)(Code) | | Full constructor, Creates the new instance of XPojoArg class.
Parameters: idx - argument's position in the list of finder's arguments. Parameters: at - the type of the argument wrapped by this model node. Parameters: gat - the type of the generic type of the argument Parameters: pc - XPojoFinderEx object the argument of which is wrapped Parameters: ac - object being used to obtain value of the argument wrappedby this XPojoFinderArg object |
getArgIdx | public int getArgIdx()(Code) | | Gets the position of this argument in the list of arguments.
position of this argument |
getArgumentType | public Class getArgumentType()(Code) | | Gets the current type of the argument
wrapped by this node
argument type |
getAttribName | public String getAttribName(int idx)(Code) | | Gets the name of the finder argument's attribute
Parameters: idx - the index of the attribute the name of the attribute |
getAttribValue | public String getAttribValue(int idx)(Code) | | Gets the value of the finder argument's attribute
Parameters: idx - the index of the attribute the value of the attribute |
getAttribute | public int getAttribute(String attribName)(Code) | | Returns the index of the attribiteNames array whose value is the same
as the attribName
Parameters: attribName - The name of the attribute we are trying to locate The index of the attributeNames array containg the name |
getBindingAttributes | public Vector getBindingAttributes()(Code) | | Gets the attributes
|
getCaption | public String getCaption()(Code) | | Gets the caption of this object which will appear in
the visualiser tree.
the caption |
getGenericName | public String getGenericName()(Code) | | Gets the name of this argument's type, as it
occurs in the source code.
the name of this argument's type |
getName | public String getName()(Code) | | Gets the name of this attribute
the name of this attribute |
getNumAttributes | public int getNumAttributes()(Code) | | Returns the number of attributes of this model node
3 (type, name, value) |
getNumChildren | public int getNumChildren()(Code) | | Gets the number of children of this model node,
0, since it wrapps only the primitives |
getValue | public Object getValue()(Code) | | Gets the value of the argument
value |
hasValue | public boolean hasValue()(Code) | | Determines wheter the value of this argument has been set.
true if this argument has a value, false otherwise |
isGeneric | public boolean isGeneric()(Code) | | Indicates whether argument wrapped by this model node
was declared in the source code as generic.
true if the argument is generic, falseotherwise |
removeValue | public void removeValue()(Code) | | Removes the value of this argument.
|
restoreArgument | public void restoreArgument()(Code) | | Restores the value of this argument
|
setArgumentType | public void setArgumentType(Class newType)(Code) | | Sets the new type of the underlying argument.
Parameters: newType - the new type to be set |
setAttribValue | public void setAttribValue(int idx, Object value)(Code) | | Sets the value of the attribute. This method is being called
from the visualiser's in order to set the new value of the
wrapped attribute.
Parameters: idx - index of the model's attribute Parameters: value - the new values of the underlaying attribute |
setValue | public void setValue(Object val)(Code) | | Sets the value of the argument
Parameters: val - new value of the wrapped argument |
|
|