com.evolveum.midpoint.prism.util
Class PrismUtil

java.lang.Object
  extended by com.evolveum.midpoint.prism.util.PrismUtil

public class PrismUtil
extends java.lang.Object

Author:
semancik

Constructor Summary
PrismUtil()
           
 
Method Summary
static void fortifyNamespaceDeclarations(org.w3c.dom.Element definitionElement)
          Super-mega-giga-ultra hack.
static boolean isEmpty(PolyStringType value)
           
static void unfortifyNamespaceDeclarations(org.w3c.dom.Element definitionElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrismUtil

public PrismUtil()
Method Detail

fortifyNamespaceDeclarations

public static void fortifyNamespaceDeclarations(org.w3c.dom.Element definitionElement)
Super-mega-giga-ultra hack. This is used to "fortify" XML namespace declaration in a non-standard way. It is useful in case that someone will try some stupid kind of schema-less XML normalization that removes "unused" XML namespace declaration. The declarations are usually used, but they are used inside QName values that the dumb normalization cannot see. Therefore this fortification places XML namespace declaration in a explicit XML elements. That can be reconstructed later by using unfortification method below.


unfortifyNamespaceDeclarations

public static void unfortifyNamespaceDeclarations(org.w3c.dom.Element definitionElement)

isEmpty

public static boolean isEmpty(PolyStringType value)


Copyright © 2012 evolveum. All Rights Reserved.