public interface ElementProperties
Modifier and Type | Method and Description |
---|---|
Property |
getProperty(String propertyName)
Returns a property object for the property of the specified name.
|
Object |
getPropertyValue(String propertyName)
Returns the value of the specified property.
|
Collection<Property> |
properties()
Returns the properties of the element as an unmodifiable collection.
|
int |
propertiesSize()
Returns the number of properties in this element.
|
void |
setBooleanProperty(String name,
boolean value) |
void |
setBytesProperty(String name,
byte[] value) |
void |
setDateProperty(String name,
Date value) |
void |
setDoubleProperty(String name,
double value) |
void |
setFloatProperty(String name,
float value) |
void |
setIntListProperty(String name,
int[] value) |
void |
setIntListProperty(String name,
Iterable<Integer> value) |
void |
setIntProperty(String name,
int value) |
void |
setLongProperty(String name,
long value) |
void |
setPropertyValue(String name,
Object value)
Sets the property to the value.
|
void |
setStringListProperty(String name,
Iterable<String> value) |
void |
setStringListProperty(String name,
String[] value) |
void |
setStringProperty(String name,
String value) |
void |
setXmlProperty(String name,
String value) |
Collection<Property> properties()
int propertiesSize()
Property getProperty(String propertyName)
null if the client-side representation of the element
does not have a value for the property. This does not necessarily mean that the corresponding uCMDB-side element
does not have a value for the property.
Object getPropertyValue(String propertyName)
Property.getValue()
.getProperty(java.lang.String)
void setPropertyValue(String name, Object value)
value
parameter. The following classes are supported:
Boolean
, Integer
, Long
, Float
, Double
and String
are
interpreted as their UCMDB counterparts. Using autoboxing boolean
, int
,
long
, float
and double
can also be passed.
byte[]
is interpreted as BYTES
Date
is interpreted as DATE
Iterable
<String>
and String[]
are interpreted as STRING_LIST
Iterable
<Integer>
and int[]
are interpreted as INTEGER_LIST
name
- name of the propertyvalue
- value of the propertyvoid setBooleanProperty(String name, boolean value)
void setBytesProperty(String name, byte[] value)
void setDoubleProperty(String name, double value)
void setFloatProperty(String name, float value)
void setIntListProperty(String name, int[] value)
void setIntProperty(String name, int value)
void setLongProperty(String name, long value)
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.