@Override
	public void setName(String newName) throws InvalidNameException, DuplicateNameException {
		lock.acquire();
		try {
			checkDeleted();
			if (getName().equals(newName)) {
				return;
			}
			CategoryPath categoryPath = getCategoryPath();
			if (dataMgr.getDataType(categoryPath, newName) != null) {
				throw new DuplicateNameException("DataType named " + newName +
					" already exists in category " + categoryPath.getPath());
			}
			doSetName(newName);
		}
		finally {
			lock.release();
		}
	}
Set the data in the form of the appropriate Object for this DataType.

@param buf the data buffer.
@param settings the display settings for the current value.
@param length the number of bytes to set the value from.
@param value the new value to set object
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeDB.java