public class SomQmgrAttribute
extends java.lang.Object
Constructor and Description |
---|
SomQmgrAttribute(int t,
java.lang.String v)
Create a new Attribute, with a given type and value
|
SomQmgrAttribute(java.lang.String t,
java.lang.String v)
Create a new Attribute, with a given type and value
|
Modifier and Type | Method and Description |
---|---|
boolean |
compareTo(int newtype)
Test whether this attribute's type matches some other type.
|
boolean |
getBooleanVal()
Get attribute value as boolean
|
java.lang.Double |
getDoubleVal()
Get a double value for the attribute
|
java.lang.Integer |
getIntegerVal()
Get an integer value for the attribute
|
java.lang.String |
getStringVal()
Get raw string value for attribute
|
int |
getType()
Get type of attribute as integer
|
java.lang.String |
getTypeString()
Get attribute type as string
|
java.lang.String |
print()
Print attribute type/value pair
|
public SomQmgrAttribute(java.lang.String t, java.lang.String v)
t
- Type string, which must not be nullv
- Value string, which must not be nullpublic SomQmgrAttribute(int t, java.lang.String v)
t
- Type integer valuev
- Value string, which must not be nullpublic boolean compareTo(int newtype)
newtype
- Type to test againstpublic java.lang.Integer getIntegerVal()
public java.lang.Double getDoubleVal()
public java.lang.String getStringVal() throws SomException
SomException
- on errorpublic int getType()
public java.lang.String getTypeString()
public boolean getBooleanVal() throws SomException
SomException
- on errorpublic java.lang.String print()
Version: 18.0v6-0
Copyright (c) 2017-2020 Isode