public class LabelI extends Label implements ome.model.ModelBased
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANNOTATIONLINKS |
static java.lang.String |
DETAILS |
static java.lang.String |
FILLCOLOR |
static java.lang.String |
FILLRULE |
static java.lang.String |
FONTFAMILY |
static java.lang.String |
FONTSIZE |
static java.lang.String |
FONTSTYLE |
static java.lang.String |
LOCKED |
static java.lang.String |
ROI |
static java.lang.String |
STROKECOLOR |
static java.lang.String |
STROKEDASHARRAY |
static java.lang.String |
STROKEWIDTH |
static java.lang.String |
TEXTVALUE |
static java.lang.String |
THEC |
static java.lang.String |
THET |
static java.lang.String |
THEZ |
static java.lang.String |
TRANSFORM |
static java.lang.String |
X |
static java.lang.String |
Y |
annotationLinksCountPerOwner, annotationLinksLoaded, annotationLinksSeq, fillColor, fillRule, fontFamily, fontSize, fontStyle, locked, roi, strokeColor, strokeDashArray, strokeWidth, theC, theT, theZ, transform, version| Constructor and Description |
|---|
LabelI() |
LabelI(long id,
boolean loaded) |
LabelI(RLong id,
boolean loaded) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllShapeAnnotationLinkSet(java.util.List<ShapeAnnotationLink> targets,
Ice.Current current) |
void |
addShapeAnnotationLink(ShapeAnnotationLink target,
Ice.Current current) |
void |
addShapeAnnotationLinkToBoth(ShapeAnnotationLink link,
boolean bothSides,
Ice.Current current) |
static java.util.List<LabelI> |
cast(java.util.List list)
Casts (without warning) the given list to a list of
the current type.
|
void |
clearAnnotationLinks(Ice.Current current) |
java.util.List |
copyAnnotationLinks(Ice.Current current) |
void |
copyObject(ome.util.Filterable model,
ome.util.ModelMapper _mapper)
Used by
IceMapper to inject an "ome.model" object into this
"omero.model" object. |
protected void |
errorIfUnloaded() |
ome.util.Filterable |
fillObject(ome.util.ReverseModelMapper _mapper)
Used by
IceMapper produce an "ome.model" object from this
"omero.model" object. |
java.util.List<ShapeAnnotationLink> |
findShapeAnnotationLink(Annotation removal,
Ice.Current current) |
protected java.util.List |
getAnnotationLinks(Ice.Current current) |
java.util.Map<java.lang.Long,java.lang.Long> |
getAnnotationLinksCountPerOwner(Ice.Current current) |
Details |
getDetails(Ice.Current current) |
RInt |
getFillColor(Ice.Current current) |
RString |
getFillRule(Ice.Current current) |
RString |
getFontFamily(Ice.Current current) |
Length |
getFontSize(Ice.Current current) |
RString |
getFontStyle(Ice.Current current) |
RLong |
getId(Ice.Current current) |
RBool |
getLocked(Ice.Current current) |
Roi |
getRoi(Ice.Current current) |
RInt |
getStrokeColor(Ice.Current current) |
RString |
getStrokeDashArray(Ice.Current current) |
Length |
getStrokeWidth(Ice.Current current) |
RString |
getTextValue(Ice.Current current) |
RInt |
getTheC(Ice.Current current) |
RInt |
getTheT(Ice.Current current) |
RInt |
getTheZ(Ice.Current current) |
AffineTransform |
getTransform(Ice.Current current) |
RInt |
getVersion(Ice.Current current) |
RDouble |
getX(Ice.Current current) |
RDouble |
getY(Ice.Current current) |
boolean |
isAnnotated(Ice.Current current)
Allows for the attachment of any omero.model.Annotation
subclasses.
|
boolean |
isAnnotationLinksLoaded() |
boolean |
isGlobal(Ice.Current current)
Marker interface which means that special rules apply
for both reading and writing these instances.
|
boolean |
isLink(Ice.Current current)
A link between two other types.
|
boolean |
isLoaded(Ice.Current current)
Tests if the objects are loaded or not.
|
boolean |
isMutable(Ice.Current current)
The server will persist changes made to these types.
|
java.util.Iterator |
iterateAnnotationLinks() |
ShapeAnnotationLink |
linkAnnotation(Annotation addition,
Ice.Current current) |
java.util.List<Annotation> |
linkedAnnotationList(Ice.Current current) |
IObject |
proxy(Ice.Current current)
Return another instance of the same type as this instance
constructed as if by: new InstanceI( this.id.val, false );
|
void |
reloadAnnotationLinks(Shape toCopy,
Ice.Current current) |
void |
removeAllShapeAnnotationLinkSet(java.util.List<ShapeAnnotationLink> targets,
Ice.Current current) |
void |
removeShapeAnnotationLink(ShapeAnnotationLink target,
Ice.Current current) |
void |
removeShapeAnnotationLinkFromBoth(ShapeAnnotationLink link,
boolean bothSides,
Ice.Current current) |
protected void |
setAnnotationLinks(java.util.List annotationLinks,
Ice.Current current) |
void |
setFillColor(RInt fillColor,
Ice.Current current) |
void |
setFillRule(RString fillRule,
Ice.Current current) |
void |
setFontFamily(RString fontFamily,
Ice.Current current) |
void |
setFontSize(Length fontSize,
Ice.Current current) |
void |
setFontStyle(RString fontStyle,
Ice.Current current) |
void |
setId(RLong id,
Ice.Current current) |
void |
setLocked(RBool locked,
Ice.Current current) |
void |
setRoi(Roi roi,
Ice.Current current) |
void |
setStrokeColor(RInt strokeColor,
Ice.Current current) |
void |
setStrokeDashArray(RString strokeDashArray,
Ice.Current current) |
void |
setStrokeWidth(Length strokeWidth,
Ice.Current current) |
void |
setTextValue(RString textValue,
Ice.Current current) |
void |
setTheC(RInt theC,
Ice.Current current) |
void |
setTheT(RInt theT,
Ice.Current current) |
void |
setTheZ(RInt theZ,
Ice.Current current) |
void |
setTransform(AffineTransform transform,
Ice.Current current) |
void |
setVersion(RInt version,
Ice.Current current) |
void |
setX(RDouble x,
Ice.Current current) |
void |
setY(RDouble y,
Ice.Current current) |
IObject |
shallowCopy(Ice.Current current)
Return another instance of the same type as this instance
with all single-value entities unloaded and all members of
collections also unloaded.
|
int |
sizeOfAnnotationLinks(Ice.Current current) |
protected void |
throwNullCollectionException(java.lang.String propertyName) |
protected void |
toggleCollectionsLoaded(boolean load) |
void |
unlinkAnnotation(Annotation removal,
Ice.Current current) |
void |
unload(Ice.Current current)
Sets the loaded boolean to false and empties all state
from this entity to make sending it over the network
less costly.
|
void |
unloadAnnotationLinks(Ice.Current current) |
void |
unloadCollections(Ice.Current current)
Each collection can also be unloaded, independently
of the object itself.
|
void |
unloadDetails(Ice.Current current)
As with collections, the objects under details can link
to many other objects.
|
void |
unloadFillColor() |
void |
unloadFillRule() |
void |
unloadFontFamily() |
void |
unloadFontSize() |
void |
unloadFontStyle() |
void |
unloadLocked() |
void |
unloadRoi() |
void |
unloadStrokeColor() |
void |
unloadStrokeDashArray() |
void |
unloadStrokeWidth() |
void |
unloadTextValue() |
void |
unloadTheC() |
void |
unloadTheT() |
void |
unloadTheZ() |
void |
unloadTransform() |
void |
unloadX() |
void |
unloadY() |
___getTextValue, ___getX, ___getY, ___setTextValue, ___setX, ___setY, __dispatch, __readImpl, __writeImpl, clone, getTextValue, getX, getY, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, setTextValue, setX, setY___addAllShapeAnnotationLinkSet, ___addShapeAnnotationLink, ___addShapeAnnotationLinkToBoth, ___clearAnnotationLinks, ___copyAnnotationLinks, ___findShapeAnnotationLink, ___getAnnotationLinksCountPerOwner, ___getFillColor, ___getFillRule, ___getFontFamily, ___getFontSize, ___getFontStyle, ___getLocked, ___getRoi, ___getStrokeColor, ___getStrokeDashArray, ___getStrokeWidth, ___getTheC, ___getTheT, ___getTheZ, ___getTransform, ___getVersion, ___linkAnnotation, ___linkedAnnotationList, ___reloadAnnotationLinks, ___removeAllShapeAnnotationLinkSet, ___removeShapeAnnotationLink, ___removeShapeAnnotationLinkFromBoth, ___setFillColor, ___setFillRule, ___setFontFamily, ___setFontSize, ___setFontStyle, ___setLocked, ___setRoi, ___setStrokeColor, ___setStrokeDashArray, ___setStrokeWidth, ___setTheC, ___setTheT, ___setTheZ, ___setTransform, ___setVersion, ___sizeOfAnnotationLinks, ___unlinkAnnotation, ___unloadAnnotationLinks, addAllShapeAnnotationLinkSet, addShapeAnnotationLink, addShapeAnnotationLinkToBoth, clearAnnotationLinks, copyAnnotationLinks, findShapeAnnotationLink, getAnnotationLinksCountPerOwner, getFillColor, getFillRule, getFontFamily, getFontSize, getFontStyle, getLocked, getRoi, getStrokeColor, getStrokeDashArray, getStrokeWidth, getTheC, getTheT, getTheZ, getTransform, getVersion, linkAnnotation, linkedAnnotationList, reloadAnnotationLinks, removeAllShapeAnnotationLinkSet, removeShapeAnnotationLink, removeShapeAnnotationLinkFromBoth, setFillColor, setFillRule, setFontFamily, setFontSize, setFontStyle, setLocked, setRoi, setStrokeColor, setStrokeDashArray, setStrokeWidth, setTheC, setTheT, setTheZ, setTransform, setVersion, sizeOfAnnotationLinks, unlinkAnnotation, unloadAnnotationLinks___getDetails, ___getId, ___isAnnotated, ___isGlobal, ___isLink, ___isLoaded, ___isMutable, ___proxy, ___setId, ___shallowCopy, ___unload, ___unloadCollections, ___unloadDetails, getDetails, getId, isAnnotated, isGlobal, isLink, isLoaded, isMutable, proxy, setId, shallowCopy, unload, unloadCollections, unloadDetails___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __read, __read, __readImpl, __write, __write, __writeImpl, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshalequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAllShapeAnnotationLinkSet, addShapeAnnotationLink, addShapeAnnotationLinkToBoth, clearAnnotationLinks, copyAnnotationLinks, findShapeAnnotationLink, getAnnotationLinksCountPerOwner, getFillColor, getFillRule, getFontFamily, getFontSize, getFontStyle, getLocked, getRoi, getStrokeColor, getStrokeDashArray, getStrokeWidth, getTheC, getTheT, getTheZ, getTransform, getVersion, linkAnnotation, linkedAnnotationList, reloadAnnotationLinks, removeAllShapeAnnotationLinkSet, removeShapeAnnotationLink, removeShapeAnnotationLinkFromBoth, setFillColor, setFillRule, setFontFamily, setFontSize, setFontStyle, setLocked, setRoi, setStrokeColor, setStrokeDashArray, setStrokeWidth, setTheC, setTheT, setTheZ, setTransform, setVersion, sizeOfAnnotationLinks, unlinkAnnotation, unloadAnnotationLinksgetDetails, getId, isAnnotated, isGlobal, isLink, isLoaded, isMutable, proxy, setId, shallowCopy, unload, unloadCollections, unloadDetailspublic static final java.lang.String X
public static final java.lang.String Y
public static final java.lang.String TEXTVALUE
public static final java.lang.String THEZ
public static final java.lang.String THET
public static final java.lang.String THEC
public static final java.lang.String ROI
public static final java.lang.String LOCKED
public static final java.lang.String TRANSFORM
public static final java.lang.String FILLCOLOR
public static final java.lang.String FILLRULE
public static final java.lang.String STROKECOLOR
public static final java.lang.String STROKEDASHARRAY
public static final java.lang.String STROKEWIDTH
public static final java.lang.String FONTFAMILY
public static final java.lang.String FONTSIZE
public static final java.lang.String FONTSTYLE
public static final java.lang.String ANNOTATIONLINKS
public static final java.lang.String DETAILS
public LabelI()
public LabelI(long id,
boolean loaded)
public LabelI(RLong id, boolean loaded)
protected void errorIfUnloaded()
throws UnloadedEntityException
UnloadedEntityExceptionprotected void throwNullCollectionException(java.lang.String propertyName)
throws UnloadedCollectionException
UnloadedCollectionExceptionprotected void toggleCollectionsLoaded(boolean load)
public void unload(Ice.Current current)
_IObjectOperationsunload in interface _IObjectOperationscurrent - The Current object for the invocation.public boolean isLoaded(Ice.Current current)
_IObjectOperationsisLoaded in interface _IObjectOperationscurrent - The Current object for the invocation.public void unloadCollections(Ice.Current current)
_IObjectOperationsunloadCollections in interface _IObjectOperationscurrent - The Current object for the invocation.public boolean isGlobal(Ice.Current current)
_IObjectOperationsisGlobal in interface _IObjectOperationscurrent - The Current object for the invocation.public boolean isMutable(Ice.Current current)
_IObjectOperationsisMutable in interface _IObjectOperationscurrent - The Current object for the invocation.public boolean isAnnotated(Ice.Current current)
_IObjectOperationsisAnnotated in interface _IObjectOperationscurrent - The Current object for the invocation.public boolean isLink(Ice.Current current)
_IObjectOperationsisLink in interface _IObjectOperationscurrent - The Current object for the invocation.public IObject shallowCopy(Ice.Current current)
_IObjectOperationsshallowCopy in interface _IObjectOperationscurrent - The Current object for the invocation.public IObject proxy(Ice.Current current)
_IObjectOperationsproxy in interface _IObjectOperationscurrent - The Current object for the invocation.public RLong getId(Ice.Current current)
getId in interface _IObjectOperationspublic void setId(RLong id, Ice.Current current)
setId in interface _IObjectOperationspublic Details getDetails(Ice.Current current)
getDetails in interface _IObjectOperationspublic void unloadDetails(Ice.Current current)
_IObjectOperationsunloadDetails in interface _IObjectOperationscurrent - The Current object for the invocation.public RInt getVersion(Ice.Current current)
getVersion in interface _ShapeOperationspublic void setVersion(RInt version, Ice.Current current)
setVersion in interface _ShapeOperationspublic void unloadX()
public RDouble getX(Ice.Current current) throws UnloadedEntityException
getX in interface _LabelOperationsUnloadedEntityExceptionpublic void setX(RDouble x, Ice.Current current) throws UnloadedEntityException
setX in interface _LabelOperationsUnloadedEntityExceptionpublic void unloadY()
public RDouble getY(Ice.Current current) throws UnloadedEntityException
getY in interface _LabelOperationsUnloadedEntityExceptionpublic void setY(RDouble y, Ice.Current current) throws UnloadedEntityException
setY in interface _LabelOperationsUnloadedEntityExceptionpublic void unloadTextValue()
public RString getTextValue(Ice.Current current) throws UnloadedEntityException
getTextValue in interface _LabelOperationsUnloadedEntityExceptionpublic void setTextValue(RString textValue, Ice.Current current) throws UnloadedEntityException
setTextValue in interface _LabelOperationsUnloadedEntityExceptionpublic void unloadTheZ()
public RInt getTheZ(Ice.Current current) throws UnloadedEntityException
getTheZ in interface _ShapeOperationsUnloadedEntityExceptionpublic void setTheZ(RInt theZ, Ice.Current current) throws UnloadedEntityException
setTheZ in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadTheT()
public RInt getTheT(Ice.Current current) throws UnloadedEntityException
getTheT in interface _ShapeOperationsUnloadedEntityExceptionpublic void setTheT(RInt theT, Ice.Current current) throws UnloadedEntityException
setTheT in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadTheC()
public RInt getTheC(Ice.Current current) throws UnloadedEntityException
getTheC in interface _ShapeOperationsUnloadedEntityExceptionpublic void setTheC(RInt theC, Ice.Current current) throws UnloadedEntityException
setTheC in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadRoi()
public Roi getRoi(Ice.Current current) throws UnloadedEntityException
getRoi in interface _ShapeOperationsUnloadedEntityExceptionpublic void setRoi(Roi roi, Ice.Current current) throws UnloadedEntityException
setRoi in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadLocked()
public RBool getLocked(Ice.Current current) throws UnloadedEntityException
getLocked in interface _ShapeOperationsUnloadedEntityExceptionpublic void setLocked(RBool locked, Ice.Current current) throws UnloadedEntityException
setLocked in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadTransform()
public AffineTransform getTransform(Ice.Current current) throws UnloadedEntityException
getTransform in interface _ShapeOperationsUnloadedEntityExceptionpublic void setTransform(AffineTransform transform, Ice.Current current) throws UnloadedEntityException
setTransform in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadFillColor()
public RInt getFillColor(Ice.Current current) throws UnloadedEntityException
getFillColor in interface _ShapeOperationsUnloadedEntityExceptionpublic void setFillColor(RInt fillColor, Ice.Current current) throws UnloadedEntityException
setFillColor in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadFillRule()
public RString getFillRule(Ice.Current current) throws UnloadedEntityException
getFillRule in interface _ShapeOperationsUnloadedEntityExceptionpublic void setFillRule(RString fillRule, Ice.Current current) throws UnloadedEntityException
setFillRule in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadStrokeColor()
public RInt getStrokeColor(Ice.Current current) throws UnloadedEntityException
getStrokeColor in interface _ShapeOperationsUnloadedEntityExceptionpublic void setStrokeColor(RInt strokeColor, Ice.Current current) throws UnloadedEntityException
setStrokeColor in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadStrokeDashArray()
public RString getStrokeDashArray(Ice.Current current) throws UnloadedEntityException
getStrokeDashArray in interface _ShapeOperationsUnloadedEntityExceptionpublic void setStrokeDashArray(RString strokeDashArray, Ice.Current current) throws UnloadedEntityException
setStrokeDashArray in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadStrokeWidth()
public Length getStrokeWidth(Ice.Current current) throws UnloadedEntityException
getStrokeWidth in interface _ShapeOperationsUnloadedEntityExceptionpublic void setStrokeWidth(Length strokeWidth, Ice.Current current) throws UnloadedEntityException
setStrokeWidth in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadFontFamily()
public RString getFontFamily(Ice.Current current) throws UnloadedEntityException
getFontFamily in interface _ShapeOperationsUnloadedEntityExceptionpublic void setFontFamily(RString fontFamily, Ice.Current current) throws UnloadedEntityException
setFontFamily in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadFontSize()
public Length getFontSize(Ice.Current current) throws UnloadedEntityException
getFontSize in interface _ShapeOperationsUnloadedEntityExceptionpublic void setFontSize(Length fontSize, Ice.Current current) throws UnloadedEntityException
setFontSize in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadFontStyle()
public RString getFontStyle(Ice.Current current) throws UnloadedEntityException
getFontStyle in interface _ShapeOperationsUnloadedEntityExceptionpublic void setFontStyle(RString fontStyle, Ice.Current current) throws UnloadedEntityException
setFontStyle in interface _ShapeOperationsUnloadedEntityExceptionpublic void unloadAnnotationLinks(Ice.Current current)
unloadAnnotationLinks in interface _ShapeOperationsprotected java.util.List getAnnotationLinks(Ice.Current current)
throws UnloadedEntityException
UnloadedEntityExceptionprotected void setAnnotationLinks(java.util.List annotationLinks,
Ice.Current current)
throws UnloadedEntityException
UnloadedEntityExceptionpublic boolean isAnnotationLinksLoaded()
public int sizeOfAnnotationLinks(Ice.Current current)
throws UnloadedEntityException
sizeOfAnnotationLinks in interface _ShapeOperationsUnloadedEntityExceptionpublic java.util.List copyAnnotationLinks(Ice.Current current)
throws UnloadedEntityException
copyAnnotationLinks in interface _ShapeOperationsUnloadedEntityExceptionpublic java.util.Iterator iterateAnnotationLinks()
throws UnloadedEntityException
UnloadedEntityExceptionpublic void addShapeAnnotationLink(ShapeAnnotationLink target, Ice.Current current) throws UnloadedEntityException
addShapeAnnotationLink in interface _ShapeOperationsUnloadedEntityExceptionpublic void addAllShapeAnnotationLinkSet(java.util.List<ShapeAnnotationLink> targets, Ice.Current current) throws UnloadedEntityException
addAllShapeAnnotationLinkSet in interface _ShapeOperationsUnloadedEntityExceptionpublic void removeShapeAnnotationLink(ShapeAnnotationLink target, Ice.Current current) throws UnloadedEntityException
removeShapeAnnotationLink in interface _ShapeOperationsUnloadedEntityExceptionpublic void removeAllShapeAnnotationLinkSet(java.util.List<ShapeAnnotationLink> targets, Ice.Current current) throws UnloadedEntityException
removeAllShapeAnnotationLinkSet in interface _ShapeOperationsUnloadedEntityExceptionpublic void clearAnnotationLinks(Ice.Current current)
throws UnloadedEntityException
clearAnnotationLinks in interface _ShapeOperationsUnloadedEntityExceptionpublic void reloadAnnotationLinks(Shape toCopy, Ice.Current current) throws UnloadedEntityException
reloadAnnotationLinks in interface _ShapeOperationsUnloadedEntityExceptionpublic java.util.Map<java.lang.Long,java.lang.Long> getAnnotationLinksCountPerOwner(Ice.Current current)
getAnnotationLinksCountPerOwner in interface _ShapeOperationspublic ShapeAnnotationLink linkAnnotation(Annotation addition, Ice.Current current) throws UnloadedEntityException
linkAnnotation in interface _ShapeOperationsUnloadedEntityExceptionpublic void addShapeAnnotationLinkToBoth(ShapeAnnotationLink link, boolean bothSides, Ice.Current current) throws UnloadedEntityException
addShapeAnnotationLinkToBoth in interface _ShapeOperationsUnloadedEntityExceptionpublic java.util.List<ShapeAnnotationLink> findShapeAnnotationLink(Annotation removal, Ice.Current current) throws UnloadedEntityException
findShapeAnnotationLink in interface _ShapeOperationsUnloadedEntityExceptionpublic void unlinkAnnotation(Annotation removal, Ice.Current current) throws UnloadedEntityException
unlinkAnnotation in interface _ShapeOperationsUnloadedEntityExceptionpublic void removeShapeAnnotationLinkFromBoth(ShapeAnnotationLink link, boolean bothSides, Ice.Current current) throws UnloadedEntityException, UnloadedCollectionException
removeShapeAnnotationLinkFromBoth in interface _ShapeOperationsUnloadedEntityExceptionUnloadedCollectionExceptionpublic java.util.List<Annotation> linkedAnnotationList(Ice.Current current) throws UnloadedEntityException
linkedAnnotationList in interface _ShapeOperationsUnloadedEntityExceptionpublic void copyObject(ome.util.Filterable model,
ome.util.ModelMapper _mapper)
IceMapper to inject an "ome.model" object into this
"omero.model" object.copyObject in interface ome.model.ModelBasedpublic ome.util.Filterable fillObject(ome.util.ReverseModelMapper _mapper)
IceMapper produce an "ome.model" object from this
"omero.model" object.fillObject in interface ome.model.ModelBasedpublic static java.util.List<LabelI> cast(java.util.List list)
java.lang.ClassCastException