NamedOperation, NamespaceOperation, StandardOperationpublic interface Operation
StandardOperation class, as well as a
way to express the target namespace(s) of an operation
on an object using NamespaceOperation and finally a way to attach
a fixed target name to an operation using NamedOperation.
When presenting examples in this documentation, we will refer to standard
operations using their name (e.g. GET), to namespace operations
by separating their base operation with a colon from their namespace
(e.g. GET:PROPERTY), or in case of multiple namespaces we will
further separate those with the vertical line character (e.g.
GET:PROPERTY|ELEMENT), and finally we will refer to named operations
by separating the base operation and the name with the colon character (e.g.
GET:PROPERTY|ELEMENT:color).| Modifier and Type | Method | Description |
|---|---|---|
default NamedOperation |
named(Object name) |
Returns a
NamedOperation using this operation as its base. |
default NamespaceOperation |
withNamespace(Namespace namespace) |
Returns a
NamespaceOperation using this operation as its base. |
default NamespaceOperation |
withNamespaces(Namespace... namespaces) |
Returns a
NamespaceOperation using this operation as its base. |
default NamespaceOperation withNamespace(Namespace namespace)
NamespaceOperation using this operation as its base.namespace - the namespace that is the target of the namespace operation.NamespaceOperation with this operation as its base and the specified
namespace as its target.IllegalArgumentException - if this operation is already a namespace operation or a named operation.NullPointerException - if namespace is null.default NamespaceOperation withNamespaces(Namespace... namespaces)
NamespaceOperation using this operation as its base.namespaces - the namespaces that are the target of the namespace operation.NamespaceOperation with this operation as its base and the specified
namespaces as its targets.IllegalArgumentException - if this operation is already a namespace operation or a named operation.NullPointerException - if namespace or any of its elements is null.default NamedOperation named(Object name)
NamedOperation using this operation as its base.name - the name that is the target of the named operation.NamedOperation with this operation as its base and the specified name.IllegalArgumentException - if this operation is already a named operation.NullPointerException - if name is null. Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b155-1