# All Retrieve-Only

## getAppDataDir

Locate and get the application data directory&#x20;

```
MetaApi.getAppDataDir()
```

**Parameters**

```
no parameters.
```

**Returns**

```
application data directory​
```

## getClassM

Get the object representing the class​

```
MetaApi.getClassM(String className)
```

Parameters

```
className: name of the class
```

Returns

```
the object representing the class​
```

## getSchemaForDataStudio

Get class schema​ for the data studio

```
MetaApi.getSchemaForDataStudio(String className, boolean includeAllSysAttrs)
```

**Parameters**

```
className:          name of the class
includeAllSysAttrs:  include all system attributes
```

**Returns**

```
the schema object​ for the data studio
```

## getDomainFileAsMap

get domain file as a hashmap.​

```
MetaApi.getDomainFileAsMap(String fileName)
```

**Parameters**

```
fileName:    name of the file
```

**Returns**

```
hashmap of the file​
```

## getMetadata

get metadata from id

```
MetaApi.getMetadata(String id)
or
MetaApi.getMetadata(String modelClassName, String folder, String name) 
```

**Parameters**

```
id
```

**Returns**

```
Object
```

## getClasses

get classes

```
MetaApi.getClasses(String filter)
or
MetaApi.getClasses(String dsName, String filter)
or
MetaApi.getClasses(String dsName, String schemaName, String filter)
or
MetaApi.getClasses(String appName, String dsName, String schemaName, String filter)
```

**Parameters**

```
filter
dsName
schemaName
appName
```

**Returns**

```
Object
```

## getClassNames

get classes

```
MetaApi.getClassNames(String filter)
or
MetaApi.getClassNames(String dsName, String filter)
or
MetaApi.getClassNames(String dsName, String schemaName, String filter)
or
MetaApi. getClassNames(String appName, String dsName, String schemaName, String filter)
```

**Parameters**

```
filter
dsName
schemaName
appName
```

**Returns**

```
List<String>
```

## getDataSourceNames

get data source names

```
MetaApi.getDataSourceNames(String filter)
or
MetaApi.getDataSourceNames(String appName, String filter)
```

**Parameters**

```
filter
appName
```

**Returns**

```
List<String>
```

## getDataSources

get data sources

```
MetaApi.getDataSources(String filter)
or
MetaApi.getDataSources(String appName, String filter)
```

**Parameters**

```
filter
appName
```

**Returns**

```
List<DataSourceM>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://trillo.gitbook.io/trillo-workbench-java-sdk/meta-api-metaapi/retrieve-apis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
