protected static Location toLocation(String javaObj) { if (javaObj == null) { return null; } return new Location(javaObj); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component */ public Location(final ParameterList aList, final String aValue) { super(LOCATION, aList, new Factory()); setValue(aValue); }
protected static String fromLocation(PropertyList propertyList) { Location iCalObj = (Location) propertyList.getProperty(Location.LOCATION); if (iCalObj == null) { return null; } return iCalObj.getValue(); }
/** * Update the LOCATION property on a component. * @param text LOCATION value to update. If null, the LOCATION property * will be removed * @param comp component to update */ public static void setLocation(String text, Component comp) { Location location = (Location) comp.getProperties().getProperty(Property.LOCATION); if (text == null) { if (location != null) { comp.getProperties().remove(location); } return; } if (location == null) { location = new Location(); comp.getProperties().add(location); } location.setValue(text); }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { /* * ; the following are optional, ; but MUST NOT occur more than once (";" altrepparam) / (";" languageparam) / */ ParameterValidator.getInstance().assertOneOrLess(Parameter.ALTREP, getParameters()); ParameterValidator.getInstance().assertOneOrLess(Parameter.LANGUAGE, getParameters()); ParameterValidator.getInstance().assertOneOrLess(Parameter.VVENUE, getParameters()); /* * ; the following is optional, ; and MAY occur more than once (";" xparam) */ }
/** * Update the LOCATION property on a component. * @param text LOCATION value to update. If null, the LOCATION property * will be removed * @param comp component to update */ public static void setLocation(String text, Component comp) { Location location = (Location) comp.getProperties().getProperty(Property.LOCATION); if (text == null) { if (location != null) { comp.getProperties().remove(location); } return; } if (location == null) { location = new Location(); comp.getProperties().add(location); } location.setValue(text); }
public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Location(parameters, value); }
public void setLocation(String text) { Location location = (Location) getEvent().getProperties().getProperty(Property.LOCATION); if (text == null) { if (location != null) { getEvent().getProperties().remove(location); } return; } if (location == null) { location = new Location(); getEvent().getProperties().add(location); } location.setValue(text); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component */ public Location(final ParameterList aList, final String aValue) { super(LOCATION, aList, new Factory()); setValue(aValue); }
@Override public boolean fromVEvent(final TeamEventDO event, final VEvent vEvent) { if (vEvent.getLocation() != null) { event.setLocation(vEvent.getLocation().getValue()); return true; } return false; } }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Location(parameters, value); }
public void setLocation(String text) { Location location = (Location) getEvent().getProperties().getProperty(Property.LOCATION); if (text == null) { if (location != null) { getEvent().getProperties().remove(location); } return; } if (location == null) { location = new Location(); getEvent().getProperties().add(location); } location.setValue(text); }
/** * @param aValue a value string for this component */ public Location(final String aValue) { super(LOCATION, PropertyFactoryImpl.getInstance()); setValue(aValue); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new Location(parameters, value); }
/** * @param aList a list of parameters for this component * @param aValue a value string for this component */ public Location(final ParameterList aList, final String aValue) { super(LOCATION, aList, PropertyFactoryImpl.getInstance()); setValue(aValue); }
public Property createProperty() { return new Location(); } }
/** * @param aValue a value string for this component */ public Location(final String aValue) { super(LOCATION, new ParameterList(), new Factory()); setValue(aValue); }
public Property createProperty() { return new Location(); } }
/** * @param aValue a value string for this component */ public Location(final String aValue) { super(LOCATION, new ParameterList(), new Factory()); setValue(aValue); }
public Property createProperty() { return new Location(); } }