org.netbeans.modules.bpel.model.impl
Class Utils

java.lang.Object
  extended by org.netbeans.modules.bpel.model.impl.Utils

public final class Utils
extends java.lang.Object

Author:
ads

Nested Class Summary
static class Utils.DefaultParentAccess
           
static class Utils.Pair<T>
           
static interface Utils.ParentAccess
           
 
Field Summary
static char AMP
           
static java.lang.String APOS
           
static java.lang.String BAD_ATTRIBUTE_URI_VALUE
           
static java.lang.String BAD_ATTRIBUTE_VALUE
           
static java.lang.String BAD_CORRELATION_SET_NAME
           
static java.lang.String BAD_LINK_NAME
           
static java.lang.String BAD_MESSAGE_EXCHANGE_NAME
           
static java.lang.String BAD_NCNAME_VALUE
           
static java.lang.String BAD_PARTNER_LINK_NAME
           
static java.lang.String BAD_URI_VALUE
           
static java.lang.String BAD_VARIABLE_FOR_FOR_EACH
           
static java.lang.String BAD_VARIABLE_FOR_ON_EVENT
           
static java.lang.String BAD_VARIABLE_FOR_SCOPE_IN_ON_EVENT
           
static java.lang.String BAD_VARIABLE_NAME
           
(package private) static java.lang.String BUNDLE
           
static Utils.DefaultParentAccess DEFAULT_PARENT_ACCESS
           
static java.lang.String GT
           
static java.lang.String QUOT
           
static char SEMICOLON
           
(package private) static java.lang.String XML_COMMENT_END
           
(package private) static java.lang.String XML_COMMENT_START
           
 
Method Summary
static boolean canUpdatePrefix(Attribute attr)
           
static boolean checkNCName(java.lang.String str)
           
static boolean checkPasteCompensate(BpelContainerImpl container, Component component)
           
(package private) static BpelEntity createActivityGroup(BpelModelImpl model, org.w3c.dom.Element element)
           
static boolean equals(java.lang.Object obj1, java.lang.Object obj2)
           
static boolean equals(javax.xml.namespace.QName name1, javax.xml.namespace.QName name2)
           
static NamedComponentReference<PortType> getPortTypeRef(BpelReference<PartnerLink> reference, Component component)
           
(package private) static javax.xml.namespace.QName getQName(java.lang.String value, BpelEntity entity)
          value could be incorrectly formated and doesn't represent QName.
static java.lang.String getResourceString(java.lang.String key, java.lang.Object... args)
           
static BpelEntity getUnattachedRoot(BpelEntity entity)
           
static java.lang.String hackXmlEntities(java.lang.String str)
           
static boolean hasAscendant(BpelEntity entity, java.lang.Class<? extends BpelContainer> clazz)
           
static boolean hasAscendant(BpelEntity entity, java.lang.Class<? extends BpelContainer> clazz, Utils.ParentAccess parentAccess)
           
static boolean isEquals(java.lang.String str1, java.lang.String str2)
           
(package private) static java.util.Collection<java.lang.Class<? extends BpelEntity>> of(BpelTypes[] types)
           
(package private) static java.lang.Object parse(java.lang.Class clazz, java.lang.String value)
           
(package private) static
<T> java.util.List<T>
parseList(BpelEntity entity, java.lang.Class<T> clazz, java.lang.String value)
           
static java.lang.String removeXmlComments(java.lang.String str)
           
static void splitQName(java.lang.String qName, java.lang.String[] result)
           
static boolean validate(javax.xml.namespace.QName qName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEMICOLON

public static final char SEMICOLON
See Also:
Constant Field Values

AMP

public static final char AMP
See Also:
Constant Field Values

QUOT

public static final java.lang.String QUOT
See Also:
Constant Field Values

APOS

public static final java.lang.String APOS
See Also:
Constant Field Values

GT

public static final java.lang.String GT
See Also:
Constant Field Values

BAD_ATTRIBUTE_VALUE

public static final java.lang.String BAD_ATTRIBUTE_VALUE
See Also:
Constant Field Values

BAD_ATTRIBUTE_URI_VALUE

public static final java.lang.String BAD_ATTRIBUTE_URI_VALUE
See Also:
Constant Field Values

BAD_VARIABLE_NAME

public static final java.lang.String BAD_VARIABLE_NAME
See Also:
Constant Field Values

BAD_CORRELATION_SET_NAME

public static final java.lang.String BAD_CORRELATION_SET_NAME
See Also:
Constant Field Values

BAD_PARTNER_LINK_NAME

public static final java.lang.String BAD_PARTNER_LINK_NAME
See Also:
Constant Field Values

BAD_MESSAGE_EXCHANGE_NAME

public static final java.lang.String BAD_MESSAGE_EXCHANGE_NAME
See Also:
Constant Field Values

BAD_LINK_NAME

public static final java.lang.String BAD_LINK_NAME
See Also:
Constant Field Values

BAD_URI_VALUE

public static final java.lang.String BAD_URI_VALUE
See Also:
Constant Field Values

BAD_NCNAME_VALUE

public static final java.lang.String BAD_NCNAME_VALUE
See Also:
Constant Field Values

BUNDLE

static final java.lang.String BUNDLE
See Also:
Constant Field Values

BAD_VARIABLE_FOR_FOR_EACH

public static final java.lang.String BAD_VARIABLE_FOR_FOR_EACH
See Also:
Constant Field Values

BAD_VARIABLE_FOR_ON_EVENT

public static final java.lang.String BAD_VARIABLE_FOR_ON_EVENT
See Also:
Constant Field Values

BAD_VARIABLE_FOR_SCOPE_IN_ON_EVENT

public static final java.lang.String BAD_VARIABLE_FOR_SCOPE_IN_ON_EVENT
See Also:
Constant Field Values

XML_COMMENT_START

static final java.lang.String XML_COMMENT_START
See Also:
Constant Field Values

XML_COMMENT_END

static final java.lang.String XML_COMMENT_END
See Also:
Constant Field Values

DEFAULT_PARENT_ACCESS

public static final Utils.DefaultParentAccess DEFAULT_PARENT_ACCESS
Method Detail

getQName

static javax.xml.namespace.QName getQName(java.lang.String value,
                                          BpelEntity entity)
value could be incorrectly formated and doesn't represent QName. In this case null will be return.


of

static java.util.Collection<java.lang.Class<? extends BpelEntity>> of(BpelTypes[] types)

parse

static java.lang.Object parse(java.lang.Class clazz,
                              java.lang.String value)

parseList

static <T> java.util.List<T> parseList(BpelEntity entity,
                                       java.lang.Class<T> clazz,
                                       java.lang.String value)

createActivityGroup

static BpelEntity createActivityGroup(BpelModelImpl model,
                                      org.w3c.dom.Element element)

getResourceString

public static java.lang.String getResourceString(java.lang.String key,
                                                 java.lang.Object... args)

checkNCName

public static boolean checkNCName(java.lang.String str)

splitQName

public static void splitQName(java.lang.String qName,
                              java.lang.String[] result)

isEquals

public static boolean isEquals(java.lang.String str1,
                               java.lang.String str2)

equals

public static boolean equals(java.lang.Object obj1,
                             java.lang.Object obj2)

validate

public static boolean validate(javax.xml.namespace.QName qName)

canUpdatePrefix

public static boolean canUpdatePrefix(Attribute attr)

getUnattachedRoot

public static BpelEntity getUnattachedRoot(BpelEntity entity)

checkPasteCompensate

public static boolean checkPasteCompensate(BpelContainerImpl container,
                                           Component component)

hasAscendant

public static boolean hasAscendant(BpelEntity entity,
                                   java.lang.Class<? extends BpelContainer> clazz)

hasAscendant

public static boolean hasAscendant(BpelEntity entity,
                                   java.lang.Class<? extends BpelContainer> clazz,
                                   Utils.ParentAccess parentAccess)

getPortTypeRef

public static NamedComponentReference<PortType> getPortTypeRef(BpelReference<PartnerLink> reference,
                                                               Component component)

equals

public static boolean equals(javax.xml.namespace.QName name1,
                             javax.xml.namespace.QName name2)

removeXmlComments

public static java.lang.String removeXmlComments(java.lang.String str)

hackXmlEntities

public static java.lang.String hackXmlEntities(java.lang.String str)