public abstract class SomQmgrObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
errortext |
protected SomSession |
somSession |
Constructor and Description |
---|
SomQmgrObject()
Create a new empty SomQmgrObject
|
SomQmgrObject(SomSession session)
Create a new empty SomQmgrObject for a particular session
|
SomQmgrObject(SomSession session,
java.lang.String[] pairs)
Create a new SomQmgrObject by parsing a set of key:value pairs
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String av)
Add an attribute to an object
|
protected void |
addAttribute(java.lang.String type,
java.lang.String value) |
void |
addBindListener(SomQmgrBindListener l)
Add a listener for Bind responses
|
protected void |
clearAttributes() |
protected boolean |
getBooleanAttributeValue(int type) |
protected java.lang.Double |
getDoubleAttributeValue(int type) |
protected java.lang.Integer |
getIntegerAttributeValue(int type) |
SomSession |
getSession()
Get the SomSession associated with an object
|
protected java.lang.String |
getStringAttributeValue(int type) |
protected void |
notifyBindListeners(int status) |
protected void |
notifyListener(SomCommandListener listener,
int status,
java.lang.String detail) |
protected void |
notifyListeners(SomCommand command,
int status,
java.lang.String detail) |
protected void |
parsePairs(java.lang.String[] pairs) |
java.lang.String |
print_str()
Return debug string
|
void |
print()
Debug print function
|
void |
removeBindListener(SomQmgrBindListener l)
Remove a listener for Bind responses
|
protected void |
setSkipNotifications(int n) |
public java.lang.String errortext
protected SomSession somSession
public SomQmgrObject()
public SomQmgrObject(SomSession session)
session
- the SomSession for this objectpublic SomQmgrObject(SomSession session, java.lang.String[] pairs)
session
- the SomSession for this objectpairs
- key:value pairs to parsepublic SomSession getSession()
protected void notifyListeners(SomCommand command, int status, java.lang.String detail)
protected void notifyListener(SomCommandListener listener, int status, java.lang.String detail)
public void addBindListener(SomQmgrBindListener l)
l
- the listener to addpublic void removeBindListener(SomQmgrBindListener l)
l
- the listener to removeprotected void notifyBindListeners(int status)
protected void parsePairs(java.lang.String[] pairs)
protected void clearAttributes()
protected void addAttribute(java.lang.String type, java.lang.String value)
public void addAttribute(java.lang.String av)
av
- the key:value pair to parse and addprotected java.lang.Integer getIntegerAttributeValue(int type) throws SomException
SomException
protected java.lang.Double getDoubleAttributeValue(int type) throws SomException
SomException
protected java.lang.String getStringAttributeValue(int type) throws SomException
SomException
protected boolean getBooleanAttributeValue(int type) throws SomException
SomException
public void print()
public java.lang.String print_str()
protected void setSkipNotifications(int n)
Version: 18.0v6-0
Copyright (c) 2017-2020 Isode