public class ExtraMaterialsDescription extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ExtraMaterialsDescription.ConflictResolution
Used to resolve conflicts when merging the additional material
description to the core material description.
|
Modifier and Type | Field and Description |
---|---|
static ExtraMaterialsDescription |
NONE |
Constructor and Description |
---|
ExtraMaterialsDescription(Map<String,String> matdesc) |
ExtraMaterialsDescription(Map<String,String> matdesc,
ExtraMaterialsDescription.ConflictResolution resolve) |
Modifier and Type | Method and Description |
---|---|
ExtraMaterialsDescription.ConflictResolution |
getConflictResolution()
Returns the conflict resolution strategy; neve null.
|
Map<String,String> |
getMaterialDescription()
Returns the extra material description; never null.
|
Map<String,String> |
mergeInto(Map<String,String> core)
Combine this supplemental material descriptions with those specified in
the "core" parameter.
|
public static final ExtraMaterialsDescription NONE
public ExtraMaterialsDescription(Map<String,String> matdesc, ExtraMaterialsDescription.ConflictResolution resolve)
public Map<String,String> getMaterialDescription()
public ExtraMaterialsDescription.ConflictResolution getConflictResolution()
public Map<String,String> mergeInto(Map<String,String> core)
core
- the core material descriptions to be supplemented;
assumed to be unmodifiable.IllegalArgumentException
- if this supplemental material descriptions contains
conflicting entriesUnsupportedOperationException
- if the conflict resolution strategy is not supportedCopyright © 2024. All rights reserved.