|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.sip.xcap.model.presrules.PresRulesParser
public final class PresRulesParser
Utility class that helps to converts pres-rules xml to the object model and object model to the pres-rules xml.
| Constructor Summary | |
|---|---|
PresRulesParser()
|
|
| Method Summary | |
|---|---|
static ActionsType |
actionsFromElement(Element element)
Creates actions object from the element. |
static Element |
elementFromActions(Document document,
ActionsType actions)
Creates actions element from the object. |
static Element |
elementFromDevicePermission(Document document,
ProvideDevicePermissionType devicePermission)
Creates devicePermission element from the object. |
static Element |
elementFromPersonPermission(Document document,
ProvidePersonPermissionType personPermission)
Creates personPermission element from the object. |
static Element |
elementFromServicePermission(Document document,
ProvideServicePermissionType serviceService)
Creates serviceService element from the object. |
static Element |
elementFromTransfomations(Document document,
TransformationsType transformations)
Creates transformations element from the object. |
static TransformationsType |
transformationsFromElement(Element element)
Creates transfomations object from the element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PresRulesParser()
| Method Detail |
|---|
public static ActionsType actionsFromElement(Element element)
throws Exception
element - the element to analyze.
Exception - if there is some error during parsing.
public static Element elementFromActions(Document document,
ActionsType actions)
throws Exception
document - the xml document.actions - the actions to analyze.
Exception - if there is some error during creating.
public static TransformationsType transformationsFromElement(Element element)
throws Exception
element - the element to analyze.
Exception - if there is some error during parsing.
public static Element elementFromTransfomations(Document document,
TransformationsType transformations)
throws Exception
document - the xml document.transformations - the transformations to analyze.
Exception - if there is some error during creating.
public static Element elementFromServicePermission(Document document,
ProvideServicePermissionType serviceService)
throws Exception
document - the xml document.serviceService - the serviceService to analyze.
Exception - if there is some error during creating.
public static Element elementFromDevicePermission(Document document,
ProvideDevicePermissionType devicePermission)
throws Exception
document - the xml document.devicePermission - the devicePermission to analyze.
Exception - if there is some error during creating.
public static Element elementFromPersonPermission(Document document,
ProvidePersonPermissionType personPermission)
throws Exception
document - the xml document.personPermission - the personPermission to analyze.
Exception - if there is some error during creating.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||