/** * Create an instance of {@link CalAddressListParamType } * */ public CalAddressListParamType createCalAddressListParamType() { return new CalAddressListParamType(); }
@Override public CalAddressListParamType getElementAndValue(final CalAddressListParamType val) { try { CalAddressListParamType param = val.getClass().newInstance(); List<String> ss = val.getCalAddress(); for (String s: ss) { param.getCalAddress().add(s); } return param; } catch (Throwable t) { throw new RuntimeException(t); } } }
@Override public ValueComparator convert(final CalAddressListParamType val) { List<String> ss = val.getCalAddress(); ValueComparator vc = new ValueComparator(); for (String s: ss) { vc.addValue(XcalTags.calAddressVal, s); } return vc; }
/** * Create an instance of {@link CalAddressListParamType } * */ public CalAddressListParamType createCalAddressListParamType() { return new CalAddressListParamType(); }
private String getParValue(final BaseParameterType bpt) throws Throwable { if (bpt instanceof TextParameterType) { return ((TextParameterType)bpt).getText(); } if (bpt instanceof DurationParameterType) { return ((DurationParameterType)bpt).getDuration().toString(); } if (bpt instanceof RangeParamType) { return ((RangeParamType)bpt).getText().value(); } if (bpt instanceof CalAddressListParamType) { return fromList(((CalAddressListParamType)bpt).getCalAddress(), true); } if (bpt instanceof CalAddressParamType) { return ((CalAddressParamType)bpt).getCalAddress(); } if (bpt instanceof UriParameterType) { return ((UriParameterType)bpt).getUri(); } throw new Exception("Unsupported param type"); }
/** * Create an instance of {@link CalAddressListParamType } * */ public CalAddressListParamType createCalAddressListParamType() { return new CalAddressListParamType(); }