Converts this object to a proper definition.
@return
488026
public FrequencyTableEntry toFrequencyTableEntry()
  {
    FrequencyTableEntry result = new FrequencyTableEntry();
    
    result.setReferencedNode(nr);
    
    if (annotation != null && "tok".equals(annotation))
    {
      result.setType(FrequencyTableEntryType.span);
    }
    else
    {
      result.setType(FrequencyTableEntryType.annotation);
      result.setKey(annotation);
    }
    
    return result;
  }
268969
@JsonValue
	public Object toJsonValue() {
		if (definition != null)
			return definition;
		if (reference != null)
			return reference;
		if (_null != null)
			return _null;
		return null;
	}
730836
def get_definition(self):
        ''''''

        serialized = super(ComplexSchemaItem, self).serialize()
        # Adjust entries in the serialization
        del serialized['definition_name']
        serialized['title'] = self.definition_name

        properties = {}
        required_attr_names = []

        for attr_name in self._attributes:
            attr = getattr(self, attr_name)
            if attr and isinstance(attr, BaseSchemaItem):
                # Remove the attribute entry added by the base serialization
                del serialized[attr_name]
                properties[attr_name] = attr.serialize()
                properties[attr_name]['type'] = attr.__type__
                if attr.required:
                    required_attr_names.append(attr_name)
        if serialized.get('properties') is None:
            serialized['properties'] = {}
        serialized['properties'].update(properties)

        # Assign the required array
        if required_attr_names:
            serialized['required'] = required_attr_names
        return serialized
1087327
public String getDescription() {
        Object[] params = new Object[parameters.length];
        for (int i = 0; i < parameters.length; i++) {
            params[i] = parameters[i];
        }
        return String.format(format, params);
    }
903247
public File getPrototype() {
    final PrecompileDef ref = getRef();
    if (ref != null) {
      return ref.getPrototype();
    }
    return this.prototype;
  }
1042523
private function objectProperty() {
    if ($this->currentType === T_STRING) {
      return $this->mustMatchToken(T_STRING);
    }
    elseif ($this->currentType === '{') {
      return $this->bracesExpr();
    }
    else {
      return $this->indirectReference();
    }
  }
746825
public String toFieldDescriptor() {
        int i;
        StringBuilder result;

        result = new StringBuilder();
        for (i = 0; i < dimensions; i++) {
            result.append('[');
        }
        result.append(componentType.descriptor);
        if (componentType.id == T_REFERENCE) {
            result.append(name.replace('.', '/'));
            result.append(';');
        }
        return result.toString();
    }
1094435
public String asSingle() {
		if (values.isEmpty()) {
			return "";
		}

		JsonValue first = values.get(0);
		if (first.isNull()) {
			return "";
		}

		Object obj = first.getValue();
		if (obj != null) {
			return obj.toString();
		}

		//get the first element of the array
		List<JsonValue> array = first.getArray();
		if (array != null && !array.isEmpty()) {
			obj = array.get(0).getValue();
			if (obj != null) {
				return obj.toString();
			}
		}

		return "";
	}
1266948
public String getFormatted() {
        String input = this.getUnformatted() + "   ";
        StringBuilder buf = new StringBuilder();
        for (int i = 0; i < this.getUnformatted().length(); i+= 4) {
            buf.append(input, i, i+4);
            buf.append(' ');
        }
        return buf.toString().trim();
    }
905462
public final MapDictionary<String, Object> getProperties() {
        if (this.properties.isReadyOnly()) {
            return this.properties;
        }
        return new MapDictionary<String, Object>(this.properties);
    }
677345
public String[][] convertToStringArray() {
        int numberOfProps = numberOfProperties;
        String[][] props = new String[numberOfProps][2];
        while(numberOfProps--!=0) {
            RelatedItemAdditionalProperty prop = additionalProperties[numberOfProps];
            props[numberOfProps][0] =  new String(prop.name,0,prop.nameLength);
            props[numberOfProps][1] = new String(prop.value,0,prop.valueLength);
        }
        return props;
    }
169612
public function getDefinition()
    {
        $definition['KeySchema'] = $this->getDefinitionKeySchema();

        if ($this->isPrimary()) {
            $definition['AttributeDefinitions'] = $this->getDefinitionAttributes();
        } else {
            $definition['IndexName']  = $this->getName();
            $definition['Projection'] = $this->getDefinitionProjection();
        }

        if (!$this->isSecondaryLocal()) {
            $definition['ProvisionedThroughput'] = $this->getDefinitionProvisionedThroughput();
        }

        return $this->isPrimary() ? $definition :
            [$this->getDefinitionIndexType() => $definition];
    }
1358674
public TypeDescription getType() {
        if (mType == null) {
            mType = getTeaToolsUtils().createTypeDescription(
                       getPropertyDescriptor().getPropertyType());
        }

        return mType;
    }
1057410
public String getColumnDefinition() {
		String full = fieldConfig.getFullColumnDefinition();
		if (full == null) {
			return fieldConfig.getColumnDefinition();
		} else {
			return full;
		}
	}
384605
public String getDescriptorExpression() {
    // We only need to import the outermost descriptor.
    Descriptor descriptor = typeDescriptor;
    while (descriptor.getContainingType() != null) {
      descriptor = descriptor.getContainingType();
    }
    return JavaQualifiedNames.getQualifiedName(descriptor) + ".getDescriptor()";
  }
106200
final public static function properties_definition() {
        $properties = static::define_properties();
        foreach ($properties as $property => $definition) {
            // Ensures that null is set to its default.
            if (!isset($definition['null'])) {
                $properties[$property]['null'] = NULL_NOT_ALLOWED;
            }
            if (!isset($definition['description'])) {
                $properties[$property]['description'] = $property;
            }
        }
        return $properties;
    }
1021411
public CaseDefinitionEntity getPreviousDefinition() {
    CaseDefinitionEntity previousCaseDefinition = null;

    String previousCaseDefinitionId = getPreviousCaseDefinitionId();
    if (previousCaseDefinitionId != null) {

      previousCaseDefinition = loadCaseDefinition(previousCaseDefinitionId);

      if (previousCaseDefinition == null) {
        resetPreviousCaseDefinitionId();
        previousCaseDefinitionId = getPreviousCaseDefinitionId();

        if (previousCaseDefinitionId != null) {
          previousCaseDefinition = loadCaseDefinition(previousCaseDefinitionId);
        }
      }
    }

    return previousCaseDefinition;
  }