uk.org.jcam.processor.validator
Class Functions

java.lang.Object
  extended by uk.org.jcam.processor.validator.Functions

public class Functions
extends java.lang.Object


Constructor Summary
Functions()
           
 
Method Summary
static boolean checkAttribute(org.jdom.Attribute attr, org.jdom.Element templateElement, org.jdom.Element xmlFileElement)
           
static boolean checkAttributeDataType(org.jdom.Attribute xmlAttr, org.jdom.Attribute templateAttr)
           
static boolean checkAttributeFixedValues(org.jdom.Attribute templateAttr, org.jdom.Attribute xmlAttr)
           
static boolean checkAttributeMask(org.jdom.Attribute templateAttr, org.jdom.Attribute xmlAttr)
          checkAttributeMask
static boolean checkAttributeRestrictValues(org.jdom.Attribute templateAttr, org.jdom.Attribute xmlAttr)
           
static boolean checkAttributeValueLength(org.jdom.Attribute templateAttr, org.jdom.Attribute xmlAttr)
           
static boolean checkElement(org.jdom.Element templateElement, org.jdom.Element xmlFileElement)
           
static boolean checkElementChoice(org.jdom.Element templateElement, org.jdom.Element xmlElement, java.lang.String choiceID)
          checkChoice
static boolean checkElementDataType(org.jdom.Element element, org.jdom.Attribute attribute)
           
static boolean checkElementFixedValues(org.jdom.Element templateElement, org.jdom.Element xmlFileElement)
           
static boolean checkElementMask(org.jdom.Element xmlFileElement, org.jdom.Attribute maskAttr)
          checkElementMask
static boolean checkElementRestrictValues(org.jdom.Element x, org.jdom.Attribute attr)
           
static boolean checkElementValueLength(org.jdom.Element x, org.jdom.Attribute attr)
           
static void generateError(org.jdom.Element x, java.lang.Object o, java.lang.String msg)
           
static void generateError(org.jdom.Element x, java.lang.Object o, java.lang.String msg, java.lang.String code)
           
static boolean isAny(org.jdom.Element t)
           
static boolean isChoice(java.lang.Object o)
           
static boolean isOptional(java.lang.Object o)
           
static boolean isOrdered(org.jdom.Element t)
           
static boolean isRecursive(org.jdom.Element t)
           
static boolean isRepeatable(org.jdom.Element t)
           
static boolean isSame(org.jdom.Element a, org.jdom.Element b)
           
static boolean isScoped(org.jdom.Element t)
           
static int Limit(org.jdom.Element element)
           
static java.util.List selectChildren(org.jdom.Element element, java.util.List list)
           
static boolean validateProcessingInstructions(org.jdom.Element t, org.jdom.Element x)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Functions

public Functions()
Method Detail

checkAttribute

public static boolean checkAttribute(org.jdom.Attribute attr,
                                     org.jdom.Element templateElement,
                                     org.jdom.Element xmlFileElement)

checkAttributeDataType

public static boolean checkAttributeDataType(org.jdom.Attribute xmlAttr,
                                             org.jdom.Attribute templateAttr)
Parameters:
element -
attribute -
Returns:

checkAttributeFixedValues

public static boolean checkAttributeFixedValues(org.jdom.Attribute templateAttr,
                                                org.jdom.Attribute xmlAttr)

checkAttributeMask

public static boolean checkAttributeMask(org.jdom.Attribute templateAttr,
                                         org.jdom.Attribute xmlAttr)
checkAttributeMask

Parameters:
xattr -
tAttr -
Returns:
boolean

checkAttributeRestrictValues

public static boolean checkAttributeRestrictValues(org.jdom.Attribute templateAttr,
                                                   org.jdom.Attribute xmlAttr)

checkAttributeValueLength

public static boolean checkAttributeValueLength(org.jdom.Attribute templateAttr,
                                                org.jdom.Attribute xmlAttr)

checkElement

public static boolean checkElement(org.jdom.Element templateElement,
                                   org.jdom.Element xmlFileElement)

checkElementChoice

public static boolean checkElementChoice(org.jdom.Element templateElement,
                                         org.jdom.Element xmlElement,
                                         java.lang.String choiceID)
checkChoice

Parameters:
x -
t -
string -

checkElementDataType

public static boolean checkElementDataType(org.jdom.Element element,
                                           org.jdom.Attribute attribute)
Parameters:
element -
attribute -
Returns:

checkElementFixedValues

public static boolean checkElementFixedValues(org.jdom.Element templateElement,
                                              org.jdom.Element xmlFileElement)

checkElementMask

public static boolean checkElementMask(org.jdom.Element xmlFileElement,
                                       org.jdom.Attribute maskAttr)
checkElementMask

Parameters:
x -
attr -
Returns:
boolean

checkElementRestrictValues

public static boolean checkElementRestrictValues(org.jdom.Element x,
                                                 org.jdom.Attribute attr)

checkElementValueLength

public static boolean checkElementValueLength(org.jdom.Element x,
                                              org.jdom.Attribute attr)

generateError

public static void generateError(org.jdom.Element x,
                                 java.lang.Object o,
                                 java.lang.String msg,
                                 java.lang.String code)

generateError

public static void generateError(org.jdom.Element x,
                                 java.lang.Object o,
                                 java.lang.String msg)

isChoice

public static boolean isChoice(java.lang.Object o)

isOptional

public static boolean isOptional(java.lang.Object o)

isRepeatable

public static boolean isRepeatable(org.jdom.Element t)

isAny

public static boolean isAny(org.jdom.Element t)

isOrdered

public static boolean isOrdered(org.jdom.Element t)

isScoped

public static boolean isScoped(org.jdom.Element t)

isRecursive

public static boolean isRecursive(org.jdom.Element t)

isSame

public static boolean isSame(org.jdom.Element a,
                             org.jdom.Element b)

Limit

public static int Limit(org.jdom.Element element)

selectChildren

public static java.util.List selectChildren(org.jdom.Element element,
                                            java.util.List list)

validateProcessingInstructions

public static boolean validateProcessingInstructions(org.jdom.Element t,
                                                     org.jdom.Element x)
                                              throws org.jdom.JDOMException
Throws:
org.jdom.JDOMException