Changeset 1273

Show
Ignore:
Timestamp:
01/31/07 11:52:41
Author:
douglm
Message:

Version corresponding to bedework3.3

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/external/ical4j-1.0-beta1-bedework-3.3/net/fortuna/ical4j/model/Component.java

    r1267 r1273  
    6666    public static final String VALARM = "VALARM"; 
    6767 
     68    public static final String VVENUE = "VVENUE"; 
     69 
    6870    public static final String EXPERIMENTAL_PREFIX = "X-"; 
    6971 
     
    122124        return properties; 
    123125    } 
    124      
     126 
    125127    /** 
    126128     * Convenience method for retrieving a list of named properties. 
     
    132134        return getProperties().getProperties(name); 
    133135    } 
    134      
     136 
    135137    /** 
    136138     * Convenience method for retrieving a named property. 
  • releases/external/ical4j-1.0-beta1-bedework-3.3/net/fortuna/ical4j/model/ComponentFactory.java

    r1267 r1273  
    4343import net.fortuna.ical4j.model.component.VTimeZone; 
    4444import net.fortuna.ical4j.model.component.VToDo; 
     45import net.fortuna.ical4j.model.component.VVenue; 
    4546import net.fortuna.ical4j.model.component.XComponent; 
    4647import net.fortuna.ical4j.util.CompatibilityHints; 
     
    5657 
    5758    private boolean allowIllegalNames; 
    58      
     59 
    5960    /** 
    6061     * Constructor made private to prevent instantiation. 
     
    7071        return instance; 
    7172    } 
    72      
     73 
    7374    public Component createComponent(final String name) { 
    7475        return createComponent(name, new PropertyList()); 
     
    108109        else if (Component.VTIMEZONE.equals(name)) { 
    109110            return new VTimeZone(properties); 
     111        } 
     112        else if (Component.VVENUE.equals(name)) { 
     113            return new VVenue(properties); 
    110114        } 
    111115        else if (isExperimentalName(name)) { 
     
    147151        return createComponent(name, properties); 
    148152    } 
    149      
     153 
    150154    /** 
    151155     * @param name 
  • releases/external/ical4j-1.0-beta1-bedework-3.3/net/fortuna/ical4j/model/Parameter.java

    r1267 r1273  
    4848 
    4949    /** 
     50     * Region abbreviation. 
     51     */ 
     52    public static final String ABBREV = "ABBREV"; 
     53 
     54    /** 
    5055     * Alternate text representation. 
    5156     */ 
     
    138143 
    139144    /** 
     145     * Type. 
     146     */ 
     147    public static final String TYPE = "TYPE"; 
     148 
     149    /** 
    140150     * Reference to time zone object. 
    141151     */ 
     
    146156     */ 
    147157    public static final String VALUE = "VALUE"; 
     158 
     159    /** 
     160     * Reference to vvenue component 
     161     */ 
     162    public static final String VVENUE = "VVENUE"; 
    148163 
    149164    /** 
  • releases/external/ical4j-1.0-beta1-bedework-3.3/net/fortuna/ical4j/model/ParameterFactoryImpl.java

    r1267 r1273  
    11/* 
    22 * $Id $ 
    3  *  
     3 * 
    44 * [05-Apr-2004] 
    55 * 
     
    4040import java.util.Map; 
    4141 
     42import net.fortuna.ical4j.model.parameter.Abbrev; 
    4243import net.fortuna.ical4j.model.parameter.AltRep; 
    4344import net.fortuna.ical4j.model.parameter.Cn; 
     
    6061import net.fortuna.ical4j.model.parameter.TzId; 
    6162import net.fortuna.ical4j.model.parameter.Value; 
     63import net.fortuna.ical4j.model.parameter.Vvenue; 
    6264import net.fortuna.ical4j.model.parameter.XParameter; 
    6365 
     
    7072 
    7173    private static ParameterFactoryImpl instance = new ParameterFactoryImpl(); 
    72      
     74 
    7375    private Map factories; 
    7476 
     
    7880    private ParameterFactoryImpl() { 
    7981        factories = new HashMap(); 
     82        factories.put(Parameter.ABBREV, createAbbrevFactory()); 
    8083        factories.put(Parameter.ALTREP, createAltRepFactory()); 
    8184        factories.put(Parameter.CN, createCnFactory()); 
     
    9699        factories.put(Parameter.RSVP, createRsvpFactory()); 
    97100        factories.put(Parameter.SENT_BY, createSentByFactory()); 
     101        factories.put(Parameter.TYPE, createTzIdFactory()); 
    98102        factories.put(Parameter.TZID, createTzIdFactory()); 
    99103        factories.put(Parameter.VALUE, createValueFactory()); 
    100     } 
    101      
     104        factories.put(Parameter.VVENUE, createVvenueFactory()); 
     105    } 
     106 
     107    /** 
     108     * @return 
     109     */ 
     110    private ParameterFactory createAbbrevFactory() { 
     111        return new ParameterFactory() { 
     112            /* (non-Javadoc) 
     113             * @see net.fortuna.ical4j.model.ParameterFactory#createParameter(java.lang.String, java.lang.String) 
     114             */ 
     115            public Parameter createParameter(final String name, final String value) throws URISyntaxException { 
     116                return new Abbrev(value); 
     117            } 
     118        }; 
     119    } 
     120 
    102121    /** 
    103122     * @return 
     
    113132        }; 
    114133    } 
    115      
     134 
    116135    /** 
    117136     * @return 
     
    128147        }; 
    129148    } 
    130      
     149 
    131150    /** 
    132151     * @return 
     
    159178        }; 
    160179    } 
    161      
     180 
    162181    /** 
    163182     * @return 
     
    174193        }; 
    175194    } 
    176      
     195 
    177196    /** 
    178197     * @return 
     
    189208        }; 
    190209    } 
    191      
     210 
    192211    /** 
    193212     * @return 
     
    204223        }; 
    205224    } 
    206      
     225 
    207226    /** 
    208227     * @return 
     
    226245        }; 
    227246    } 
    228      
     247 
    229248    /** 
    230249     * @return 
     
    241260        }; 
    242261    } 
    243      
     262 
    244263    /** 
    245264     * @return 
     
    269288        }; 
    270289    } 
    271      
     290 
    272291    /** 
    273292     * @return 
     
    284303        }; 
    285304    } 
    286      
     305 
    287306    /** 
    288307     * @return 
     
    299318        }; 
    300319    } 
    301      
     320 
    302321    /** 
    303322     * @return 
     
    336355        }; 
    337356    } 
    338      
     357 
    339358    /** 
    340359     * @return 
     
    358377        }; 
    359378    } 
    360      
     379 
    361380    /** 
    362381     * @return 
     
    380399        }; 
    381400    } 
    382      
     401 
    383402    /** 
    384403     * @return 
     
    405424        }; 
    406425    } 
    407      
     426 
    408427    /** 
    409428     * @return 
     
    433452        }; 
    434453    } 
    435      
     454 
    436455    /** 
    437456     * @return 
     
    470489        }; 
    471490    } 
    472      
     491 
     492    /** 
     493     * @return 
     494     */ 
     495    private ParameterFactory createVvenueFactory() { 
     496        return new ParameterFactory() { 
     497            /* (non-Javadoc) 
     498             * @see net.fortuna.ical4j.model.ParameterFactory#createParameter(java.lang.String, java.lang.String) 
     499             */ 
     500            public Parameter createParameter(final String name, final String value) 
     501                    throws URISyntaxException { 
     502                return new Vvenue(value); 
     503            } 
     504        }; 
     505    } 
     506 
    473507    /** 
    474508     * @return 
     
    485519        }; 
    486520    } 
    487      
     521 
    488522    /** 
    489523     * @return 
     
    543577        }; 
    544578    } 
    545      
     579 
    546580    /** 
    547581     * @return Returns the instance. 
     
    575609        } 
    576610    } 
    577      
     611 
    578612    /** 
    579613     * @param name 
  • releases/external/ical4j-1.0-beta1-bedework-3.3/net/fortuna/ical4j/model/Property.java

    r1267 r1273  
    168168    public static final String EXPERIMENTAL_PREFIX = "X-"; 
    169169 
     170    /** 
     171     * the following are vvenue only properties. 
     172     */ 
     173    public static final String COUNTRY = "COUNTRY"; 
     174 
     175    public static final String EXTENDED_ADDRESS = "EXTENDED-ADDRESS"; 
     176 
     177    public static final String LOCALITY = "LOCALITY"; 
     178 
     179    public static final String LOCATION_TYPE = "LOCATION-TYPE"; 
     180 
     181    public static final String NAME = "NAME"; 
     182 
     183    public static final String POSTALCODE = "POSTALCODE"; 
     184 
     185    public static final String REGION = "REGION"; 
     186 
     187    public static final String STREET_ADDRESS = "STREET-ADDRESS"; 
     188 
     189    public static final String TEL = "TEL"; 
     190 
    170191    private String name; 
    171192 
     
    193214        this.parameters = aList; 
    194215    } 
    195      
     216 
    196217    /** 
    197218     * Creates a deep copy of the specified property. That is, the name, 
     
    261282        return parameters; 
    262283    } 
    263      
     284 
    264285    /** 
    265286     * Convenience method for retrieving a list of named parameters. 
     
    271292        return getParameters().getParameters(name); 
    272293    } 
    273      
     294 
    274295    /** 
    275296     * Convenience method for retrieving a single parameter. 
     
    281302        return getParameters().getParameter(name); 
    282303    } 
    283      
     304 
    284305    /** 
    285306     * Sets the current value of the property. 
  • releases/external/ical4j-1.0-beta1-bedework-3.3/net/fortuna/ical4j/model/PropertyFactoryImpl.java

    r1267 r1273  
    4949import net.fortuna.ical4j.model.property.Completed; 
    5050import net.fortuna.ical4j.model.property.Contact; 
     51import net.fortuna.ical4j.model.property.Country; 
    5152import net.fortuna.ical4j.model.property.Created; 
    5253import net.fortuna.ical4j.model.property.Description; 
     
    5859import net.fortuna.ical4j.model.property.ExDate; 
    5960import net.fortuna.ical4j.model.property.ExRule; 
     61import net.fortuna.ical4j.model.property.ExtendedAddress; 
    6062import net.fortuna.ical4j.model.property.FreeBusy; 
    6163import net.fortuna.ical4j.model.property.Geo; 
    6264import net.fortuna.ical4j.model.property.LastModified; 
     65import net.fortuna.ical4j.model.property.Locality; 
    6366import net.fortuna.ical4j.model.property.Location; 
    6467import net.fortuna.ical4j.model.property.Method; 
     68import net.fortuna.ical4j.model.property.Name; 
    6569import net.fortuna.ical4j.model.property.Organizer; 
    6670import net.fortuna.ical4j.model.property.PercentComplete; 
     71import net.fortuna.ical4j.model.property.Postalcode; 
    6772import net.fortuna.ical4j.model.property.Priority; 
    6873import net.fortuna.ical4j.model.property.ProdId; 
     
    7075import net.fortuna.ical4j.model.property.RRule; 
    7176import net.fortuna.ical4j.model.property.RecurrenceId; 
     77import net.fortuna.ical4j.model.property.Region; 
    7278import net.fortuna.ical4j.model.property.RelatedTo; 
    7379import net.fortuna.ical4j.model.property.Repeat; 
     
    7682import net.fortuna.ical4j.model.property.Sequence; 
    7783import net.fortuna.ical4j.model.property.Status; 
     84import net.fortuna.ical4j.model.property.StreetAddress; 
    7885import net.fortuna.ical4j.model.property.Summary; 
     86import net.fortuna.ical4j.model.property.Tel; 
    7987import net.fortuna.ical4j.model.property.Transp; 
    8088import net.fortuna.ical4j.model.property.Trigger; 
     
    119127        factories.put(Property.COMPLETED, createCompletedFactory()); 
    120128        factories.put(Property.CONTACT, createContactFactory()); 
     129        factories.put(Property.COUNTRY, createCountryFactory()); 
    121130        factories.put(Property.CREATED, createCreatedFactory()); 
    122131        factories.put(Property.DESCRIPTION, createDescriptionFactory()); 
     
    128137        factories.put(Property.EXDATE, createExDateFactory()); 
    129138        factories.put(Property.EXRULE, createExRuleFactory()); 
     139        factories.put(Property.EXTENDED_ADDRESS, createExtendedAddressFactory()); 
    130140        factories.put(Property.FREEBUSY, createFreeBusyFactory()); 
    131141        factories.put(Property.GEO, createGeoFactory()); 
    132142        factories.put(Property.LAST_MODIFIED, createLastModifiedFactory()); 
     143        factories.put(Property.LOCALITY, createLocalityFactory()); 
    133144        factories.put(Property.LOCATION, createLocationFactory()); 
    134145        factories.put(Property.METHOD, createMethodFactory()); 
     146        factories.put(Property.NAME, createNameFactory()); 
    135147        factories.put(Property.ORGANIZER, createOrganizerFactory()); 
    136148        factories 
    137149                .put(Property.PERCENT_COMPLETE, createPercentCompleteFactory()); 
     150        factories.put(Property.POSTALCODE, createPostalcodeFactory()); 
    138151        factories.put(Property.PRIORITY, createPriorityFactory()); 
    139152        factories.put(Property.PRODID, createProdIdFactory()); 
    140153        factories.put(Property.RDATE, createRDateFactory()); 
    141154        factories.put(Property.RECURRENCE_ID, createRecurrenceIdFactory()); 
     155        factories.put(Property.REGION, createRegionFactory()); 
    142156        factories.put(Property.RELATED_TO, createRelatedToFactory()); 
    143157        factories.put(Property.REPEAT, createRepeatFactory()); 
     
    147161        factories.put(Property.SEQUENCE, createSequenceFactory()); 
    148162        factories.put(Property.STATUS, createStatusFactory()); 
     163        factories.put(Property.STREET_ADDRESS, createStreetAddressFactory()); 
    149164        factories.put(Property.SUMMARY, createSummaryFactory()); 
     165        factories.put(Property.TEL, createTelFactory()); 
    150166        factories.put(Property.TRANSP, createTranspFactory()); 
    151167        factories.put(Property.TRIGGER, createTriggerFactory()); 
     
    397413     * @return 
    398414     */ 
     415    private PropertyFactory createCountryFactory() { 
     416        return new PropertyFactory() { 
     417            /* 
     418             * (non-Javadoc) 
     419             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String, 
     420             * net.fortuna.ical4j.model.ParameterList, java.lang.String) 
     421             */ 
     422            public Property createProperty(final String name, 
     423                    final ParameterList parameters, final String value) 
     424                    throws IOException, URISyntaxException, ParseException { 
     425                return new Country(parameters, value); 
     426            } 
     427 
     428            /* 
     429             * (non-Javadoc) 
     430             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String) 
     431             */ 
     432            public Property createProperty(final String name) { 
     433                return new Country(); 
     434            } 
     435        }; 
     436    } 
     437 
     438    /** 
     439     * @return 
     440     */ 
    399441    private PropertyFactory createCreatedFactory() { 
    400442        return new PropertyFactory() { 
     
    631673     * @return 
    632674     */ 
     675    private PropertyFactory createExtendedAddressFactory() { 
     676        return new PropertyFactory() { 
     677            /* 
     678             * (non-Javadoc) 
     679             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String, 
     680             * net.fortuna.ical4j.model.ParameterList, java.lang.String) 
     681             */ 
     682            public Property createProperty(final String name, 
     683                    final ParameterList parameters, final String value) 
     684                    throws IOException, URISyntaxException, ParseException { 
     685                return new ExtendedAddress(parameters, value); 
     686            } 
     687 
     688            /* 
     689             * (non-Javadoc) 
     690             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String) 
     691             */ 
     692            public Property createProperty(final String name) { 
     693                return new ExtendedAddress(); 
     694            } 
     695        }; 
     696    } 
     697 
     698    /** 
     699     * @return 
     700     */ 
    633701    private PropertyFactory createFreeBusyFactory() { 
    634702        return new PropertyFactory() { 
     
    709777     * @return 
    710778     */ 
     779    private PropertyFactory createLocalityFactory() { 
     780        return new PropertyFactory() { 
     781            /* 
     782             * (non-Javadoc) 
     783             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String, 
     784             * net.fortuna.ical4j.model.ParameterList, java.lang.String) 
     785             */ 
     786            public Property createProperty(final String name, 
     787                    final ParameterList parameters, final String value) 
     788                    throws IOException, URISyntaxException, ParseException { 
     789                return new Locality(parameters, value); 
     790            } 
     791 
     792            /* 
     793             * (non-Javadoc) 
     794             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String) 
     795             */ 
     796            public Property createProperty(final String name) { 
     797                return new Locality(); 
     798            } 
     799        }; 
     800    } 
     801 
     802    /** 
     803     * @return 
     804     */ 
    711805    private PropertyFactory createLocationFactory() { 
    712806        return new PropertyFactory() { 
     
    761855     * @return 
    762856     */ 
     857    private PropertyFactory createNameFactory() { 
     858        return new PropertyFactory() { 
     859            /* 
     860             * (non-Javadoc) 
     861             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String, 
     862             * net.fortuna.ical4j.model.ParameterList, java.lang.String) 
     863             */ 
     864            public Property createProperty(final String name, 
     865                    final ParameterList parameters, final String value) 
     866                    throws IOException, URISyntaxException, ParseException { 
     867                return new Name(parameters, value); 
     868            } 
     869 
     870            /* 
     871             * (non-Javadoc) 
     872             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String) 
     873             */ 
     874            public Property createProperty(final String name) { 
     875                return new Name(); 
     876            } 
     877        }; 
     878    } 
     879 
     880    /** 
     881     * @return 
     882     */ 
    763883    private PropertyFactory createOrganizerFactory() { 
    764884        return new PropertyFactory() { 
     
    813933     * @return 
    814934     */ 
     935    private PropertyFactory createPostalcodeFactory() { 
     936        return new PropertyFactory() { 
     937            /* 
     938             * (non-Javadoc) 
     939             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String, 
     940             * net.fortuna.ical4j.model.ParameterList, java.lang.String) 
     941             */ 
     942            public Property createProperty(final String name, 
     943                    final ParameterList parameters, final String value) 
     944                    throws IOException, URISyntaxException, ParseException { 
     945                return new Postalcode(parameters, value); 
     946            } 
     947 
     948            /* 
     949             * (non-Javadoc) 
     950             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String) 
     951             */ 
     952            public Property createProperty(final String name) { 
     953                return new Postalcode(); 
     954            } 
     955        }; 
     956    } 
     957 
     958    /** 
     959     * @return 
     960     */ 
    815961    private PropertyFactory createPriorityFactory() { 
    816962        return new PropertyFactory() { 
     
    9171063     * @return 
    9181064     */ 
     1065    private PropertyFactory createRegionFactory() { 
     1066        return new PropertyFactory() { 
     1067            /* 
     1068             * (non-Javadoc) 
     1069             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String, 
     1070             * net.fortuna.ical4j.model.ParameterList, java.lang.String) 
     1071             */ 
     1072            public Property createProperty(final String name, 
     1073                    final ParameterList parameters, final String value) 
     1074                    throws IOException, URISyntaxException, ParseException { 
     1075                return new Region(parameters, value); 
     1076            } 
     1077 
     1078            /* 
     1079             * (non-Javadoc) 
     1080             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String) 
     1081             */ 
     1082            public Property createProperty(final String name) { 
     1083                return new Region(); 
     1084            } 
     1085        }; 
     1086    } 
     1087 
     1088    /** 
     1089     * @return 
     1090     */ 
    9191091    private PropertyFactory createRelatedToFactory() { 
    9201092        return new PropertyFactory() { 
     
    10991271     * @return 
    11001272     */ 
     1273    private PropertyFactory createStreetAddressFactory() { 
     1274        return new PropertyFactory() { 
     1275            /* 
     1276             * (non-Javadoc) 
     1277             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String, 
     1278             * net.fortuna.ical4j.model.ParameterList, java.lang.String) 
     1279             */ 
     1280            public Property createProperty(final String name, 
     1281                    final ParameterList parameters, final String value) 
     1282                    throws IOException, URISyntaxException, ParseException { 
     1283                return new StreetAddress(parameters, value); 
     1284            } 
     1285 
     1286            /* 
     1287             * (non-Javadoc) 
     1288             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String) 
     1289             */ 
     1290            public Property createProperty(final String name) { 
     1291                return new StreetAddress(); 
     1292            } 
     1293        }; 
     1294    } 
     1295 
     1296    /** 
     1297     * @return 
     1298     */ 
    11011299    private PropertyFactory createSummaryFactory() { 
    11021300        return new PropertyFactory() { 
     
    11181316            public Property createProperty(final String name) { 
    11191317                return new Summary(); 
     1318            } 
     1319        }; 
     1320    } 
     1321 
     1322    /** 
     1323     * @return 
     1324     */ 
     1325    private PropertyFactory createTelFactory() { 
     1326        return new PropertyFactory() { 
     1327            /* 
     1328             * (non-Javadoc) 
     1329             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String, 
     1330             * net.fortuna.ical4j.model.ParameterList, java.lang.String) 
     1331             */ 
     1332            public Property createProperty(final String name, 
     1333                    final ParameterList parameters, final String value) 
     1334                    throws IOException, URISyntaxException, ParseException { 
     1335                return new Tel(parameters, value); 
     1336            } 
     1337 
     1338            /* 
     1339             * (non-Javadoc) 
     1340             * @see net.fortuna.ical4j.model.PropertyFactory#createProperty(java.lang.String) 
     1341             */ 
     1342            public Property createProperty(final String name) { 
     1343                return new Tel(); 
    11201344            } 
    11211345        }; 
  • releases/external/ical4j-1.0-beta1-bedework-3.3/net/fortuna/ical4j/model/property/Location.java

    r1267 r1273  
    11/* 
    22 * $Id: Location.java,v 1.9 2006/11/05 06:04:42 fortuna Exp $ 
    3  *  
     3 * 
    44 * Created: [Apr 6, 2004] 
    55 * 
     
    4545/** 
    4646 * Defines a LOCATION iCalendar component property. 
    47  *  
     47 * 
    4848 * <pre> 
    4949 *     4.8.1.7 Location 
    50  *      
     50 * 
    5151 *        Property Name: LOCATION 
    52  *      
     52 * 
    5353 *        Purpose: The property defines the intended venue for the activity 
    5454 *        defined by a calendar component. 
    55  *      
     55 * 
    5656 *        Value Type: TEXT 
    57  *      
     57 * 
    5858 *        Property Parameters: Non-standard, alternate text representation and 
    5959 *        language property parameters can be specified on this property. 
    60  *      
     60 * 
    6161 *        Conformance: This property can be specified in &quot;VEVENT&quot; or &quot;VTODO&quot; 
    6262 *        calendar component. 
    63  *      
     63 * 
    6464 *        Description: Specific venues such as conference or meeting rooms may 
    6565 *        be explicitly specified using this property. An alternate 
     
    7070 *        pointing to a MIME body part containing a vCard [RFC 2426] for the 
    7171 *        location. 
    72  *      
     72 * 
    7373 *        Format Definition: The property is defined by the following notation: 
    74  *      
     74 * 
    7575 *          location   = &quot;LOCATION locparam &quot;:&quot; text CRLF 
    76  *      
     76 * 
    7777 *          locparam   = *( 
    78  *      
     78 * 
    7979 *                     ; the following are optional, 
    8080 *                     ; but MUST NOT occur more than once 
    81  *      
     81 * 
    8282 *                     (&quot;;&quot; altrepparam) / (&quot;;&quot; languageparam) / 
    83  *      
     83 * 
    8484 *                     ; the following is optional, 
    8585 *                     ; and MAY occur more than once 
    86  *      
     86 * 
    8787 *                     (&quot;;&quot; xparam) 
    88  *      
     88 * 
    8989 *                     ) 
    90  *      
     90 * 
    9191 *        Example: The following are some examples of this property: 
    92  *      
     92 * 
    9393 *          LOCATION:Conference Room - F123, Bldg. 002 
    94  *      
     94 * 
    9595 *          LOCATION;ALTREP=&quot;http://xyzcorp.com/conf-rooms/f123.vcf&quot;: 
    9696 *           Conference Room - F123, Bldg. 002 
    9797 * </pre> 
    98  *  
     98 * 
    9999 * @author Ben Fortuna 
    100100 */ 
     
    141141        ParameterValidator.getInstance().assertOneOrLess(Parameter.LANGUAGE, 
    142142                getParameters()); 
     143        ParameterValidator.getInstance().assertOneOrLess(Parameter.VVENUE, 
     144                getParameters()); 
    143145 
    144146        /* 
  • releases/external/ical4j-1.0-beta1-bedework-3.3/net/fortuna/ical4j/model/property/Url.java

    r1267 r1273  
    11/* 
    22 * $Id: Url.java,v 1.11 2006/11/05 06:04:42 fortuna Exp $ 
    3  *  
     3 * 
    44 * Created: [Apr 6, 2004] 
    55 * 
     
    3939import java.net.URISyntaxException; 
    4040 
     41import net.fortuna.ical4j.model.Parameter; 
    4142import net.fortuna.ical4j.model.ParameterList; 
    4243import net.fortuna.ical4j.model.Property; 
    4344import net.fortuna.ical4j.model.ValidationException; 
     45import net.fortuna.ical4j.util.ParameterValidator; 
    4446import net.fortuna.ical4j.util.Strings; 
    4547import net.fortuna.ical4j.util.Uris; 
     
    4749/** 
    4850 * Defines a URL iCalendar component property. 
    49  *  
     51 * 
    5052 * <pre> 
    5153 *     4.8.4.6 Uniform Resource Locator 
    52  *      
     54 * 
    5355 *        Property Name: URL 
    54  *      
     56 * 
    5557 *        Purpose: This property defines a Uniform Resource Locator (URL) 
    5658 *        associated with the iCalendar object. 
    57  *      
     59 * 
    5860 *        Value Type: URI 
    59  *      
     61 * 
    6062 *        Property Parameters: Non-standard property parameters can be 
    6163 *        specified on this property. 
    62  *      
     64 * 
    6365 *        Conformance: This property can be specified once in the &quot;VEVENT&quot;, 
    6466 *        &quot;VTODO&quot;, &quot;VJOURNAL&quot; or &quot;VFREEBUSY&quot; calendar components. 
    65  *      
     67 * 
    6668 *        Description: This property may be used in a calendar component to 
    6769 *        convey a location where a more dynamic rendition of the calendar 
     
    7173 *        property and Content-Location MIME header are both specified, they 
    7274 *        MUST point to the same resource. 
    73  *      
     75 * 
    7476 *        Format Definition: The property is defined by the following notation: 
    75  *      
     77 * 
    7678 *          url        = &quot;URL&quot; urlparam &quot;:&quot; uri CRLF 
    77  *      
     79 * 
    7880 *          urlparam   = *(&quot;;&quot; xparam) 
    79  *      
     81 * 
    8082 *        Example: The following is an example of this property: 
    81  *      
     83 * 
    8284 *          URL:http://abc.com/pub/calendars/jsmith/mytime.ics 
    8385 * </pre> 
    84  *  
     86 * 
    8587 * @author Ben Fortuna 
    8688 */ 
     
    162164    public final void validate() throws ValidationException { 
    163165        // TODO: Auto-generated method stub 
     166        ParameterValidator.getInstance().assertOneOrLess(Parameter.TYPE, 
     167                getParameters()); 
    164168    } 
    165169}