org.drools.repository.utils
Class NodeUtils

java.lang.Object
  extended by org.drools.repository.utils.NodeUtils

public class NodeUtils
extends Object

Utilities relating to a PackageItem.


Constructor Summary
NodeUtils()
           
 
Method Summary
static String makeJSR170ComplaintName(String assetName)
          Construct a validate JCR Node path name per JSR-170 from an asset name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeUtils

public NodeUtils()
Method Detail

makeJSR170ComplaintName

public static String makeJSR170ComplaintName(String assetName)
Construct a validate JCR Node path name per JSR-170 from an asset name. Only the following characters are valid: char ::= nonspace | ' ' nonspace ::= (* Any Unicode character except: '/', ':', '[', ']', '*', ''', '"', '|' or any whitespace character *). Invalid characters are replaced with an underscore ("_").

Parameters:
assetName -
Returns:
a JSR-170 complaint path


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.