public class AdminParser
extends java.lang.Object
AdminInfo
object from it.Constructor and Description |
---|
AdminParser()
Create a new instance of AdminParser.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<org.licas_xml.abs.Element> |
getAllMethods(AdminInfo adminInfo,
boolean removeBase)
Get a list of all of the methods in this admin document.
|
static org.licas_xml.abs.Element |
getMethodDescription(org.licas_xml.abs.Element methodXml)
Retrieve the description part of the method xml description.
|
static java.lang.String |
getMethodName(org.licas_xml.abs.Element methodXml)
Retrieve the name part of the method xml description.
|
static java.util.ArrayList<java.lang.String> |
getMethodNames(org.licas_xml.abs.Element accessXml)
Get a list of all of the methods names in this access level.
|
java.util.ArrayList<org.licas_xml.abs.Element> |
getMethods(org.licas_xml.abs.Element accessXml,
boolean removeBase)
Get a list of all of the methods in this access level.
|
static java.lang.String |
getPassword(org.licas_xml.abs.Element accessXml)
Retrieve the password part of the access level xml description.
|
static boolean |
isAccessLevel(org.licas_xml.abs.Element accessXml,
org.licas_xml.abs.Element methodXml)
Return true if the access info passed in contains a match to the method info.
|
static boolean |
methodsMatch(org.licas_xml.abs.Element methodXml,
org.licas_xml.abs.Element methodXml2)
Return true if the two xml method descriptions are the same.
|
AdminInfo |
parse(org.licas_xml.abs.Element adminXml)
Parse the XML description to determine the admin specification.
|
org.licas_xml.abs.Element |
serialize(AdminInfo adminInfo)
Serialize the admin info object into an XML-based description.
|
public org.licas_xml.abs.Element serialize(AdminInfo adminInfo) throws java.lang.Exception
adminInfo
- the admin info object to serialize.java.lang.Exception
- any error.public AdminInfo parse(org.licas_xml.abs.Element adminXml) throws java.lang.Exception
adminXml
- the XML description to parse.java.lang.Exception
- any error.public static boolean isAccessLevel(org.licas_xml.abs.Element accessXml, org.licas_xml.abs.Element methodXml)
accessXml
- an xml description of the access level.methodXml
- an xml description of the method.public static boolean methodsMatch(org.licas_xml.abs.Element methodXml, org.licas_xml.abs.Element methodXml2)
methodXml
- the first XML method description.methodXml2
- the second XML method description.public java.util.ArrayList<org.licas_xml.abs.Element> getAllMethods(AdminInfo adminInfo, boolean removeBase)
adminInfo
- the admin info.removeBase
- if true remove known base 'Object' methods.public java.util.ArrayList<org.licas_xml.abs.Element> getMethods(org.licas_xml.abs.Element accessXml, boolean removeBase)
accessXml
- the access level info.removeBase
- if true remove known base 'Object' methods.public static java.util.ArrayList<java.lang.String> getMethodNames(org.licas_xml.abs.Element accessXml)
accessXml
- the access level info.public static java.lang.String getMethodName(org.licas_xml.abs.Element methodXml)
methodXml
- the method description in xml.public static org.licas_xml.abs.Element getMethodDescription(org.licas_xml.abs.Element methodXml)
methodXml
- the method description in xml.public static java.lang.String getPassword(org.licas_xml.abs.Element accessXml)
accessXml
- the access level description in xml.