@Override
	public void setCategoryPath(CategoryPath path) throws DuplicateNameException {
		lock.acquire();
		try {
			checkDeleted();
			if (getCategoryPath().equals(path)) {
				return;
			}
			String currentName = getName();
			if (dataMgr.getDataType(path, currentName) != null) {
				throw new DuplicateNameException("DataType named " + currentName +
					" already exists in category " + path.getPath());
			}
			doSetCategoryPath(path);
		}
		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