public class DefaultChunkType extends DefaultAdaptable implements IChunkType
Modifier and Type | Field and Description |
---|---|
protected ACTREventDispatcher<IChunkType,IChunkTypeListener> |
_eventDispatcher |
protected ISubsymbolicChunkType |
_subsymbolicChunkType |
protected ISymbolicChunkType |
_symbolicChunkType |
Constructor and Description |
---|
DefaultChunkType(IModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IChunkTypeListener cl,
java.util.concurrent.Executor executor)
Adds a feature to the IChunkTypeListener attribute of the DefaultChunkType5
object
|
void |
bind(ISymbolicChunkType symbolic,
ISubsymbolicChunkType subsymbolic) |
int |
compareTo(IChunkType o)
lexically compare chunktypes
|
void |
dispatch(ChunkTypeEvent event)
Description of the Method
|
void |
dispose()
Description of the Method
|
void |
encode() |
boolean |
equals(IChunkType obj)
Description of the Method
|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getAdapter(java.lang.Class adapterClass) |
java.lang.String |
getComment()
Gets the comment attribute of the Commentable object
|
java.lang.Object |
getMetaData(java.lang.String key)
Gets the MetaData attribute of the MetaContainer object
|
java.util.Collection<java.lang.String> |
getMetaDataKeys()
return all the keys
|
IModel |
getModel()
get the model that contains this chunktype
|
ISubsymbolicChunkType |
getSubsymbolicChunkType()
Gets the subsymbolicChunkType attribute of the DefaultChunkType5 object
|
ISymbolicChunkType |
getSymbolicChunkType()
Gets the symbolicChunkType attribute of the DefaultChunkType5 object
|
int |
hashCode() |
boolean |
hasListeners() |
boolean |
isA(IChunkType ct)
Gets the a attribute of the IChunkType object
|
boolean |
isEncoded()
has this chunktype been encoded
|
void |
removeListener(IChunkTypeListener cl)
remove chunk listener
|
void |
setComment(java.lang.String comment)
Sets the comment attribute of the DefaultChunkType5 object
|
void |
setMetaData(java.lang.String key,
java.lang.Object value)
Sets the MetaData attribute of the MetaContainer object
|
java.lang.String |
toString() |
addAdapterFactory, removeAdapterFactory
protected ACTREventDispatcher<IChunkType,IChunkTypeListener> _eventDispatcher
protected ISymbolicChunkType _symbolicChunkType
protected ISubsymbolicChunkType _subsymbolicChunkType
public DefaultChunkType(IModel model)
public void encode()
encode
in interface IChunkType
public IModel getModel()
IChunkType
getModel
in interface IChunkType
public boolean isEncoded()
IChunkType
isEncoded
in interface IChunkType
public boolean hasListeners()
hasListeners
in interface IChunkType
public void addListener(IChunkTypeListener cl, java.util.concurrent.Executor executor)
addListener
in interface IChunkType
public void removeListener(IChunkTypeListener cl)
IChunkType
removeListener
in interface IChunkType
public void dispatch(ChunkTypeEvent event)
dispatch
in interface IChunkType
public java.lang.String getComment()
ICommentable
getComment
in interface ICommentable
public void setComment(java.lang.String comment)
setComment
in interface ICommentable
comment
- The new comment valuepublic boolean isA(IChunkType ct)
IChunkType
isA
in interface IChunkType
ct
- Description of Parameterpublic java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(IChunkType o)
compareTo
in interface java.lang.Comparable<IChunkType>
public void dispose()
dispose
in interface IChunkType
public boolean equals(IChunkType obj)
obj
- Description of Parameterpublic java.lang.Object getAdapter(java.lang.Class adapterClass)
getAdapter
in interface IAdaptable
getAdapter
in class DefaultAdaptable
public java.lang.Object getMetaData(java.lang.String key)
IMetaContainer
getMetaData
in interface IMetaContainer
key
- Description of Parameterpublic void setMetaData(java.lang.String key, java.lang.Object value)
setMetaData
in interface IMetaContainer
key
- The new MetaData valuevalue
- The new MetaData valuepublic java.util.Collection<java.lang.String> getMetaDataKeys()
getMetaDataKeys
in interface IMetaContainer
public void bind(ISymbolicChunkType symbolic, ISubsymbolicChunkType subsymbolic)
public ISymbolicChunkType getSymbolicChunkType()
getSymbolicChunkType
in interface IChunkType
public ISubsymbolicChunkType getSubsymbolicChunkType()
getSubsymbolicChunkType
in interface IChunkType
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object