Class QueryLiveCommandFactory
- java.lang.Object
-
- org.eclipse.ditto.signals.commands.live.query.QueryLiveCommandFactory
-
@AllValuesAreNonnullByDefault @Immutable public final class QueryLiveCommandFactory extends Object
A factory for getting immutable instances of queryLiveCommands.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RetrieveAttributeLiveCommandretrieveAttribute(org.eclipse.ditto.signals.commands.base.Command<?> command)Returns a new immutable instance ofRetrieveAttributeLiveCommand.static RetrieveAttributesLiveCommandretrieveAttributes(org.eclipse.ditto.signals.commands.base.Command<?> command)Returns a new immutable instance ofRetrieveAttributesLiveCommand.static RetrieveFeatureLiveCommandretrieveFeature(org.eclipse.ditto.signals.commands.base.Command<?> command)Returns a new immutable instance ofRetrieveFeatureLiveCommand.static RetrieveFeatureDefinitionLiveCommandretrieveFeatureDefinition(org.eclipse.ditto.signals.commands.base.Command<?> command)Returns a new immutable instance ofRetrieveFeatureDefinitionLiveCommand.static RetrieveFeaturePropertiesLiveCommandretrieveFeatureProperties(org.eclipse.ditto.signals.commands.base.Command<?> command)Returns a new immutable instance ofRetrieveFeaturePropertiesLiveCommand.static RetrieveFeaturePropertyLiveCommandretrieveFeatureProperty(org.eclipse.ditto.signals.commands.base.Command<?> command)Returns a new immutable instance ofRetrieveFeaturePropertyLiveCommand.static RetrieveFeaturesLiveCommandretrieveFeatures(org.eclipse.ditto.signals.commands.base.Command<?> command)Returns a new immutable instance ofRetrieveFeaturesLiveCommand.static RetrieveThingLiveCommandretrieveThing(org.eclipse.ditto.signals.commands.base.Command<?> command)Returns a new immutable instance ofRetrieveThingLiveCommand.static RetrieveThingsLiveCommandretrieveThings(org.eclipse.ditto.signals.commands.base.Command<?> command)Returns a new immutable instance ofRetrieveThingsLiveCommand.
-
-
-
Method Detail
-
retrieveAttribute
public static RetrieveAttributeLiveCommand retrieveAttribute(org.eclipse.ditto.signals.commands.base.Command<?> command)
Returns a new immutable instance ofRetrieveAttributeLiveCommand.- Parameters:
command- the command to base the result on.- Returns:
- the instance.
- Throws:
NullPointerException- ifcommandisnull.ClassCastException- ifcommandis not an instance ofRetrieveAttribute.
-
retrieveAttributes
public static RetrieveAttributesLiveCommand retrieveAttributes(org.eclipse.ditto.signals.commands.base.Command<?> command)
Returns a new immutable instance ofRetrieveAttributesLiveCommand.- Parameters:
command- the command to base the result on.- Returns:
- the instance.
- Throws:
NullPointerException- ifcommandisnull.ClassCastException- ifcommandis not an instance ofRetrieveAttributes.
-
retrieveFeature
public static RetrieveFeatureLiveCommand retrieveFeature(org.eclipse.ditto.signals.commands.base.Command<?> command)
Returns a new immutable instance ofRetrieveFeatureLiveCommand.- Parameters:
command- the command to base the result on.- Returns:
- the instance.
- Throws:
NullPointerException- ifcommandisnull.ClassCastException- ifcommandis not an instance ofRetrieveFeature.
-
retrieveFeatureDefinition
public static RetrieveFeatureDefinitionLiveCommand retrieveFeatureDefinition(org.eclipse.ditto.signals.commands.base.Command<?> command)
Returns a new immutable instance ofRetrieveFeatureDefinitionLiveCommand.- Parameters:
command- the command to base the result on.- Returns:
- the instance.
- Throws:
NullPointerException- ifcommandisnull.ClassCastException- ifcommandis not an instance ofRetrieveFeatureDefinition.
-
retrieveFeatureProperties
public static RetrieveFeaturePropertiesLiveCommand retrieveFeatureProperties(org.eclipse.ditto.signals.commands.base.Command<?> command)
Returns a new immutable instance ofRetrieveFeaturePropertiesLiveCommand.- Parameters:
command- the command to base the result on.- Returns:
- the instance.
- Throws:
NullPointerException- ifcommandisnull.ClassCastException- ifcommandis not an instance ofRetrieveFeatureProperties.
-
retrieveFeatureProperty
public static RetrieveFeaturePropertyLiveCommand retrieveFeatureProperty(org.eclipse.ditto.signals.commands.base.Command<?> command)
Returns a new immutable instance ofRetrieveFeaturePropertyLiveCommand.- Parameters:
command- the command to base the result on.- Returns:
- the instance.
- Throws:
NullPointerException- ifcommandisnull.ClassCastException- ifcommandis not an instance ofRetrieveFeatureProperty.
-
retrieveFeatures
public static RetrieveFeaturesLiveCommand retrieveFeatures(org.eclipse.ditto.signals.commands.base.Command<?> command)
Returns a new immutable instance ofRetrieveFeaturesLiveCommand.- Parameters:
command- the command to base the result on.- Returns:
- the instance.
- Throws:
NullPointerException- ifcommandisnull.ClassCastException- ifcommandis not an instance ofRetrieveFeatures.
-
retrieveThing
public static RetrieveThingLiveCommand retrieveThing(org.eclipse.ditto.signals.commands.base.Command<?> command)
Returns a new immutable instance ofRetrieveThingLiveCommand.- Parameters:
command- the command to base the result on.- Returns:
- the instance.
- Throws:
NullPointerException- ifcommandisnull.ClassCastException- ifcommandis not an instance ofRetrieveThing.
-
retrieveThings
public static RetrieveThingsLiveCommand retrieveThings(org.eclipse.ditto.signals.commands.base.Command<?> command)
Returns a new immutable instance ofRetrieveThingsLiveCommand.- Parameters:
command- the command to base the result on.- Returns:
- the instance.
- Throws:
NullPointerException- ifcommandisnull.ClassCastException- ifcommandis not an instance ofRetrieveThings.
-
-