public static class ValidationWarnings.WarningsGroup extends Object
Constructor and Description |
---|
ValidationWarnings.WarningsGroup(ICalComponent component,
List<ICalComponent> componentHierarchy,
List<Warning> warning)
Creates a new set of validation warnings for a component.
|
ValidationWarnings.WarningsGroup(ICalProperty property,
List<ICalComponent> componentHierarchy,
List<Warning> warning)
Creates a new set of validation warnings for a property.
|
Modifier and Type | Method and Description |
---|---|
ICalComponent |
getComponent()
Gets the component object that caused the validation warnings.
|
List<ICalComponent> |
getComponentHierarchy()
Gets the hierarchy of components that the property or component
belongs to.
|
ICalProperty |
getProperty()
Gets the property object that caused the validation warnings.
|
List<Warning> |
getWarnings()
Gets the warnings.
|
String |
toString()
Outputs each message in this warnings group as a newline-delimited
string.
|
public ValidationWarnings.WarningsGroup(ICalProperty property, List<ICalComponent> componentHierarchy, List<Warning> warning)
property
- the property that caused the warningscomponentHierarchy
- the hierarchy of components that the
property belongs towarning
- the warningspublic ValidationWarnings.WarningsGroup(ICalComponent component, List<ICalComponent> componentHierarchy, List<Warning> warning)
component
- the component that caused the warningscomponentHierarchy
- the hierarchy of components that the
component belongs towarning
- the warningspublic ICalProperty getProperty()
public ICalComponent getComponent()
public List<ICalComponent> getComponentHierarchy()
public List<Warning> getWarnings()
public String toString()
Outputs each message in this warnings group as a newline-delimited string. Each line includes the component hierarchy and the name of the property/component. For example:
[ICalendar > VEvent > VAlarm]: Email alarms must have at least one attendee. [ICalendar > VEvent > VAlarm]: The trigger must specify which date field its duration is relative to.
Copyright © 2013-2015 Michael Angstadt. All Rights Reserved.