public class MetadataKeyBuilder extends Object
MetadataKey instance.| Modifier | Constructor and Description |
|---|---|
protected |
MetadataKeyBuilder(String id) |
| Modifier and Type | Method and Description |
|---|---|
MetadataKey |
build()
Builds a new instance of
MetadataKey. |
static MetadataKeyBuilder |
newKey(String id)
Creates and returns new instance of a
MetadataKeyBuilder, to help building a new MetadataKey
represented by the given |
protected void |
setPartName(String partName) |
MetadataKeyBuilder |
withChild(MetadataKey metadataKey)
Adds a new
MetadataKey child to the MetadataKey that is being built. |
MetadataKeyBuilder |
withChild(MetadataKeyBuilder metadataKeyBuilder)
Adds a new
MetadataKeyBuilder child to the MetadataKey that is being built. |
MetadataKeyBuilder |
withDisplayName(String displayName)
Adds a display name to the
MetadataKey that is being built |
MetadataKeyBuilder |
withPartName(String partName)
Adds a new
MetadataKeyBuilder child to the MetadataKey that is being built. |
MetadataKeyBuilder |
withProperty(MetadataProperty property)
Adds a custom
MetadataProperty to the MetadataKey that is being built |
protected MetadataKeyBuilder(String id)
public static MetadataKeyBuilder newKey(String id)
MetadataKeyBuilder, to help building a new MetadataKey
represented by the given id - of the MetadataKey to be createdMetadataKeyBuilderpublic MetadataKeyBuilder withDisplayName(String displayName)
MetadataKey that is being builtdisplayName - of the MetadataKey to be createdthis builder with the configured display namepublic MetadataKeyBuilder withProperty(MetadataProperty property)
MetadataProperty to the MetadataKey that is being builtproperty - The new MetadataProperty to be added into the MetadataKeythis builder with the new propertypublic MetadataKeyBuilder withChild(MetadataKeyBuilder metadataKeyBuilder)
MetadataKeyBuilder child to the MetadataKey that is being built.metadataKeyBuilder - the MetadataKeyBuilder that is used to create the instance of the new child.this builder with a new child.public MetadataKeyBuilder withChild(MetadataKey metadataKey)
MetadataKey child to the MetadataKey that is being built.metadataKey - the MetadataKey that is used to create the instance of the new child.this builder with a new child.public MetadataKeyBuilder withPartName(String partName)
MetadataKeyBuilder child to the MetadataKey that is being built.partName - the partName that is associated to this key part.this builder with a new child.protected void setPartName(String partName)
public MetadataKey build()
MetadataKey.MetadataKeyCopyright © 2017 MuleSoft, Inc.. All rights reserved.