| java.lang.Object | |||
| ↳ | com.google.gdata.data.AbstractExtension | ||
| ↳ | com.google.gdata.data.ExtensionPoint | ||
| ↳ | com.google.gdata.data.analytics.Metric | ||
Metric value.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Metric.Type | The format of data represented by the metric. | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | CONFIDENCEINTERVAL | XML "confidenceInterval" attribute name | |||||||||
| String | NAME | XML "name" attribute name | |||||||||
| String | TYPE | XML "type" attribute name | |||||||||
| String | VALUE | XML "value" attribute name | |||||||||
| String | XML_NAME | XML element name | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| confidenceInterval | 95% confidence interval for this metric (lower is better) | ||||||||||
| name | Name | ||||||||||
| type | The format of data represented by the metric | ||||||||||
| value | Value | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.data.ExtensionPoint
| |||||||||||
From class
com.google.gdata.data.AbstractExtension
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Default mutable constructor.
| |||||||||||
Immutable constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the double value of this metric.
| |||||||||||
Returns the 95% confidence interval for this metric (lower is better).
| |||||||||||
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
| |||||||||||
Returns the name.
| |||||||||||
Returns the the format of data represented by the metric.
| |||||||||||
Returns the value.
| |||||||||||
Returns whether it has the 95% confidence interval for this metric (lower
is better).
| |||||||||||
Returns whether it has the name.
| |||||||||||
Returns whether it has the the format of data represented by the metric.
| |||||||||||
Returns whether it has the value.
| |||||||||||
Gets the long value of this metric.
| |||||||||||
Gets a numeric representation of this metric's value.
| |||||||||||
Sets the 95% confidence interval for this metric (lower is better).
| |||||||||||
Sets the name.
| |||||||||||
Sets the the format of data represented by the metric.
| |||||||||||
Sets the value.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Consumes attributes from the attribute helper.
| |||||||||||
Puts attributes into the attribute generator.
| |||||||||||
Checks the attributes to see if there are any problems.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.data.ExtensionPoint
| |||||||||||
From class
com.google.gdata.data.AbstractExtension
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.data.Extension
| |||||||||||
XML "confidenceInterval" attribute name
XML "name" attribute name
XML "type" attribute name
XML "value" attribute name
XML element name
95% confidence interval for this metric (lower is better)
Name
The format of data represented by the metric
Value
Default mutable constructor.
Immutable constructor.
| confidenceInterval | 95% confidence interval for this metric (lower is better). |
|---|---|
| name | Name. |
| type | The format of data represented by the metric. |
| value | Value. |
Gets the double value of this metric. If the underlying data is an integer value, then the number returned by this method is the result of casting that integer to type double.
| obj |
|---|
Returns the 95% confidence interval for this metric (lower is better).
Returns the extension description, specifying whether it is required, and whether it is repeatable.
| required | Whether it is required |
|---|---|
| repeatable | Whether it is repeatable |
Returns the name.
Returns the the format of data represented by the metric.
Returns the value.
Returns whether it has the 95% confidence interval for this metric (lower is better).
Returns whether it has the name.
Returns whether it has the the format of data represented by the metric.
Returns whether it has the value.
Gets the long value of this metric. If the underlying data is a floating-point number, then the number returned by this method is the result of casting that floating-point number to type long.
Gets a numeric representation of this metric's value. The exact subclass
of Number returned can be determined by the result of getType(): if
getType() returns "integer" then the value returned by this method
is an instance of java.lang.Integer; otherwise it is an instance of
java.lang.Double.
| NumberFormatException | If the value of this metric cannot be parsed into the the most appropriate numeric format for its type |
|---|
Sets the 95% confidence interval for this metric (lower is better).
| confidenceInterval | 95% confidence interval for this metric (lower is
better) or null to reset
|
|---|
Sets the name.
| name | Name or null to reset
|
|---|
Sets the the format of data represented by the metric.
| type | The format of data represented by the metric or
null to reset
|
|---|
Sets the value.
| value | Value or null to reset
|
|---|
Consumes attributes from the attribute helper. May also use
consumeContent(boolean) to consume the element's text
content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.
| helper | Attribute helper |
|---|
| ParseException |
|---|
Puts attributes into the attribute generator. Called from
generate(XmlWriter, ExtensionProfile). Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.
| generator | Attribute generator |
|---|
Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.