|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttrHandler
This interface is implemented by Attribute Handlers; It provides services for the Attribute Manager.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Method Summary | |
---|---|
java.lang.String |
getName()
Getting the name of this handler so an attribute manager can display it in the handlers' menu. |
HandlerExpr |
newHandlerExpr(HandlerType type,
java.lang.String expr)
Getting the expression handle by providing the type and a String-representation of the expression. |
HandlerType |
newHandlerType(java.lang.String typeString)
Getting the type handle for a textual representation, for example "int" -> int. |
HandlerExpr |
newHandlerValue(HandlerType type,
java.lang.Object value)
Getting the expression handle by providing the type and an appropriate instance of the type. |
Field Detail |
---|
static final long serialVersionUID
Method Detail |
---|
java.lang.String getName()
HandlerType newHandlerType(java.lang.String typeString) throws AttrHandlerException
typeString
- The textual representation for the type wanted.
AttrHandlerException
- When the type cannot be found in the handler.HandlerExpr newHandlerExpr(HandlerType type, java.lang.String expr) throws AttrHandlerException
type
- A handle of one of the types created by 'newHandlerType()'.
AttrHandlerException
- When the expression String cannot be a representation of
an expression of the given type.HandlerExpr newHandlerValue(HandlerType type, java.lang.Object value) throws AttrHandlerException
type
- A handle of one of the types created by 'newHandlerType()'.
AttrHandlerException
- When the instance is not of the required type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |