client/splunk.js
function(props) {
            props = props || {};
            props.owner = props.owner || "";

            this.name           = props.fieldName;
            this.displayName    = props.displayName;
            this.type           = props.type;
            this.multivalued    = props.multivalue;
            this.required       = props.required;
            this.hidden         = props.hidden;
            this.editable       = props.editable;
            this.comment        = props.comment || null;
            this.fieldSearch    = props.fieldSearch;
            this.lineage        = props.owner.split(".");
            this.owner          = this.lineage[this.lineage.length - 1];
        }
function(props) {
            props = props || {};
            props.owner = props.owner || "";

            this.name           = props.fieldName;
            this.displayName    = props.displayName;
            this.type           = props.type;
            this.multivalued    = props.multivalue;
            this.required       = props.required;
            this.hidden         = props.hidden;
            this.editable       = props.editable;
            this.comment        = props.comment || null;
            this.fieldSearch    = props.fieldSearch;
            this.lineage        = props.owner.split(".");
            this.owner          = this.lineage[this.lineage.length - 1];
        }
function ( props ) { props = props || { } ; props . owner = props . owner || "" ; this . name = props . fieldName ; this . displayName = props . displayName ; this . type = props . type ; this . multivalued = props . multivalue ; this . required = props . required ; this . hidden = props . hidden ; this . editable = props . editable ; this . comment = props . comment || null ; this . fieldSearch = props . fieldSearch ; this . lineage = props . owner . split ( "." ) ; this . owner = this . lineage [ this . lineage . length - 1 ] ; }
Constructor for a data model field.
SDK users are not expected to invoke this constructor directly.

@constructor
@param {Object} props A dictionary of properties to set:
- `fieldName` (_string_): The name of this field.
- `displayName` (_string_): A human readable name for this field.
- `type` (_string_): The type of this field, see valid types in class docs.
- `multivalue` (_boolean_): Whether this field is multivalued.
- `required` (_boolean_): Whether this field is required on events in the object
- `hidden` (_boolean_): Whether this field should be displayed in a data model UI.
- `editable` (_boolean_): Whether this field can be edited.
- `comment` (_string_): A comment for this field, or `null` if there isn't one.
- `fieldSearch` (_string_): A search query fragment for this field.
- `lineage` (_string_): The lineage of the data model object on which this field
is defined, items are delimited by a dot. This is converted into an array of
strings upon construction.

@method splunkjs.Service.DataModelField
Constructor for a data model field . SDK users are not expected to invoke this constructor directly .