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.Object
Base class on which the other Pumice objects are built.- Author:
- tc
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
errortext
protected SomPumiceSession
somSession
-
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 void
addAttribute(java.lang.String av)
protected void
addAttribute(java.lang.String type, java.lang.String value)
void
addBindListener(SomPumiceBindListener l)
protected void
clearAttributes()
protected boolean
getBooleanAttributeValue(int type)
protected java.lang.Integer
getIntegerAttributeValue(int type)
SomPumiceSession
getSession()
protected java.lang.String
getStringAttributeValue(int type)
protected void
notifyBindListeners(int status)
protected void
notifyListener(SomCommandListener listener, int status)
protected void
notifyListeners(SomCommand command, int status)
protected void
notifyListeners(SomCommand command, int status, java.lang.String detail)
protected void
notifyListeners(SomCommand command, int status, java.lang.String[] pairs)
protected void
parsePairs(java.lang.String[] pairs)
void
print()
void
removeBindListener(SomPumiceBindListener l)
protected void
setSkipNotifications(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)
-
-