public void testForPropertyConstant() { Property origProp = Action.AUDIO; Property resProp = Constants.forProperty(origProp); assertTrue("forPropertyConstant", resProp == Action.AUDIO); origProp = new Action(Action.AUDIO.getValue()); resProp = Constants.forProperty(origProp); assertTrue("forPropertyConstant", resProp == Action.AUDIO); }
public void testForPropertyNotConstant() { Property origProp = new Action("custom"); Property resProp = Constants.forProperty(origProp); assertTrue("forPropertyNotConstant", resProp == origProp); } }
public void endProperty(final String name) { assertProperty(property); // replace with a constant instance if applicable.. property = Constants.forProperty(property); if (getComponent() != null) { getComponent().getProperties().add(property); } else if (calendar != null) { calendar.getProperties().add(property); } property = null; }
@Override public void endProperty(final String name) { assertProperty(property); // replace with a constant instance if applicable.. property = Constants.forProperty(property); if (getComponent() != null) { getComponent().getProperties().add(property); } else if (calendar != null) { calendar.getProperties().add(property); } property = null; }
public void endProperty(final String name) { assertProperty(property); // replace with a constant instance if applicable.. property = Constants.forProperty(property); if (component != null) { if (subComponent != null) { subComponent.getProperties().add(property); } else { component.getProperties().add(property); } } else if (calendar != null) { calendar.getProperties().add(property); } property = null; }
public void endProperty(final String name) { assertProperty(property); // replace with a constant instance if applicable.. property = Constants.forProperty(property); if (component != null) { if (subComponent != null) { subComponent.getProperties().add(property); } else { component.getProperties().add(property); } } else if (calendar != null) { calendar.getProperties().add(property); } property = null; }
@Override public void endProperty(String name) throws URISyntaxException, ParseException, IOException { assertProperty(propertyBuilder); Property property = propertyBuilder.build(); // replace with a constant instance if applicable.. property = Constants.forProperty(property); if (componentBuilder != null) { if (subComponentBuilder != null) { subComponentBuilder.property(property); } else { componentBuilder.property(property); } } else if (calendar != null) { calendar.getProperties().add(property); } property = null; }
@Override public void endProperty(String name) throws URISyntaxException, ParseException, IOException { assertProperty(propertyBuilder); Property property = propertyBuilder.build(); // replace with a constant instance if applicable.. property = Constants.forProperty(property); if (componentBuilder != null) { if (subComponentBuilder != null) { subComponentBuilder.property(property); } else { componentBuilder.property(property); } } else if (calendar != null) { calendar.getProperties().add(property); } property = null; }
@Override public void endProperty(final String name) { assertProperty(bs.getProperty()); // replace with a constant instance if applicable.. bs.setProperty(Constants.forProperty(bs.getProperty())); if (bs.getComponent() != null) { bs.getComponent().getProperties().add(bs.getProperty()); } else if (bs.getCalendar() != null) { bs.getCalendar().getProperties().add(bs.getProperty()); } bs.setProperty(null); }