Package com.isode.som.pumice.objects
Class SomPumiceObject
- java.lang.Object
-
- com.isode.som.pumice.objects.SomPumiceObject
-
- Direct Known Subclasses:
SomPumiceConnection,SomPumiceMailbox,SomPumiceMessage,SomPumiceMessageStore
public abstract class SomPumiceObject extends java.lang.ObjectBase class on which the other Pumice objects are built.- Author:
- tc
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringerrortextprotected SomPumiceSessionsomSession
-
Constructor Summary
Constructors Constructor Description SomPumiceObject()SomPumiceObject(SomPumiceSession session)SomPumiceObject(SomPumiceSession session, java.lang.String[] pairs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(java.lang.String av)protected voidaddAttribute(java.lang.String type, java.lang.String value)voidaddBindListener(SomPumiceBindListener l)protected voidclearAttributes()protected booleangetBooleanAttributeValue(int type)protected java.lang.IntegergetIntegerAttributeValue(int type)SomPumiceSessiongetSession()protected java.lang.StringgetStringAttributeValue(int type)protected voidnotifyBindListeners(int status)protected voidnotifyListener(SomCommandListener listener, int status)protected voidnotifyListeners(SomCommand command, int status)protected voidnotifyListeners(SomCommand command, int status, java.lang.String detail)protected voidnotifyListeners(SomCommand command, int status, java.lang.String[] pairs)protected voidparsePairs(java.lang.String[] pairs)voidprint()voidremoveBindListener(SomPumiceBindListener l)protected voidsetSkipNotifications(int n)
-
-
-
Field Detail
-
errortext
public java.lang.String errortext
-
somSession
protected SomPumiceSession somSession
-
-
Constructor Detail
-
SomPumiceObject
public SomPumiceObject()
-
SomPumiceObject
public SomPumiceObject(SomPumiceSession session)
-
SomPumiceObject
public SomPumiceObject(SomPumiceSession session, java.lang.String[] pairs)
-
-
Method Detail
-
getSession
public SomPumiceSession getSession()
-
notifyListeners
protected void notifyListeners(SomCommand command, int status)
-
notifyListeners
protected void notifyListeners(SomCommand command, int status, java.lang.String detail)
-
notifyListeners
protected void notifyListeners(SomCommand command, int status, java.lang.String[] pairs)
-
notifyListener
protected void notifyListener(SomCommandListener listener, int status)
-
addBindListener
public void addBindListener(SomPumiceBindListener l)
-
removeBindListener
public void removeBindListener(SomPumiceBindListener l)
-
notifyBindListeners
protected void notifyBindListeners(int status)
-
parsePairs
protected void parsePairs(java.lang.String[] pairs)
-
clearAttributes
protected void clearAttributes()
-
addAttribute
protected void addAttribute(java.lang.String type, java.lang.String value)
-
addAttribute
public void addAttribute(java.lang.String av)
-
getIntegerAttributeValue
protected java.lang.Integer getIntegerAttributeValue(int type) throws SomException- Throws:
SomException
-
getStringAttributeValue
protected java.lang.String getStringAttributeValue(int type) throws SomException- Throws:
SomException
-
getBooleanAttributeValue
protected boolean getBooleanAttributeValue(int type) throws SomException- Throws:
SomException
-
print
public void print()
-
setSkipNotifications
protected void setSkipNotifications(int n)
-
-