**Inheritance:**
java.lang.Object, com.aspose.pdf.CollectionSchema

```
public class CollectionSchema extends Object
```

Represents a class that describes the "Schema" of a document collection.

## Methods

| Method | Description |
| --- | --- |
| [getAllFields](#getAllFields--) | Gets all schema's fields. |
| [getAllNames](#getAllNames--) | Gets all schema's fields names. |
| [getCollectionField](#getCollectionField-java.lang.String-) | Gets a collection field by name. |
| [hasName](#hasName-java.lang.String-) | Determines whether the specified name exists in the schema. |

### getAllFields {#getAllFields--}
```
public final com.aspose.ms.System.Collections.Generic.IGenericCollection< CollectionField > getAllFields()
```

Gets all schema's fields.

**Returns:**
list of CollectionField

### getAllNames {#getAllNames--}
```
public final com.aspose.ms.System.Collections.Generic.IGenericCollection< String > getAllNames()
```

Gets all schema's fields names.

**Returns:**
list of String

### getCollectionField {#getCollectionField-java.lang.String-}
Gets a collection field by name.

### hasName {#hasName-java.lang.String-}
Determines whether the specified name exists in the schema.
