diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-07-27 16:04:43 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-07-27 16:04:43 -0700 |
commit | 038a4b832342ccf710d7d57bad1d10c7b36af022 (patch) | |
tree | 01a1b287852cfcd1750a401e7be030c8f5e5a6b7 /cpp/include/Slice/JavaUtil.h | |
parent | adding more Java optional tests (diff) | |
download | ice-038a4b832342ccf710d7d57bad1d10c7b36af022.tar.bz2 ice-038a4b832342ccf710d7d57bad1d10c7b36af022.tar.xz ice-038a4b832342ccf710d7d57bad1d10c7b36af022.zip |
updating Java API
Diffstat (limited to 'cpp/include/Slice/JavaUtil.h')
-rw-r--r-- | cpp/include/Slice/JavaUtil.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/include/Slice/JavaUtil.h b/cpp/include/Slice/JavaUtil.h index a3cba96e6c6..7fc742b2ac3 100644 --- a/cpp/include/Slice/JavaUtil.h +++ b/cpp/include/Slice/JavaUtil.h @@ -118,6 +118,11 @@ protected: std::string getStaticId(const TypePtr&, const std::string&) const; // + // Determines whether an in parameter should use the optional mapping. + // + bool useOptionalMapping(const ParamDeclPtr&); + + // // Returns the optional type corresponding to the given Slice type. // std::string getOptionalType(const TypePtr&); @@ -150,7 +155,8 @@ protected: enum OptionalMode { OptionalNone, - OptionalInParam, + OptionalInParamReq, // Use the required mapping. + OptionalInParamOpt, // Use the optional mapping. OptionalOutParam, OptionalReturnParam, OptionalMember @@ -158,7 +164,8 @@ protected: bool isOptionalParam(OptionalMode mode) const { - return mode == OptionalInParam || mode == OptionalOutParam || mode == OptionalReturnParam; + return mode == OptionalInParamReq || mode == OptionalInParamOpt || mode == OptionalOutParam || + mode == OptionalReturnParam; } void writeMarshalUnmarshalCode(::IceUtilInternal::Output&, const std::string&, const TypePtr&, OptionalMode, int, |