GeoEco.Metadata.ArgumentMetadata
- class GeoEco.Metadata.ArgumentMetadata(name, methodMetadata, typeMetadata, description=None, direction='Input', initializeToArcGISGeoprocessorVariable=None, arcGISDisplayName=None, arcGISCategory=None, arcGISParameterDependencies=None, dependencies=[])
Bases:
objectMetadata that describes a parameter of a method of a Python class.
- Parameters:
name (
str) – Name of the parameter, as it appears in the method’s signature. Minimum length꞉ 1.methodMetadata (
MethodMetadata) – TheMethodMetadatafor the method.typeMetadata (
TypeMetadata) – ATypeMetadatathat describes the data type and allowed values of this parameter.description (
str, optional) – The parameter’s description, ideally one line of plain text (but reStructuredText is OK). Put long details inMethodMetadata.LongDescription. Minimum length꞉ 1.direction (
str, optional) – Direction of the parameter, when the method is exposed as an ArcGIS geoprocessing tool (ignored otherwise). Allowed values꞉'Input','Output'. Case sensitive.initializeToArcGISGeoprocessorVariable (
str, optional) – The parameter value should be obtained from this geoprocessor variable, rather than from the user as a tool parameter, when the method is exposed as an ArcGIS geoprocessing tool (ignored otherwise). Minimum length꞉ 1.arcGISDisplayName (
str, optional) – Name of the parameter as it should appear in ArcGIS, when the method is exposed as an ArcGIS geoprocessing tool (ignored otherwise). Minimum length꞉ 1.arcGISCategory (
str, optional) – Category of the parameter as it should appear in ArcGIS, when the method is exposed as an ArcGIS geoprocessing tool (ignored otherwise). Minimum length꞉ 1.arcGISParameterDependencies (
listofstr, optional) –listof names of parameters that this parameter is dependent on (see ArcGIS documentation), when the method is exposed as an ArcGIS geoprocessing tool (ignored otherwise).dependencies (
listofobject, optional) –listofDependencyobjects defining software dependencies that should be checked when the value provided for this parameter is notNonewhen the method is called (ignored otherwise).
- Returns:
New
ArgumentMetadatainstance.- Return type:
Properties
- property ArcGISCategory
(
strorNone) Category of the parameter as it should appear in ArcGIS, when the method is exposed as an ArcGIS geoprocessing tool (ignored otherwise). Minimum length꞉ 1.
- property ArcGISDisplayName
(
strorNone) Name of the parameter as it should appear in ArcGIS, when the method is exposed as an ArcGIS geoprocessing tool (ignored otherwise). Minimum length꞉ 1.
- property ArcGISParameterDependencies
(
listofstrorNone)listof names of parameters that this parameter is dependent on (see ArcGIS documentation), when the method is exposed as an ArcGIS geoprocessing tool (ignored otherwise).
- property Default
(
objectorNone) The default value of the parameter as defined in the method signature, ifHasDefaultis True.Noneotherwise. Read only.
- property Dependencies
(
listofobject)listofDependencyobjects defining software dependencies that should be checked when the value provided for this parameter is notNonewhen the method is called (ignored otherwise).
- property Description
(
strorNone) The parameter’s description, ideally one line of plain text (but reStructuredText is OK). Put long details inMethodMetadata.LongDescription. Minimum length꞉ 1.
- property Direction
(
str) Direction of the parameter, when the method is exposed as an ArcGIS geoprocessing tool (ignored otherwise). Allowed values꞉'Input','Output'. Case sensitive.
- property HasDefault
(
bool) True if the parameter has a default value defined in the method signature. If so, the parameter is optional. Read only.
- property InitializeToArcGISGeoprocessorVariable
(
strorNone) The parameter value should be obtained from this geoprocessor variable, rather than from the user as a tool parameter, when the method is exposed as an ArcGIS geoprocessing tool (ignored otherwise). Minimum length꞉ 1.
- property IsArbitraryArgumentList
(
bool) True if the parameter an arbitrary sequence of positional arguments, traditionally written*argsin the method signature and known in Python as the var-positional parameter. Read only.
- property IsFormalParameter
(
bool) True if the parameter is the default kind of parameter in Python, known in Python as a positional-or-keyword parameter. Read only.
- property IsKeywordArgumentDictionary
(
bool) True if the parameter a dictionary of arbitrarily many keyword arguments, traditionally written**kwargsin the method signature and known in Python as the var-keyword parameter. Read only.
- property Method
(
MethodMetadata) MethodMetadata for the class that contains this method. Read only.
- property Name
(
str) Name of the parameter, as it appears in the method’s signature. Read only. Minimum length꞉ 1.
- property Type
(
TypeMetadata) ATypeMetadatathat describes the data type and allowed values of this parameter.
Methods
Appends the metadata to the specified xml.dom.Node object as child nodes.