be.re.webdav
Class View

java.lang.Object
  extended by be.re.webdav.View

public class View
extends Object

Utility to work with Pincette views.

Author:
Werner Donné

Nested Class Summary
static class View.Rule
          Represents one rule.
 
Constructor Summary
View()
           
 
Method Summary
static View.Rule[] getRules(Element ruleSet)
           
static View.Rule[] getRules(URL url, Client client)
          Returns the rules of view url in the order specified by the view.
static boolean isTimeView(URL view)
           
static void setRules(URL url, Client client, View.Rule[] rules)
          Sets the rules of the view url in the provided order.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View()
Method Detail

getRules

public static View.Rule[] getRules(URL url,
                                   Client client)
                            throws IOException
Returns the rules of view url in the order specified by the view.

Throws:
IOException

getRules

public static View.Rule[] getRules(Element ruleSet)

isTimeView

public static boolean isTimeView(URL view)
                          throws IOException
Throws:
IOException

setRules

public static void setRules(URL url,
                            Client client,
                            View.Rule[] rules)
                     throws Exception
Sets the rules of the view url in the provided order.

Throws:
Exception