public class AggregatingDescriptors extends java.lang.Object implements Descriptors
Constructor and Description |
---|
AggregatingDescriptors(Tracker<Descriptors> tracker)
Create an AggregatingDescriptors which uses descriptors.getServices()
at method invocation time
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getKeys()
Returns a string array holding all descriptor keys available for this
implementation, both the standard descriptors defined by the string
constants in this interface and any implementation-specific descriptors.
|
@Nullable Value |
getValue(@NotNull java.lang.String key)
The value of a single-value descriptor is found by passing the key for
that descriptor to this method.
|
@Nullable Value[] |
getValues(@NotNull java.lang.String key)
The value array of a multi-value descriptor is found by passing the key
for that descriptor to this method.
|
boolean |
isSingleValueDescriptor(@NotNull java.lang.String key)
Returns
true if key is a valid single-value
descriptor; otherwise returns false |
boolean |
isStandardDescriptor(@NotNull java.lang.String key)
Returns
true if key is a standard descriptor
defined by the string constants in this interface and false
if it is either a valid implementation-specific key or not a valid key. |
public AggregatingDescriptors(Tracker<Descriptors> tracker)
public java.lang.String[] getKeys()
Descriptors
Descriptors.getValue(String key)
and
Descriptors.getValues(String key)
to query information about this
repository implementation.getKeys
in interface Descriptors
public boolean isStandardDescriptor(@NotNull @NotNull java.lang.String key)
Descriptors
true
if key
is a standard descriptor
defined by the string constants in this interface and false
if it is either a valid implementation-specific key or not a valid key.isStandardDescriptor
in interface Descriptors
key
- a descriptor key.key
is a standard descriptor.public boolean isSingleValueDescriptor(@NotNull @NotNull java.lang.String key)
Descriptors
true
if key
is a valid single-value
descriptor; otherwise returns false
isSingleValueDescriptor
in interface Descriptors
key
- a descriptor key.@Nullable public @Nullable Value getValue(@NotNull @NotNull java.lang.String key)
Descriptors
key
is the key of a
multi-value descriptor or not a valid key this method returns
null
.getValue
in interface Descriptors
key
- a descriptor key.@Nullable public @Nullable Value[] getValues(@NotNull @NotNull java.lang.String key)
Descriptors
key
is the key of a
single-value descriptor then this method returns that value as an array
of size one. If key
is not a valid key this method returns
null
.getValues
in interface Descriptors
key
- a descriptor key.Copyright © 2010 - 2020 Adobe. All Rights Reserved