Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


com.oracle.sft.xcap.client.policy
Interface Validity

All Superinterfaces:
Condition, XcapElement, XcapResource

public interface Validity
extends Condition

Part of the conditions that matches on the time the request is received. It defines a period in time. A Validity can be created by calling com.oracle.sft.xcap.client.policy.Conditions.createCondition(Class<C>)

See Also:
Conditions

Method Summary
 void addFromAndUntil(XMLGregorianCalendar from, XMLGregorianCalendar until)
          Add a pair of from and until.
 void delFromAndUntil(int index)
          Delete the from and until time pair of the given index.
 From getFrom()
          Provides the start time of the period.
 List<XMLGregorianCalendar> getFromAndUntil(int index)
          Provides the from and until time pair of the given index.
 List<From> getFroms()
          Provides a list of all From of this Validity.
 Until getUntil()
          Provides the end time of the period.
 List<Until> getUntils()
          Provides a list of all Until of this Validity.

 

Methods inherited from interface com.oracle.sft.xcap.client.policy.Condition
getType

 

Methods inherited from interface com.oracle.sft.xcap.client.XcapElement
getDocument, getNamespace, getNodeSelector, getParent

 

Methods inherited from interface com.oracle.sft.xcap.client.XcapResource
getContent, getContentType, getUrl, setContent

 

Method Detail

getFrom

From getFrom()
Provides the start time of the period.
Returns:
start time of the period.

getUntil

Until getUntil()
Provides the end time of the period.
Returns:
end time of the period.

getFroms

List<From> getFroms()
Provides a list of all From of this Validity.
Returns:
a list of all From, and the list is unmodifiable.

getUntils

List<Until> getUntils()
Provides a list of all Until of this Validity.
Returns:
a list of all Until, and the list is unmodifiable.

getFromAndUntil

List<XMLGregorianCalendar> getFromAndUntil(int index)
Provides the from and until time pair of the given index. If index Out of boundary, there would be an IllegalArgumentException
Parameters:
index - the pair's location, starts from 0.
Returns:
the from and until time pair. The first element of the list is of From, the second is of Until.

delFromAndUntil

void delFromAndUntil(int index)
Delete the from and until time pair of the given index. If index Out of boundary, there would be an IllegalArgumentException
Parameters:
index - the pair's location, starts from 0.

addFromAndUntil

void addFromAndUntil(XMLGregorianCalendar from,
                     XMLGregorianCalendar until)
Add a pair of from and until.
Parameters:
from - the from time
until - the until time

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


Copyright © 2012 Oracle Corporation. All Rights Reserved.