Changeset 6651


Ignore:
Timestamp:
07/06/10 10:58:33 (9 years ago)
Author:
callan
Message:

Handle class cast exceptions in ROI shape transformation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/meta/MetadataConverter.java

    r6617 r6651  
    14931493          if (ellipseDescriptionValue != null) dest.setEllipseDescription(ellipseDescriptionValue, roiIndex, shapeIndex); 
    14941494        } catch (NullPointerException e) { } 
     1495        catch (ClassCastException e) { } 
    14951496        try { 
    14961497          Integer ellipseFillValue = src.getEllipseFill(roiIndex, shapeIndex); 
    14971498          if (ellipseFillValue != null) dest.setEllipseFill(ellipseFillValue, roiIndex, shapeIndex); 
    14981499        } catch (NullPointerException e) { } 
     1500        catch (ClassCastException e) { } 
    14991501        try { 
    15001502          NonNegativeInteger ellipseFontSizeValue = src.getEllipseFontSize(roiIndex, shapeIndex); 
    15011503          if (ellipseFontSizeValue != null) dest.setEllipseFontSize(ellipseFontSizeValue, roiIndex, shapeIndex); 
    15021504        } catch (NullPointerException e) { } 
     1505        catch (ClassCastException e) { } 
    15031506        try { 
    15041507          String ellipseIDValue = src.getEllipseID(roiIndex, shapeIndex); 
    15051508          if (ellipseIDValue != null) dest.setEllipseID(ellipseIDValue, roiIndex, shapeIndex); 
    15061509        } catch (NullPointerException e) { } 
     1510        catch (ClassCastException e) { } 
    15071511        try { 
    15081512          String ellipseLabelValue = src.getEllipseLabel(roiIndex, shapeIndex); 
    15091513          if (ellipseLabelValue != null) dest.setEllipseLabel(ellipseLabelValue, roiIndex, shapeIndex); 
    15101514        } catch (NullPointerException e) { } 
     1515        catch (ClassCastException e) { } 
    15111516        try { 
    15121517          String ellipseNameValue = src.getEllipseName(roiIndex, shapeIndex); 
    15131518          if (ellipseNameValue != null) dest.setEllipseName(ellipseNameValue, roiIndex, shapeIndex); 
    15141519        } catch (NullPointerException e) { } 
     1520        catch (ClassCastException e) { } 
    15151521        try { 
    15161522          Double ellipseRadiusXValue = src.getEllipseRadiusX(roiIndex, shapeIndex); 
    15171523          if (ellipseRadiusXValue != null) dest.setEllipseRadiusX(ellipseRadiusXValue, roiIndex, shapeIndex); 
    15181524        } catch (NullPointerException e) { } 
     1525        catch (ClassCastException e) { } 
    15191526        try { 
    15201527          Double ellipseRadiusYValue = src.getEllipseRadiusY(roiIndex, shapeIndex); 
    15211528          if (ellipseRadiusYValue != null) dest.setEllipseRadiusY(ellipseRadiusYValue, roiIndex, shapeIndex); 
    15221529        } catch (NullPointerException e) { } 
     1530        catch (ClassCastException e) { } 
    15231531        try { 
    15241532          Integer ellipseStrokeValue = src.getEllipseStroke(roiIndex, shapeIndex); 
    15251533          if (ellipseStrokeValue != null) dest.setEllipseStroke(ellipseStrokeValue, roiIndex, shapeIndex); 
    15261534        } catch (NullPointerException e) { } 
     1535        catch (ClassCastException e) { } 
    15271536        try { 
    15281537          String ellipseStrokeDashArrayValue = src.getEllipseStrokeDashArray(roiIndex, shapeIndex); 
    15291538          if (ellipseStrokeDashArrayValue != null) dest.setEllipseStrokeDashArray(ellipseStrokeDashArrayValue, roiIndex, shapeIndex); 
    15301539        } catch (NullPointerException e) { } 
     1540        catch (ClassCastException e) { } 
    15311541        try { 
    15321542          Double ellipseStrokeWidthValue = src.getEllipseStrokeWidth(roiIndex, shapeIndex); 
    15331543          if (ellipseStrokeWidthValue != null) dest.setEllipseStrokeWidth(ellipseStrokeWidthValue, roiIndex, shapeIndex); 
    15341544        } catch (NullPointerException e) { } 
     1545        catch (ClassCastException e) { } 
    15351546        try { 
    15361547          NonNegativeInteger ellipseTheCValue = src.getEllipseTheC(roiIndex, shapeIndex); 
    15371548          if (ellipseTheCValue != null) dest.setEllipseTheC(ellipseTheCValue, roiIndex, shapeIndex); 
    15381549        } catch (NullPointerException e) { } 
     1550        catch (ClassCastException e) { } 
    15391551        try { 
    15401552          NonNegativeInteger ellipseTheTValue = src.getEllipseTheT(roiIndex, shapeIndex); 
    15411553          if (ellipseTheTValue != null) dest.setEllipseTheT(ellipseTheTValue, roiIndex, shapeIndex); 
    15421554        } catch (NullPointerException e) { } 
     1555        catch (ClassCastException e) { } 
    15431556        try { 
    15441557          NonNegativeInteger ellipseTheZValue = src.getEllipseTheZ(roiIndex, shapeIndex); 
    15451558          if (ellipseTheZValue != null) dest.setEllipseTheZ(ellipseTheZValue, roiIndex, shapeIndex); 
    15461559        } catch (NullPointerException e) { } 
     1560        catch (ClassCastException e) { } 
    15471561        try { 
    15481562          String ellipseTransformValue = src.getEllipseTransform(roiIndex, shapeIndex); 
    15491563          if (ellipseTransformValue != null) dest.setEllipseTransform(ellipseTransformValue, roiIndex, shapeIndex); 
    15501564        } catch (NullPointerException e) { } 
     1565        catch (ClassCastException e) { } 
    15511566        try { 
    15521567          Double ellipseXValue = src.getEllipseX(roiIndex, shapeIndex); 
    15531568          if (ellipseXValue != null) dest.setEllipseX(ellipseXValue, roiIndex, shapeIndex); 
    15541569        } catch (NullPointerException e) { } 
     1570        catch (ClassCastException e) { } 
    15551571        try { 
    15561572          Double ellipseYValue = src.getEllipseY(roiIndex, shapeIndex); 
    15571573          if (ellipseYValue != null) dest.setEllipseY(ellipseYValue, roiIndex, shapeIndex); 
    15581574        } catch (NullPointerException e) { } 
     1575        catch (ClassCastException e) { } 
    15591576        try { 
    15601577          String lineDescriptionValue = src.getLineDescription(roiIndex, shapeIndex); 
    15611578          if (lineDescriptionValue != null) dest.setLineDescription(lineDescriptionValue, roiIndex, shapeIndex); 
    15621579        } catch (NullPointerException e) { } 
     1580        catch (ClassCastException e) { } 
    15631581        try { 
    15641582          Integer lineFillValue = src.getLineFill(roiIndex, shapeIndex); 
    15651583          if (lineFillValue != null) dest.setLineFill(lineFillValue, roiIndex, shapeIndex); 
    15661584        } catch (NullPointerException e) { } 
     1585        catch (ClassCastException e) { } 
    15671586        try { 
    15681587          NonNegativeInteger lineFontSizeValue = src.getLineFontSize(roiIndex, shapeIndex); 
    15691588          if (lineFontSizeValue != null) dest.setLineFontSize(lineFontSizeValue, roiIndex, shapeIndex); 
    15701589        } catch (NullPointerException e) { } 
     1590        catch (ClassCastException e) { } 
    15711591        try { 
    15721592          String lineIDValue = src.getLineID(roiIndex, shapeIndex); 
    15731593          if (lineIDValue != null) dest.setLineID(lineIDValue, roiIndex, shapeIndex); 
    15741594        } catch (NullPointerException e) { } 
     1595        catch (ClassCastException e) { } 
    15751596        try { 
    15761597          String lineLabelValue = src.getLineLabel(roiIndex, shapeIndex); 
    15771598          if (lineLabelValue != null) dest.setLineLabel(lineLabelValue, roiIndex, shapeIndex); 
    15781599        } catch (NullPointerException e) { } 
     1600        catch (ClassCastException e) { } 
    15791601        try { 
    15801602          String lineNameValue = src.getLineName(roiIndex, shapeIndex); 
    15811603          if (lineNameValue != null) dest.setLineName(lineNameValue, roiIndex, shapeIndex); 
    15821604        } catch (NullPointerException e) { } 
     1605        catch (ClassCastException e) { } 
    15831606        try { 
    15841607          Integer lineStrokeValue = src.getLineStroke(roiIndex, shapeIndex); 
    15851608          if (lineStrokeValue != null) dest.setLineStroke(lineStrokeValue, roiIndex, shapeIndex); 
    15861609        } catch (NullPointerException e) { } 
     1610        catch (ClassCastException e) { } 
    15871611        try { 
    15881612          String lineStrokeDashArrayValue = src.getLineStrokeDashArray(roiIndex, shapeIndex); 
    15891613          if (lineStrokeDashArrayValue != null) dest.setLineStrokeDashArray(lineStrokeDashArrayValue, roiIndex, shapeIndex); 
    15901614        } catch (NullPointerException e) { } 
     1615        catch (ClassCastException e) { } 
    15911616        try { 
    15921617          Double lineStrokeWidthValue = src.getLineStrokeWidth(roiIndex, shapeIndex); 
    15931618          if (lineStrokeWidthValue != null) dest.setLineStrokeWidth(lineStrokeWidthValue, roiIndex, shapeIndex); 
    15941619        } catch (NullPointerException e) { } 
     1620        catch (ClassCastException e) { } 
    15951621        try { 
    15961622          NonNegativeInteger lineTheCValue = src.getLineTheC(roiIndex, shapeIndex); 
    15971623          if (lineTheCValue != null) dest.setLineTheC(lineTheCValue, roiIndex, shapeIndex); 
    15981624        } catch (NullPointerException e) { } 
     1625        catch (ClassCastException e) { } 
    15991626        try { 
    16001627          NonNegativeInteger lineTheTValue = src.getLineTheT(roiIndex, shapeIndex); 
    16011628          if (lineTheTValue != null) dest.setLineTheT(lineTheTValue, roiIndex, shapeIndex); 
    16021629        } catch (NullPointerException e) { } 
     1630        catch (ClassCastException e) { } 
    16031631        try { 
    16041632          NonNegativeInteger lineTheZValue = src.getLineTheZ(roiIndex, shapeIndex); 
    16051633          if (lineTheZValue != null) dest.setLineTheZ(lineTheZValue, roiIndex, shapeIndex); 
    16061634        } catch (NullPointerException e) { } 
     1635        catch (ClassCastException e) { } 
    16071636        try { 
    16081637          String lineTransformValue = src.getLineTransform(roiIndex, shapeIndex); 
    16091638          if (lineTransformValue != null) dest.setLineTransform(lineTransformValue, roiIndex, shapeIndex); 
    16101639        } catch (NullPointerException e) { } 
     1640        catch (ClassCastException e) { } 
    16111641        try { 
    16121642          Double lineX1Value = src.getLineX1(roiIndex, shapeIndex); 
    16131643          if (lineX1Value != null) dest.setLineX1(lineX1Value, roiIndex, shapeIndex); 
    16141644        } catch (NullPointerException e) { } 
     1645        catch (ClassCastException e) { } 
    16151646        try { 
    16161647          Double lineX2Value = src.getLineX2(roiIndex, shapeIndex); 
    16171648          if (lineX2Value != null) dest.setLineX2(lineX2Value, roiIndex, shapeIndex); 
    16181649        } catch (NullPointerException e) { } 
     1650        catch (ClassCastException e) { } 
    16191651        try { 
    16201652          Double lineY1Value = src.getLineY1(roiIndex, shapeIndex); 
    16211653          if (lineY1Value != null) dest.setLineY1(lineY1Value, roiIndex, shapeIndex); 
    16221654        } catch (NullPointerException e) { } 
     1655        catch (ClassCastException e) { } 
    16231656        try { 
    16241657          Double lineY2Value = src.getLineY2(roiIndex, shapeIndex); 
    16251658          if (lineY2Value != null) dest.setLineY2(lineY2Value, roiIndex, shapeIndex); 
    16261659        } catch (NullPointerException e) { } 
     1660        catch (ClassCastException e) { } 
    16271661        try { 
    16281662          String maskDescriptionValue = src.getMaskDescription(roiIndex, shapeIndex); 
    16291663          if (maskDescriptionValue != null) dest.setMaskDescription(maskDescriptionValue, roiIndex, shapeIndex); 
    16301664        } catch (NullPointerException e) { } 
     1665        catch (ClassCastException e) { } 
    16311666        try { 
    16321667          Integer maskFillValue = src.getMaskFill(roiIndex, shapeIndex); 
    16331668          if (maskFillValue != null) dest.setMaskFill(maskFillValue, roiIndex, shapeIndex); 
    16341669        } catch (NullPointerException e) { } 
     1670        catch (ClassCastException e) { } 
    16351671        try { 
    16361672          NonNegativeInteger maskFontSizeValue = src.getMaskFontSize(roiIndex, shapeIndex); 
    16371673          if (maskFontSizeValue != null) dest.setMaskFontSize(maskFontSizeValue, roiIndex, shapeIndex); 
    16381674        } catch (NullPointerException e) { } 
     1675        catch (ClassCastException e) { } 
    16391676        try { 
    16401677          String maskIDValue = src.getMaskID(roiIndex, shapeIndex); 
    16411678          if (maskIDValue != null) dest.setMaskID(maskIDValue, roiIndex, shapeIndex); 
    16421679        } catch (NullPointerException e) { } 
     1680        catch (ClassCastException e) { } 
    16431681        try { 
    16441682          String maskLabelValue = src.getMaskLabel(roiIndex, shapeIndex); 
    16451683          if (maskLabelValue != null) dest.setMaskLabel(maskLabelValue, roiIndex, shapeIndex); 
    16461684        } catch (NullPointerException e) { } 
     1685        catch (ClassCastException e) { } 
    16471686        try { 
    16481687          String maskNameValue = src.getMaskName(roiIndex, shapeIndex); 
    16491688          if (maskNameValue != null) dest.setMaskName(maskNameValue, roiIndex, shapeIndex); 
    16501689        } catch (NullPointerException e) { } 
     1690        catch (ClassCastException e) { } 
    16511691        try { 
    16521692          Integer maskStrokeValue = src.getMaskStroke(roiIndex, shapeIndex); 
    16531693          if (maskStrokeValue != null) dest.setMaskStroke(maskStrokeValue, roiIndex, shapeIndex); 
    16541694        } catch (NullPointerException e) { } 
     1695        catch (ClassCastException e) { } 
    16551696        try { 
    16561697          String maskStrokeDashArrayValue = src.getMaskStrokeDashArray(roiIndex, shapeIndex); 
    16571698          if (maskStrokeDashArrayValue != null) dest.setMaskStrokeDashArray(maskStrokeDashArrayValue, roiIndex, shapeIndex); 
    16581699        } catch (NullPointerException e) { } 
     1700        catch (ClassCastException e) { } 
    16591701        try { 
    16601702          Double maskStrokeWidthValue = src.getMaskStrokeWidth(roiIndex, shapeIndex); 
    16611703          if (maskStrokeWidthValue != null) dest.setMaskStrokeWidth(maskStrokeWidthValue, roiIndex, shapeIndex); 
    16621704        } catch (NullPointerException e) { } 
     1705        catch (ClassCastException e) { } 
    16631706        try { 
    16641707          NonNegativeInteger maskTheCValue = src.getMaskTheC(roiIndex, shapeIndex); 
    16651708          if (maskTheCValue != null) dest.setMaskTheC(maskTheCValue, roiIndex, shapeIndex); 
    16661709        } catch (NullPointerException e) { } 
     1710        catch (ClassCastException e) { } 
    16671711        try { 
    16681712          NonNegativeInteger maskTheTValue = src.getMaskTheT(roiIndex, shapeIndex); 
    16691713          if (maskTheTValue != null) dest.setMaskTheT(maskTheTValue, roiIndex, shapeIndex); 
    16701714        } catch (NullPointerException e) { } 
     1715        catch (ClassCastException e) { } 
    16711716        try { 
    16721717          NonNegativeInteger maskTheZValue = src.getMaskTheZ(roiIndex, shapeIndex); 
    16731718          if (maskTheZValue != null) dest.setMaskTheZ(maskTheZValue, roiIndex, shapeIndex); 
    16741719        } catch (NullPointerException e) { } 
     1720        catch (ClassCastException e) { } 
    16751721        try { 
    16761722          String maskTransformValue = src.getMaskTransform(roiIndex, shapeIndex); 
    16771723          if (maskTransformValue != null) dest.setMaskTransform(maskTransformValue, roiIndex, shapeIndex); 
    16781724        } catch (NullPointerException e) { } 
     1725        catch (ClassCastException e) { } 
    16791726        try { 
    16801727          Double maskXValue = src.getMaskX(roiIndex, shapeIndex); 
    16811728          if (maskXValue != null) dest.setMaskX(maskXValue, roiIndex, shapeIndex); 
    16821729        } catch (NullPointerException e) { } 
     1730        catch (ClassCastException e) { } 
    16831731        try { 
    16841732          Double maskYValue = src.getMaskY(roiIndex, shapeIndex); 
    16851733          if (maskYValue != null) dest.setMaskY(maskYValue, roiIndex, shapeIndex); 
    16861734        } catch (NullPointerException e) { } 
     1735        catch (ClassCastException e) { } 
    16871736        try { 
    16881737          String pathDefinitionValue = src.getPathDefinition(roiIndex, shapeIndex); 
    16891738          if (pathDefinitionValue != null) dest.setPathDefinition(pathDefinitionValue, roiIndex, shapeIndex); 
    16901739        } catch (NullPointerException e) { } 
     1740        catch (ClassCastException e) { } 
    16911741        try { 
    16921742          String pathDescriptionValue = src.getPathDescription(roiIndex, shapeIndex); 
    16931743          if (pathDescriptionValue != null) dest.setPathDescription(pathDescriptionValue, roiIndex, shapeIndex); 
    16941744        } catch (NullPointerException e) { } 
     1745        catch (ClassCastException e) { } 
    16951746        try { 
    16961747          Integer pathFillValue = src.getPathFill(roiIndex, shapeIndex); 
    16971748          if (pathFillValue != null) dest.setPathFill(pathFillValue, roiIndex, shapeIndex); 
    16981749        } catch (NullPointerException e) { } 
     1750        catch (ClassCastException e) { } 
    16991751        try { 
    17001752          NonNegativeInteger pathFontSizeValue = src.getPathFontSize(roiIndex, shapeIndex); 
    17011753          if (pathFontSizeValue != null) dest.setPathFontSize(pathFontSizeValue, roiIndex, shapeIndex); 
    17021754        } catch (NullPointerException e) { } 
     1755        catch (ClassCastException e) { } 
    17031756        try { 
    17041757          String pathIDValue = src.getPathID(roiIndex, shapeIndex); 
    17051758          if (pathIDValue != null) dest.setPathID(pathIDValue, roiIndex, shapeIndex); 
    17061759        } catch (NullPointerException e) { } 
     1760        catch (ClassCastException e) { } 
    17071761        try { 
    17081762          String pathLabelValue = src.getPathLabel(roiIndex, shapeIndex); 
    17091763          if (pathLabelValue != null) dest.setPathLabel(pathLabelValue, roiIndex, shapeIndex); 
    17101764        } catch (NullPointerException e) { } 
     1765        catch (ClassCastException e) { } 
    17111766        try { 
    17121767          String pathNameValue = src.getPathName(roiIndex, shapeIndex); 
    17131768          if (pathNameValue != null) dest.setPathName(pathNameValue, roiIndex, shapeIndex); 
    17141769        } catch (NullPointerException e) { } 
     1770        catch (ClassCastException e) { } 
    17151771        try { 
    17161772          Integer pathStrokeValue = src.getPathStroke(roiIndex, shapeIndex); 
    17171773          if (pathStrokeValue != null) dest.setPathStroke(pathStrokeValue, roiIndex, shapeIndex); 
    17181774        } catch (NullPointerException e) { } 
     1775        catch (ClassCastException e) { } 
    17191776        try { 
    17201777          String pathStrokeDashArrayValue = src.getPathStrokeDashArray(roiIndex, shapeIndex); 
    17211778          if (pathStrokeDashArrayValue != null) dest.setPathStrokeDashArray(pathStrokeDashArrayValue, roiIndex, shapeIndex); 
    17221779        } catch (NullPointerException e) { } 
     1780        catch (ClassCastException e) { } 
    17231781        try { 
    17241782          Double pathStrokeWidthValue = src.getPathStrokeWidth(roiIndex, shapeIndex); 
    17251783          if (pathStrokeWidthValue != null) dest.setPathStrokeWidth(pathStrokeWidthValue, roiIndex, shapeIndex); 
    17261784        } catch (NullPointerException e) { } 
     1785        catch (ClassCastException e) { } 
    17271786        try { 
    17281787          NonNegativeInteger pathTheCValue = src.getPathTheC(roiIndex, shapeIndex); 
    17291788          if (pathTheCValue != null) dest.setPathTheC(pathTheCValue, roiIndex, shapeIndex); 
    17301789        } catch (NullPointerException e) { } 
     1790        catch (ClassCastException e) { } 
    17311791        try { 
    17321792          NonNegativeInteger pathTheTValue = src.getPathTheT(roiIndex, shapeIndex); 
    17331793          if (pathTheTValue != null) dest.setPathTheT(pathTheTValue, roiIndex, shapeIndex); 
    17341794        } catch (NullPointerException e) { } 
     1795        catch (ClassCastException e) { } 
    17351796        try { 
    17361797          NonNegativeInteger pathTheZValue = src.getPathTheZ(roiIndex, shapeIndex); 
    17371798          if (pathTheZValue != null) dest.setPathTheZ(pathTheZValue, roiIndex, shapeIndex); 
    17381799        } catch (NullPointerException e) { } 
     1800        catch (ClassCastException e) { } 
    17391801        try { 
    17401802          String pathTransformValue = src.getPathTransform(roiIndex, shapeIndex); 
    17411803          if (pathTransformValue != null) dest.setPathTransform(pathTransformValue, roiIndex, shapeIndex); 
    17421804        } catch (NullPointerException e) { } 
     1805        catch (ClassCastException e) { } 
    17431806        try { 
    17441807          String pointDescriptionValue = src.getPointDescription(roiIndex, shapeIndex); 
    17451808          if (pointDescriptionValue != null) dest.setPointDescription(pointDescriptionValue, roiIndex, shapeIndex); 
    17461809        } catch (NullPointerException e) { } 
     1810        catch (ClassCastException e) { } 
    17471811        try { 
    17481812          Integer pointFillValue = src.getPointFill(roiIndex, shapeIndex); 
    17491813          if (pointFillValue != null) dest.setPointFill(pointFillValue, roiIndex, shapeIndex); 
    17501814        } catch (NullPointerException e) { } 
     1815        catch (ClassCastException e) { } 
    17511816        try { 
    17521817          NonNegativeInteger pointFontSizeValue = src.getPointFontSize(roiIndex, shapeIndex); 
    17531818          if (pointFontSizeValue != null) dest.setPointFontSize(pointFontSizeValue, roiIndex, shapeIndex); 
    17541819        } catch (NullPointerException e) { } 
     1820        catch (ClassCastException e) { } 
    17551821        try { 
    17561822          String pointIDValue = src.getPointID(roiIndex, shapeIndex); 
    17571823          if (pointIDValue != null) dest.setPointID(pointIDValue, roiIndex, shapeIndex); 
    17581824        } catch (NullPointerException e) { } 
     1825        catch (ClassCastException e) { } 
    17591826        try { 
    17601827          String pointLabelValue = src.getPointLabel(roiIndex, shapeIndex); 
    17611828          if (pointLabelValue != null) dest.setPointLabel(pointLabelValue, roiIndex, shapeIndex); 
    17621829        } catch (NullPointerException e) { } 
     1830        catch (ClassCastException e) { } 
    17631831        try { 
    17641832          String pointNameValue = src.getPointName(roiIndex, shapeIndex); 
    17651833          if (pointNameValue != null) dest.setPointName(pointNameValue, roiIndex, shapeIndex); 
    17661834        } catch (NullPointerException e) { } 
     1835        catch (ClassCastException e) { } 
    17671836        try { 
    17681837          Integer pointStrokeValue = src.getPointStroke(roiIndex, shapeIndex); 
    17691838          if (pointStrokeValue != null) dest.setPointStroke(pointStrokeValue, roiIndex, shapeIndex); 
    17701839        } catch (NullPointerException e) { } 
     1840        catch (ClassCastException e) { } 
    17711841        try { 
    17721842          String pointStrokeDashArrayValue = src.getPointStrokeDashArray(roiIndex, shapeIndex); 
    17731843          if (pointStrokeDashArrayValue != null) dest.setPointStrokeDashArray(pointStrokeDashArrayValue, roiIndex, shapeIndex); 
    17741844        } catch (NullPointerException e) { } 
     1845        catch (ClassCastException e) { } 
    17751846        try { 
    17761847          Double pointStrokeWidthValue = src.getPointStrokeWidth(roiIndex, shapeIndex); 
    17771848          if (pointStrokeWidthValue != null) dest.setPointStrokeWidth(pointStrokeWidthValue, roiIndex, shapeIndex); 
    17781849        } catch (NullPointerException e) { } 
     1850        catch (ClassCastException e) { } 
    17791851        try { 
    17801852          NonNegativeInteger pointTheCValue = src.getPointTheC(roiIndex, shapeIndex); 
    17811853          if (pointTheCValue != null) dest.setPointTheC(pointTheCValue, roiIndex, shapeIndex); 
    17821854        } catch (NullPointerException e) { } 
     1855        catch (ClassCastException e) { } 
    17831856        try { 
    17841857          NonNegativeInteger pointTheTValue = src.getPointTheT(roiIndex, shapeIndex); 
    17851858          if (pointTheTValue != null) dest.setPointTheT(pointTheTValue, roiIndex, shapeIndex); 
    17861859        } catch (NullPointerException e) { } 
     1860        catch (ClassCastException e) { } 
    17871861        try { 
    17881862          NonNegativeInteger pointTheZValue = src.getPointTheZ(roiIndex, shapeIndex); 
    17891863          if (pointTheZValue != null) dest.setPointTheZ(pointTheZValue, roiIndex, shapeIndex); 
    17901864        } catch (NullPointerException e) { } 
     1865        catch (ClassCastException e) { } 
    17911866        try { 
    17921867          String pointTransformValue = src.getPointTransform(roiIndex, shapeIndex); 
    17931868          if (pointTransformValue != null) dest.setPointTransform(pointTransformValue, roiIndex, shapeIndex); 
    17941869        } catch (NullPointerException e) { } 
     1870        catch (ClassCastException e) { } 
    17951871        try { 
    17961872          Double pointXValue = src.getPointX(roiIndex, shapeIndex); 
    17971873          if (pointXValue != null) dest.setPointX(pointXValue, roiIndex, shapeIndex); 
    17981874        } catch (NullPointerException e) { } 
     1875        catch (ClassCastException e) { } 
    17991876        try { 
    18001877          Double pointYValue = src.getPointY(roiIndex, shapeIndex); 
    18011878          if (pointYValue != null) dest.setPointY(pointYValue, roiIndex, shapeIndex); 
    18021879        } catch (NullPointerException e) { } 
     1880        catch (ClassCastException e) { } 
    18031881        try { 
    18041882          Boolean polylineClosedValue = src.getPolylineClosed(roiIndex, shapeIndex); 
    18051883          if (polylineClosedValue != null) dest.setPolylineClosed(polylineClosedValue, roiIndex, shapeIndex); 
    18061884        } catch (NullPointerException e) { } 
     1885        catch (ClassCastException e) { } 
    18071886        try { 
    18081887          String polylineDescriptionValue = src.getPolylineDescription(roiIndex, shapeIndex); 
    18091888          if (polylineDescriptionValue != null) dest.setPolylineDescription(polylineDescriptionValue, roiIndex, shapeIndex); 
    18101889        } catch (NullPointerException e) { } 
     1890        catch (ClassCastException e) { } 
    18111891        try { 
    18121892          Integer polylineFillValue = src.getPolylineFill(roiIndex, shapeIndex); 
    18131893          if (polylineFillValue != null) dest.setPolylineFill(polylineFillValue, roiIndex, shapeIndex); 
    18141894        } catch (NullPointerException e) { } 
     1895        catch (ClassCastException e) { } 
    18151896        try { 
    18161897          NonNegativeInteger polylineFontSizeValue = src.getPolylineFontSize(roiIndex, shapeIndex); 
    18171898          if (polylineFontSizeValue != null) dest.setPolylineFontSize(polylineFontSizeValue, roiIndex, shapeIndex); 
    18181899        } catch (NullPointerException e) { } 
     1900        catch (ClassCastException e) { } 
    18191901        try { 
    18201902          String polylineIDValue = src.getPolylineID(roiIndex, shapeIndex); 
    18211903          if (polylineIDValue != null) dest.setPolylineID(polylineIDValue, roiIndex, shapeIndex); 
    18221904        } catch (NullPointerException e) { } 
     1905        catch (ClassCastException e) { } 
    18231906        try { 
    18241907          String polylineLabelValue = src.getPolylineLabel(roiIndex, shapeIndex); 
    18251908          if (polylineLabelValue != null) dest.setPolylineLabel(polylineLabelValue, roiIndex, shapeIndex); 
    18261909        } catch (NullPointerException e) { } 
     1910        catch (ClassCastException e) { } 
    18271911        try { 
    18281912          String polylineNameValue = src.getPolylineName(roiIndex, shapeIndex); 
    18291913          if (polylineNameValue != null) dest.setPolylineName(polylineNameValue, roiIndex, shapeIndex); 
    18301914        } catch (NullPointerException e) { } 
     1915        catch (ClassCastException e) { } 
    18311916        try { 
    18321917          String polylinePointsValue = src.getPolylinePoints(roiIndex, shapeIndex); 
    18331918          if (polylinePointsValue != null) dest.setPolylinePoints(polylinePointsValue, roiIndex, shapeIndex); 
    18341919        } catch (NullPointerException e) { } 
     1920        catch (ClassCastException e) { } 
    18351921        try { 
    18361922          Integer polylineStrokeValue = src.getPolylineStroke(roiIndex, shapeIndex); 
    18371923          if (polylineStrokeValue != null) dest.setPolylineStroke(polylineStrokeValue, roiIndex, shapeIndex); 
    18381924        } catch (NullPointerException e) { } 
     1925        catch (ClassCastException e) { } 
    18391926        try { 
    18401927          String polylineStrokeDashArrayValue = src.getPolylineStrokeDashArray(roiIndex, shapeIndex); 
    18411928          if (polylineStrokeDashArrayValue != null) dest.setPolylineStrokeDashArray(polylineStrokeDashArrayValue, roiIndex, shapeIndex); 
    18421929        } catch (NullPointerException e) { } 
     1930        catch (ClassCastException e) { } 
    18431931        try { 
    18441932          Double polylineStrokeWidthValue = src.getPolylineStrokeWidth(roiIndex, shapeIndex); 
    18451933          if (polylineStrokeWidthValue != null) dest.setPolylineStrokeWidth(polylineStrokeWidthValue, roiIndex, shapeIndex); 
    18461934        } catch (NullPointerException e) { } 
     1935        catch (ClassCastException e) { } 
    18471936        try { 
    18481937          NonNegativeInteger polylineTheCValue = src.getPolylineTheC(roiIndex, shapeIndex); 
    18491938          if (polylineTheCValue != null) dest.setPolylineTheC(polylineTheCValue, roiIndex, shapeIndex); 
    18501939        } catch (NullPointerException e) { } 
     1940        catch (ClassCastException e) { } 
    18511941        try { 
    18521942          NonNegativeInteger polylineTheTValue = src.getPolylineTheT(roiIndex, shapeIndex); 
    18531943          if (polylineTheTValue != null) dest.setPolylineTheT(polylineTheTValue, roiIndex, shapeIndex); 
    18541944        } catch (NullPointerException e) { } 
     1945        catch (ClassCastException e) { } 
    18551946        try { 
    18561947          NonNegativeInteger polylineTheZValue = src.getPolylineTheZ(roiIndex, shapeIndex); 
    18571948          if (polylineTheZValue != null) dest.setPolylineTheZ(polylineTheZValue, roiIndex, shapeIndex); 
    18581949        } catch (NullPointerException e) { } 
     1950        catch (ClassCastException e) { } 
    18591951        try { 
    18601952          String polylineTransformValue = src.getPolylineTransform(roiIndex, shapeIndex); 
    18611953          if (polylineTransformValue != null) dest.setPolylineTransform(polylineTransformValue, roiIndex, shapeIndex); 
    18621954        } catch (NullPointerException e) { } 
     1955        catch (ClassCastException e) { } 
    18631956        try { 
    18641957          String rectangleDescriptionValue = src.getRectangleDescription(roiIndex, shapeIndex); 
    18651958          if (rectangleDescriptionValue != null) dest.setRectangleDescription(rectangleDescriptionValue, roiIndex, shapeIndex); 
    18661959        } catch (NullPointerException e) { } 
     1960        catch (ClassCastException e) { } 
    18671961        try { 
    18681962          Integer rectangleFillValue = src.getRectangleFill(roiIndex, shapeIndex); 
    18691963          if (rectangleFillValue != null) dest.setRectangleFill(rectangleFillValue, roiIndex, shapeIndex); 
    18701964        } catch (NullPointerException e) { } 
     1965        catch (ClassCastException e) { } 
    18711966        try { 
    18721967          NonNegativeInteger rectangleFontSizeValue = src.getRectangleFontSize(roiIndex, shapeIndex); 
    18731968          if (rectangleFontSizeValue != null) dest.setRectangleFontSize(rectangleFontSizeValue, roiIndex, shapeIndex); 
    18741969        } catch (NullPointerException e) { } 
     1970        catch (ClassCastException e) { } 
    18751971        try { 
    18761972          Double rectangleHeightValue = src.getRectangleHeight(roiIndex, shapeIndex); 
    18771973          if (rectangleHeightValue != null) dest.setRectangleHeight(rectangleHeightValue, roiIndex, shapeIndex); 
    18781974        } catch (NullPointerException e) { } 
     1975        catch (ClassCastException e) { } 
    18791976        try { 
    18801977          String rectangleIDValue = src.getRectangleID(roiIndex, shapeIndex); 
    18811978          if (rectangleIDValue != null) dest.setRectangleID(rectangleIDValue, roiIndex, shapeIndex); 
    18821979        } catch (NullPointerException e) { } 
     1980        catch (ClassCastException e) { } 
    18831981        try { 
    18841982          String rectangleLabelValue = src.getRectangleLabel(roiIndex, shapeIndex); 
    18851983          if (rectangleLabelValue != null) dest.setRectangleLabel(rectangleLabelValue, roiIndex, shapeIndex); 
    18861984        } catch (NullPointerException e) { } 
     1985        catch (ClassCastException e) { } 
    18871986        try { 
    18881987          String rectangleNameValue = src.getRectangleName(roiIndex, shapeIndex); 
    18891988          if (rectangleNameValue != null) dest.setRectangleName(rectangleNameValue, roiIndex, shapeIndex); 
    18901989        } catch (NullPointerException e) { } 
     1990        catch (ClassCastException e) { } 
    18911991        try { 
    18921992          Integer rectangleStrokeValue = src.getRectangleStroke(roiIndex, shapeIndex); 
    18931993          if (rectangleStrokeValue != null) dest.setRectangleStroke(rectangleStrokeValue, roiIndex, shapeIndex); 
    18941994        } catch (NullPointerException e) { } 
     1995        catch (ClassCastException e) { } 
    18951996        try { 
    18961997          String rectangleStrokeDashArrayValue = src.getRectangleStrokeDashArray(roiIndex, shapeIndex); 
    18971998          if (rectangleStrokeDashArrayValue != null) dest.setRectangleStrokeDashArray(rectangleStrokeDashArrayValue, roiIndex, shapeIndex); 
    18981999        } catch (NullPointerException e) { } 
     2000        catch (ClassCastException e) { } 
    18992001        try { 
    19002002          Double rectangleStrokeWidthValue = src.getRectangleStrokeWidth(roiIndex, shapeIndex); 
    19012003          if (rectangleStrokeWidthValue != null) dest.setRectangleStrokeWidth(rectangleStrokeWidthValue, roiIndex, shapeIndex); 
    19022004        } catch (NullPointerException e) { } 
     2005        catch (ClassCastException e) { } 
    19032006        try { 
    19042007          NonNegativeInteger rectangleTheCValue = src.getRectangleTheC(roiIndex, shapeIndex); 
    19052008          if (rectangleTheCValue != null) dest.setRectangleTheC(rectangleTheCValue, roiIndex, shapeIndex); 
    19062009        } catch (NullPointerException e) { } 
     2010        catch (ClassCastException e) { } 
    19072011        try { 
    19082012          NonNegativeInteger rectangleTheTValue = src.getRectangleTheT(roiIndex, shapeIndex); 
    19092013          if (rectangleTheTValue != null) dest.setRectangleTheT(rectangleTheTValue, roiIndex, shapeIndex); 
    19102014        } catch (NullPointerException e) { } 
     2015        catch (ClassCastException e) { } 
    19112016        try { 
    19122017          NonNegativeInteger rectangleTheZValue = src.getRectangleTheZ(roiIndex, shapeIndex); 
    19132018          if (rectangleTheZValue != null) dest.setRectangleTheZ(rectangleTheZValue, roiIndex, shapeIndex); 
    19142019        } catch (NullPointerException e) { } 
     2020        catch (ClassCastException e) { } 
    19152021        try { 
    19162022          String rectangleTransformValue = src.getRectangleTransform(roiIndex, shapeIndex); 
    19172023          if (rectangleTransformValue != null) dest.setRectangleTransform(rectangleTransformValue, roiIndex, shapeIndex); 
    19182024        } catch (NullPointerException e) { } 
     2025        catch (ClassCastException e) { } 
    19192026        try { 
    19202027          Double rectangleWidthValue = src.getRectangleWidth(roiIndex, shapeIndex); 
    19212028          if (rectangleWidthValue != null) dest.setRectangleWidth(rectangleWidthValue, roiIndex, shapeIndex); 
    19222029        } catch (NullPointerException e) { } 
     2030        catch (ClassCastException e) { } 
    19232031        try { 
    19242032          Double rectangleXValue = src.getRectangleX(roiIndex, shapeIndex); 
    19252033          if (rectangleXValue != null) dest.setRectangleX(rectangleXValue, roiIndex, shapeIndex); 
    19262034        } catch (NullPointerException e) { } 
     2035        catch (ClassCastException e) { } 
    19272036        try { 
    19282037          Double rectangleYValue = src.getRectangleY(roiIndex, shapeIndex); 
    19292038          if (rectangleYValue != null) dest.setRectangleY(rectangleYValue, roiIndex, shapeIndex); 
    19302039        } catch (NullPointerException e) { } 
     2040        catch (ClassCastException e) { } 
    19312041        try { 
    19322042          String textDescriptionValue = src.getTextDescription(roiIndex, shapeIndex); 
    19332043          if (textDescriptionValue != null) dest.setTextDescription(textDescriptionValue, roiIndex, shapeIndex); 
    19342044        } catch (NullPointerException e) { } 
     2045        catch (ClassCastException e) { } 
    19352046        try { 
    19362047          Integer textFillValue = src.getTextFill(roiIndex, shapeIndex); 
    19372048          if (textFillValue != null) dest.setTextFill(textFillValue, roiIndex, shapeIndex); 
    19382049        } catch (NullPointerException e) { } 
     2050        catch (ClassCastException e) { } 
    19392051        try { 
    19402052          NonNegativeInteger textFontSizeValue = src.getTextFontSize(roiIndex, shapeIndex); 
    19412053          if (textFontSizeValue != null) dest.setTextFontSize(textFontSizeValue, roiIndex, shapeIndex); 
    19422054        } catch (NullPointerException e) { } 
     2055        catch (ClassCastException e) { } 
    19432056        try { 
    19442057          String textIDValue = src.getTextID(roiIndex, shapeIndex); 
    19452058          if (textIDValue != null) dest.setTextID(textIDValue, roiIndex, shapeIndex); 
    19462059        } catch (NullPointerException e) { } 
     2060        catch (ClassCastException e) { } 
    19472061        try { 
    19482062          String textLabelValue = src.getTextLabel(roiIndex, shapeIndex); 
    19492063          if (textLabelValue != null) dest.setTextLabel(textLabelValue, roiIndex, shapeIndex); 
    19502064        } catch (NullPointerException e) { } 
     2065        catch (ClassCastException e) { } 
    19512066        try { 
    19522067          String textNameValue = src.getTextName(roiIndex, shapeIndex); 
    19532068          if (textNameValue != null) dest.setTextName(textNameValue, roiIndex, shapeIndex); 
    19542069        } catch (NullPointerException e) { } 
     2070        catch (ClassCastException e) { } 
    19552071        try { 
    19562072          Integer textStrokeValue = src.getTextStroke(roiIndex, shapeIndex); 
    19572073          if (textStrokeValue != null) dest.setTextStroke(textStrokeValue, roiIndex, shapeIndex); 
    19582074        } catch (NullPointerException e) { } 
     2075        catch (ClassCastException e) { } 
    19592076        try { 
    19602077          String textStrokeDashArrayValue = src.getTextStrokeDashArray(roiIndex, shapeIndex); 
    19612078          if (textStrokeDashArrayValue != null) dest.setTextStrokeDashArray(textStrokeDashArrayValue, roiIndex, shapeIndex); 
    19622079        } catch (NullPointerException e) { } 
     2080        catch (ClassCastException e) { } 
    19632081        try { 
    19642082          Double textStrokeWidthValue = src.getTextStrokeWidth(roiIndex, shapeIndex); 
    19652083          if (textStrokeWidthValue != null) dest.setTextStrokeWidth(textStrokeWidthValue, roiIndex, shapeIndex); 
    19662084        } catch (NullPointerException e) { } 
     2085        catch (ClassCastException e) { } 
    19672086        try { 
    19682087          NonNegativeInteger textTheCValue = src.getTextTheC(roiIndex, shapeIndex); 
    19692088          if (textTheCValue != null) dest.setTextTheC(textTheCValue, roiIndex, shapeIndex); 
    19702089        } catch (NullPointerException e) { } 
     2090        catch (ClassCastException e) { } 
    19712091        try { 
    19722092          NonNegativeInteger textTheTValue = src.getTextTheT(roiIndex, shapeIndex); 
    19732093          if (textTheTValue != null) dest.setTextTheT(textTheTValue, roiIndex, shapeIndex); 
    19742094        } catch (NullPointerException e) { } 
     2095        catch (ClassCastException e) { } 
    19752096        try { 
    19762097          NonNegativeInteger textTheZValue = src.getTextTheZ(roiIndex, shapeIndex); 
    19772098          if (textTheZValue != null) dest.setTextTheZ(textTheZValue, roiIndex, shapeIndex); 
    19782099        } catch (NullPointerException e) { } 
     2100        catch (ClassCastException e) { } 
    19792101        try { 
    19802102          String textTransformValue = src.getTextTransform(roiIndex, shapeIndex); 
    19812103          if (textTransformValue != null) dest.setTextTransform(textTransformValue, roiIndex, shapeIndex); 
    19822104        } catch (NullPointerException e) { } 
     2105        catch (ClassCastException e) { } 
    19832106        try { 
    19842107          String textValueValue = src.getTextValue(roiIndex, shapeIndex); 
    19852108          if (textValueValue != null) dest.setTextValue(textValueValue, roiIndex, shapeIndex); 
    19862109        } catch (NullPointerException e) { } 
     2110        catch (ClassCastException e) { } 
    19872111        try { 
    19882112          Double textXValue = src.getTextX(roiIndex, shapeIndex); 
    19892113          if (textXValue != null) dest.setTextX(textXValue, roiIndex, shapeIndex); 
    19902114        } catch (NullPointerException e) { } 
     2115        catch (ClassCastException e) { } 
    19912116        try { 
    19922117          Double textYValue = src.getTextY(roiIndex, shapeIndex); 
    19932118          if (textYValue != null) dest.setTextY(textYValue, roiIndex, shapeIndex); 
    19942119        } catch (NullPointerException e) { } 
     2120        catch (ClassCastException e) { } 
    19952121      } 
    19962122      } catch (NullPointerException e) { } 
Note: See TracChangeset for help on using the changeset viewer.