|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.mapping.rsem.builder.ResourceContractMappingBuilder
public class ResourceContractMappingBuilder
A builder for resource contract mapping allowing to define abstract mappings (not bounded to a specific resource) which can then be extended by actual resource or other contract mappings.
RSEM.contract(String)| Constructor Summary | |
|---|---|
ResourceContractMappingBuilder(String alias)
Constructs a new resource contract mapping builder. |
|
| Method Summary | |
|---|---|
ResourceContractMappingBuilder |
add(ResourceAnalyzerMappingBuilder builder)
Adds a resource analyzer property mapping definition. |
ResourceContractMappingBuilder |
add(ResourceBoostMappingBuilder builder)
Adds a resource boost property mapping definition. |
ResourceContractMappingBuilder |
add(ResourceIdMappingBuilder builder)
Adds a resource id mapping definition. |
ResourceContractMappingBuilder |
add(ResourcePropertyMappingBuilder builder)
Adds a resource property mapping definition. |
ResourceContractMappingBuilder |
analyzer(String analyzer)
The name of the analyzer that will be used to analyze ANALYZED properties. |
ResourceContractMappingBuilder |
extendsAliases(String... extendedAliases)
Sets the list of other resource/contract mappings that this mapping will extend and inherit internal mappings from. |
ContractMapping |
getMapping()
Returns the contract mapping built. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceContractMappingBuilder(String alias)
| Method Detail |
|---|
public ContractMapping getMapping()
getMapping in interface ContractMappingProviderpublic ResourceContractMappingBuilder extendsAliases(String... extendedAliases)
public ResourceContractMappingBuilder analyzer(String analyzer)
default
analyzer.
Note, that when using the resource-analyzer mapping (a child mapping of resource mapping) (for a resource property value that controls the analyzer), the analyzer attribute will have no effects.
public ResourceContractMappingBuilder add(ResourceIdMappingBuilder builder)
public ResourceContractMappingBuilder add(ResourcePropertyMappingBuilder builder)
public ResourceContractMappingBuilder add(ResourceAnalyzerMappingBuilder builder)
public ResourceContractMappingBuilder add(ResourceBoostMappingBuilder builder)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||