> For the complete documentation index, see [llms.txt](https://dejvokep.gitbook.io/boostedyaml/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dejvokep.gitbook.io/boostedyaml/getting-started/content-manipulation.md).

# Content manipulation

## Section

Section class conains getters, setters, removers and checkers.

To access content inside sections, you must use [routes](/boostedyaml/routing/routes.md) (click to read more about how to access data). Format of the keys in the section depends on the chosen [key format](/boostedyaml/settings/generalsettings.md#key-mode).

## Comments

You can use methods provided by the Block class to manipulate with comments.

{% hint style="info" %}
**Lowlevel API for advanced users:**

You can also use low-level comment manipulators available under Comments class. Be careful, it is advised to **never** use position other than `Position#BEFORE`. Always refer to the method documentation for more information.

**WIP for version 1.4?**
{% endhint %}

## For those who used Spigot/BungeeCord API

Here's a method name translation table to get started with the API quicker than ever:

|    Spigot/BungeeCord API method   | BoostedYAML method for KeyFormat#STRING | BoostedYAML method for KeyFormat#OBJECT |
| :-------------------------------: | :-------------------------------------: | :-------------------------------------: |
|           `getX(String)`          |              `getX(String)`             |              `getX(Route)`              |
| `getConfigurationSection(String)` |           `getSection(String)`          |           `getSection(Route)`           |
|         `getKeys(boolean)`        |      `getRoutesAsStrings(boolean)`      |           `getRoutes(boolean)`          |
|        `getValues(boolean)`       |  `getStringRouteMappedValues(boolean)`  |     `getRouteMappedValues(boolean)`     |
|            `getPath()`            |           `getRouteAsString()`          |               `getRoute()`              |
|            `getName()`            |           `getNameAsString()`           |               `getName()`               |

Up to our knowledge, all methods present in Spigot/BungeeCord file API are also present in BoostedYAML with the same defaults.
