Package aQute.libg.parameters
Class Attributes
java.lang.Object
aQute.libg.parameters.Attributes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Attributes.DataType<Double>
static final Attributes
static final Attributes.DataType<List<Double>>
static final Attributes.DataType<List<Long>>
static final Attributes.DataType<List<String>>
static final Attributes.DataType<List<String>>
static final Attributes.DataType<Long>
private static final MethodHandle
private static final String
static final Attributes.DataType<String>
private static final Pattern
Pattern for List with list typeprivate final Map<String,
Attributes.Type> static final Attributes.DataType<String>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionAttributes
(Attributes attrs) Attributes
(Attributes... attrs) Attributes
(Map<String, String> v) private
Attributes
(Map<String, String> map, Map<String, Attributes.Type> types) -
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(StringBuilder appendable) private void
append
(StringBuilder sb, String key, String value) void
append
(StringBuilder sb, Map.Entry<String, String> e) void
clear()
boolean
containsKey
(Object name) Deprecated.boolean
containsKey
(String name) boolean
containsValue
(Object value) Deprecated.boolean
containsValue
(String value) static Object
convert
(Attributes.Type t, String s) static Object
static Attributes
entrySet()
boolean
Deprecated.Deprecated.private Attributes.Type
getObjectType
(Object member) <T> T
getTyped
(Attributes.DataType<T> type, String adname) int
hashCode()
Deprecated.boolean
isEmpty()
boolean
isEqual
(Attributes other) keySet()
void
mergeWith
(Attributes other, boolean override) Merge the attributesvoid
putAll
(Attributes attrs) void
void
putAllTyped
(Map<String, Object> attrs) void
Deprecated.int
size()
splitListAttribute
(String input) static String
toDirective
(String key) Check if a directive, if so, return directive name otherwise nulltoString()
static Attributes.Type
values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
ORG_OSGI_FRAMEWORK_VERSION
- See Also:
-
newVersion
-
STRING
-
LONG
-
DOUBLE
-
VERSION
-
LIST_STRING
-
LIST_LONG
-
LIST_DOUBLE
-
LIST_VERSION
-
TYPED
Pattern for List with list type -
map
-
types
-
EMPTY_ATTRS
-
-
Constructor Details
-
Attributes
-
Attributes
public Attributes() -
Attributes
-
Attributes
-
Attributes
-
-
Method Details
-
putAllTyped
-
putTyped
-
getObjectType
-
clear
public void clear() -
containsKey
-
containsKey
Deprecated.- Specified by:
containsKey
in interfaceMap<String,
String>
-
containsValue
-
containsValue
Deprecated.- Specified by:
containsValue
in interfaceMap<String,
String>
-
entrySet
-
get
Deprecated. -
get
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
getType
-
putAll
-
putAll
-
remove
Deprecated. -
remove
-
size
public int size() -
values
-
getVersion
-
toString
-
append
-
append
-
toString
-
append
-
equals
Deprecated. -
hashCode
Deprecated. -
isEqual
-
getTyped
-
getTyped
-
toType
-
convert
-
convert
-
splitListAttribute
- Throws:
IllegalArgumentException
-
mergeWith
Merge the attributes -
toDirective
Check if a directive, if so, return directive name otherwise null -
create
-
with
-