public class ParamDef extends java.lang.Object implements AccessorParameterDefinition
TYPE_ACCESSOR, TYPE_ATTRIBUTE, TYPE_CRITERIA, TYPE_CRITERIA_ITEM, TYPE_CRITERIA_OPERATOR, TYPE_CRITERIA_ROW, TYPE_DATACONTROL, TYPE_DEFINITION, TYPE_DEFINITIONCONTEXT, TYPE_NAMED, TYPE_OPERATION, TYPE_OPERATIONRETURN, TYPE_PARAMETER, TYPE_STRUCTURE, TYPE_VARIABLE| Constructor and Description |
|---|
ParamDef(java.lang.String name,
OperationDefinition parent,
java.lang.String javaType,
java.lang.String elementJavaType)
Creates a new instance of a collection of scalar type.
|
ParamDef(java.lang.String name,
OperationDefinition parent,
java.lang.String javaType,
java.lang.String elementName,
java.lang.String elementJavaType)
Creates a new instance of a collection of scalar type.
|
ParamDef(java.lang.String name,
java.lang.String javaType,
OperationDefinition parent,
boolean isCollection)
Creates a new instance of simple type.
|
ParamDef(java.lang.String name,
StructureDefinition def,
OperationDefinition parent,
boolean isCollection)
Creates a complex paramter.
|
ParamDef(java.lang.String name,
StructureDefinition def,
OperationDefinition parent,
boolean isCollection,
boolean isScalarCollection)
Creates a complex paramter.
|
| Modifier and Type | Method and Description |
|---|---|
StructureDefinition |
getCollectionStructure()
Retrieves the metadata of the collection itself.
|
DataControlDefinition |
getDataControlDefinition()
Retrieves the DataControlDefinition that this Variable belongs to.
|
Definition |
getDefinitionParent()
Returns the parent of this metadata definition, which is the Definition
that contains this Definition.
|
int |
getDefinitionType()
Retrieves the type of this definition.
|
java.lang.String |
getFullName()
Returns the full name of this Definition, which includes the name of any parent
objects.
|
java.lang.String |
getJavaTypeString()
Retrieves the type of the variable.
|
java.lang.String |
getName()
Returns the name of this Definition.
|
AccessorDefinition |
getParentAccessor()
Retrieves the AccessorDefinition of the parent accessor.
|
java.util.Hashtable |
getProperties()
Gets the table of properties.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Retrieves the value of a property with the given name.
|
java.lang.String |
getSourceTypeString()
Returns the actual java type of the attribute in the data source.
|
StructureDefinition |
getStructure()
Retrieves the metadata of the elements that the accessor collection contains.
|
boolean |
isAccessor()
Whether the parameter definition is an accessor.
|
boolean |
isCollection()
Since an accessor can return a structured object (or a
collection).
|
boolean |
isKey()
Finds out whether this attribute is the primary key of the row.
|
boolean |
isReadOnly()
Finds out whether this attribute is read-only or is updateable.
|
boolean |
isScalarCollection()
Returns true if the accessor returns a collection of scalars.
|
void |
setParent(OperationDefinition parent)
Sets a parent to this definition.
|
void |
setProperty(java.lang.String name,
java.lang.Object val) |
public ParamDef(java.lang.String name,
java.lang.String javaType,
OperationDefinition parent,
boolean isCollection)
name - name of the parameter.javaType - java type of the parameter.parent - the parent definition of this object.isCollection - true if this parameter is a collectionpublic ParamDef(java.lang.String name,
OperationDefinition parent,
java.lang.String javaType,
java.lang.String elementJavaType)
name - name of the parameter.parent - the parent definition of this object.javaType - java type of the parameter.elementJavaType - java type of each collection element.public ParamDef(java.lang.String name,
OperationDefinition parent,
java.lang.String javaType,
java.lang.String elementName,
java.lang.String elementJavaType)
name - name of the parameter.parent - the parent definition of this object.javaType - java type of the parameter.elementName - the name of element in the collection.elementJavaType - java type of each collection element.public ParamDef(java.lang.String name,
StructureDefinition def,
OperationDefinition parent,
boolean isCollection)
name - name of the parameter.def - the complex definition of this paramter.parent - the parent definition of this object.isCollection - true if this parameter is a collectionpublic ParamDef(java.lang.String name,
StructureDefinition def,
OperationDefinition parent,
boolean isCollection,
boolean isScalarCollection)
name - name of the parameter.def - the complex definition of this paramter.parent - the parent definition of this object.isCollection - true if this parameter is a collectionisScalarCollection - indicates if the accessor is a collection of scalars.public final java.lang.String getName()
NamedDefinitiongetName in interface NamedDefinitionpublic final Definition getDefinitionParent()
NamedDefinitiongetDefinitionParent in interface NamedDefinitionpublic final java.lang.String getFullName()
NamedDefinitiongetFullName in interface NamedDefinitionpublic java.lang.Object getProperty(java.lang.String propertyName)
NamedDefinitiongetProperty in interface NamedDefinitionpropertyName - Name of the property to be retrieved.public java.util.Hashtable getProperties()
NamedDefinitiongetProperties in interface NamedDefinitionpublic final java.lang.String getJavaTypeString()
VariableDefinitiongetJavaTypeString in interface VariableDefinitionpublic DataControlDefinition getDataControlDefinition()
VariableDefinitiongetDataControlDefinition in interface VariableDefinitionpublic int getDefinitionType()
DefinitiongetDefinitionType in interface Definitionpublic final boolean isAccessor()
ParameterDefinitionisAccessor in interface ParameterDefinitionpublic final StructureDefinition getStructure()
AccessorDefinitiongetStructure in interface AccessorDefinitionpublic final boolean isCollection()
AccessorDefinitionisCollection in interface AccessorDefinitionpublic boolean isScalarCollection()
AccessorDefinitionisScalarCollection in interface AccessorDefinitionpublic void setParent(OperationDefinition parent)
public boolean isReadOnly()
AttributeDefinitionisReadOnly in interface AttributeDefinitionpublic boolean isKey()
AttributeDefinitionisKey in interface AttributeDefinitionpublic java.lang.String getSourceTypeString()
AttributeDefinitiongetSourceTypeString in interface AttributeDefinitionpublic StructureDefinition getCollectionStructure()
AccessorDefinitiongetCollectionStructure in interface AccessorDefinitionpublic AccessorDefinition getParentAccessor()
AccessorDefinitiongetParentAccessor in interface AccessorDefinitionpublic void setProperty(java.lang.String name,
java.lang.Object val)