|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.xml.binding.Util
Various utilities for XML binding.
Field Summary | |
static char |
ARABIC_END_OF_AYAH
|
static char |
ARABIC_START_OF_RUB_EL_HIZB
|
static char |
COLLON
|
static char |
FULL_STOP
|
static char |
GREEK_ANO_TELEIA
|
static char |
HYPHEN_MINUS
Characters that are considered to be word separators while convertinging XML names to Java identifiers according to JAXB 2.0 spec. |
static char |
LOW_LINE
|
static char |
MIDDLE_DOT
|
Constructor Summary | |
Util()
|
Method Summary | |
static boolean |
isAttributeType(Class type)
|
static String |
xmlNamespaceToJavaPackage(String namespace)
Converts XML namespace to Java package name. |
static String |
xmlNameToClassName(String name,
boolean ignoreLowLine)
Converts XML name to Java class name according to Binding XML Names to Java Identifiers C.2. |
static String |
xmlNameToClassName(String namespaceUri,
String localName,
boolean ignoreLowLine)
Converts XML namespace URI and local name to fully qualified class name. |
static String |
xmlNameToConstantName(String name)
Converts XML name to Java constant name according to Binding XML Names to Java Identifiers C.2. |
static String |
xmlNameToGetMethodName(String name,
boolean ignoreLowLine)
Converts XML name to Java getter method name according to Binding XML Names to Java Identifiers C.2. |
static String |
xmlNameToSetMethodName(String name,
boolean ignoreLowLine)
Converts XML name to Java setter method name according to Binding XML Names to Java Identifiers C.2. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final char HYPHEN_MINUS
public static final char FULL_STOP
public static final char COLLON
public static final char LOW_LINE
public static final char MIDDLE_DOT
public static final char GREEK_ANO_TELEIA
public static final char ARABIC_END_OF_AYAH
public static final char ARABIC_START_OF_RUB_EL_HIZB
Constructor Detail |
public Util()
Method Detail |
public static String xmlNameToClassName(String name, boolean ignoreLowLine)
name
- XML nameignoreLowLine
- whether low lines should not be parts of Java identifiers
public static String xmlNameToGetMethodName(String name, boolean ignoreLowLine)
name
- XML nameignoreLowLine
- whether low lines should not be parts of Java identifiers
public static String xmlNameToSetMethodName(String name, boolean ignoreLowLine)
name
- XML nameignoreLowLine
- whether low lines should not be parts of Java identifiers
public static String xmlNameToConstantName(String name)
name
- XML name
public static String xmlNamespaceToJavaPackage(String namespace)
namespace
- XML namespace
public static String xmlNameToClassName(String namespaceUri, String localName, boolean ignoreLowLine)
namespaceUri
- namespace URIlocalName
- local nameignoreLowLine
- should low lines be ignored in the class name
public static boolean isAttributeType(Class type)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |