|
EASP API 7.6.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.juniper.smgt.lib.subst.SubstEngineFactory
public class SubstEngineFactory
This class contains the factory method for generating SubstitutionEngines and several other substitution oriented utility methods.
One category of utility methods deal with manipulating substitution varible types in the form of
strings and in the form of integers from the variable type enumeration in Substitution
.
Included in this category are:
#getSubstTypeStrs()
#typeToString(int)
#stringToType(String)
#intersectTypes(int,int)
#intersectTypes(String,String)
SubstEngine.createSubstitution(String)
and related methods. The
utility methods in this category are:
#encodeText(String)
#decodeText(String)
encodeIdentifier(String)
decodeIdentifier(String)
Constructor Summary | |
---|---|
SubstEngineFactory()
|
Method Summary | |
---|---|
static SubstEngine |
anInstance()
Returns an instance of a SubstEngine. |
static String |
decodeIdentifier(String encoded)
returns a decoded version of the given string representing a parsable identifier. |
static String |
encodeIdentifier(String decoded)
encodes the given identifier so it may be parsed. |
static void |
main(String[] args)
converts substitutions from SDX 4.3 or older format to post SDX 4.3 format to new format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubstEngineFactory()
Method Detail |
---|
public static SubstEngine anInstance()
SubstEngine.acquireParams(List,List)
, SubstEngine.classify(List,List,List,List)
,
and
SubstEngine.createSubstitution(String)
, may block a thread for a significant amount of time.
Consequently, this method returns a random instance of SubstEngine from the pool so several threads
can proceed with complex substitution operations in parallel.
public static String decodeIdentifier(String encoded) throws IllegalArgumentException
encoded
-
IllegalArgumentException
- if the input string is null or empty, or if the input contains a '$'
character which is not followed by four hex digitspublic static String encodeIdentifier(String decoded)
decoded
-
IllegalArgumentException
- if the input string is null or emptypublic static void main(String[] args)
args
-
|
EASP API 7.6.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |