|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.Utility
public class Utility
Binding compiler support class. Supplies common methods for use in compiling binding definitions.
| Method Summary | |
|---|---|
static String |
bindingFromFileName(String fname)
Get the default binding name from a supplied file name. |
static String |
fileName(String path)
Extract base file name from a full path. |
static String[] |
getClassPaths()
Method builds a string array of items in the class path. |
static BindingDefinition |
loadBinding(String fname,
String sname,
InputStream istrm,
URL url,
boolean test)
Load validated binding definition. |
static BindingDefinition |
loadFileBinding(String path,
boolean valid)
Load binding definition from file. |
static BindingElement |
validateBinding(String name,
URL url,
InputStream is)
Validate binding definition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String[] getClassPaths()
public static String fileName(String path)
path - full file path
public static String bindingFromFileName(String fname)
fname - simple file name (without leading path information)
public static BindingElement validateBinding(String name,
URL url,
InputStream is)
name - identifier for binding definitionurl - URL for binding definition (null if not
available)is - input stream for reading binding definition
null if one or more errors in binding
public static BindingDefinition loadBinding(String fname,
String sname,
InputStream istrm,
URL url,
boolean test)
throws JiBXException,
IOException
fname - binding definition full namesname - short form of name to use as the default name of the bindingistrm - input stream for binding definition documenturl - URL for binding definition (null if not
available)test - validate binding flag
FileNotFoundException - if path cannot be accessed
JiBXException - if error in processing the binding definition
IOException - if error reading the binding
public static BindingDefinition loadFileBinding(String path,
boolean valid)
throws JiBXException,
IOException
path - file path for binding definitionvalid - validate binding flag
IOException - if error accessing file
JiBXException - if error in processing the binding definition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||