public final class IdentifierBindingIndex extends java.lang.Object implements KnowledgeIndex
Modifier and Type | Class and Description |
---|---|
static class |
IdentifierBindingIndex.BindingType |
Constructor and Description |
---|
IdentifierBindingIndex(Model model) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getOperationBindings(ToShapeId resource,
ToShapeId operation)
Gets a map of identifier names to input member names that provide a
value for that identifier.
|
IdentifierBindingIndex.BindingType |
getOperationBindingType(ToShapeId resource,
ToShapeId operation)
Gets the identifier binding type of an operation to a resource.
|
static IdentifierBindingIndex |
of(Model model) |
public IdentifierBindingIndex(Model model)
public static IdentifierBindingIndex of(Model model)
public IdentifierBindingIndex.BindingType getOperationBindingType(ToShapeId resource, ToShapeId operation)
The NONE Binding type is returned if the resource can't be found, the operation can't be found, or if the operation is not bound to the resource.
resource
- Shape ID of a resource.operation
- Shape ID of an operation.public java.util.Map<java.lang.String,java.lang.String> getOperationBindings(ToShapeId resource, ToShapeId operation)
resource
- Shape ID of a resource.operation
- Shape ID of an operation.