ResourceFactoryImpl.class);
XMLDocument doc = XMLHelper.INSTANCE.load(new FileInputStream("somefile.xml"), null, options);
Note: this option currently only works for simple schemas without substitution groups or wildcards.
-noUnsettable
By default, some XML constructs result in SDO property implementations that maintain additional
state information to record when the property has been set to the "default value", as opposed to
being truly unset (see DataObject.isSet() and DataObject.unset()). The SDO specification allows an
implementation to choose to provide this behavior or not. With this option, all generated properties
will not record their unset state. The generated isSet() methods simply returns whether the current
value is equal to the property's "default value".
Method Summary |
static org.eclipse.emf.codegen.ecore.genmodel.GenPackage |
createGenPackage(org.eclipse.emf.ecore.EPackage ePackage,
java.lang.String basePackage,
java.lang.String prefix,
int genOptions,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
|
static org.eclipse.emf.codegen.ecore.genmodel.GenModel |
ecore2GenModel(org.eclipse.emf.ecore.EPackage ePackage,
java.lang.String basePackage,
java.lang.String prefix,
int genOptions)
|
static java.lang.String |
extractBasePackageName(org.eclipse.emf.ecore.EPackage ePackage,
java.lang.String javaPackage)
|
static void |
generateFromEPackage(org.eclipse.emf.ecore.EPackage ePackage,
java.lang.String targetDirectory,
java.lang.String basePackage,
java.lang.String prefix,
int genOptions)
|
static void |
generateFromGenModel(org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel,
java.lang.String targetDirectory,
int genOptions)
|
static void |
generateFromXMLSchema(java.lang.String xsdFileName,
java.lang.String targetDirectory,
java.lang.String javaPackage,
java.lang.String prefix,
int genOptions)
Deprecated. moved to XSD2JavaGenerator |
static void |
generatePackages(java.util.Collection packageList,
java.lang.String packageURI,
java.lang.String shortName,
java.lang.String targetDirectory,
java.lang.String javaPackage,
java.lang.String prefix,
int genOptions)
|
static java.lang.String |
getSchemaNamespace(java.lang.String xsdFileName)
Deprecated. |
protected int |
handleArgument(java.lang.String[] args,
int index)
|
static void |
main(java.lang.String[] args)
Deprecated. replaced by XSD2JavaGenerator |
protected static void |
printDiagnostic(org.eclipse.emf.common.util.Diagnostic diagnostic,
java.lang.String indent)
|
protected static void |
printUsage()
|
protected void |
processArguments(java.lang.String[] args)
|
protected abstract void |
run(java.lang.String[] args)
|
static java.lang.String |
safeQualifiedName(java.lang.String qualifiedName)
|
static java.lang.String |
shortName(java.lang.String qualifiedName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPTION_NO_INTERFACES
public static int OPTION_NO_INTERFACES
OPTION_SPARSE_PATTERN
public static int OPTION_SPARSE_PATTERN
OPTION_STORE_PATTERN
public static int OPTION_STORE_PATTERN
OPTION_NO_CONTAINMENT
public static int OPTION_NO_CONTAINMENT
OPTION_NO_NOTIFICATION
public static int OPTION_NO_NOTIFICATION
OPTION_ARRAY_ACCESSORS
public static int OPTION_ARRAY_ACCESSORS
OPTION_GENERATE_LOADER
public static int OPTION_GENERATE_LOADER
OPTION_NO_UNSETTABLE
public static int OPTION_NO_UNSETTABLE
OPTION_GENERATE_SWITCH
public static int OPTION_GENERATE_SWITCH
OPTION_NO_EMF
public static int OPTION_NO_EMF
OPTION_INTERFACE_DO
public static int OPTION_INTERFACE_DO
targetDirectory
protected java.lang.String targetDirectory
javaPackage
protected java.lang.String javaPackage
prefix
protected java.lang.String prefix
genOptions
protected int genOptions
xsdFileName
protected java.lang.String xsdFileName
inputIndex
protected int inputIndex
JavaGenerator
public JavaGenerator()
main
public static void main(java.lang.String[] args)
- Deprecated. replaced by XSD2JavaGenerator
processArguments
protected void processArguments(java.lang.String[] args)
handleArgument
protected int handleArgument(java.lang.String[] args,
int index)
run
protected abstract void run(java.lang.String[] args)
generateFromXMLSchema
public static void generateFromXMLSchema(java.lang.String xsdFileName,
java.lang.String targetDirectory,
java.lang.String javaPackage,
java.lang.String prefix,
int genOptions)
- Deprecated. moved to XSD2JavaGenerator
generatePackages
public static void generatePackages(java.util.Collection packageList,
java.lang.String packageURI,
java.lang.String shortName,
java.lang.String targetDirectory,
java.lang.String javaPackage,
java.lang.String prefix,
int genOptions)
getSchemaNamespace
public static java.lang.String getSchemaNamespace(java.lang.String xsdFileName)
- Deprecated.
createGenPackage
public static org.eclipse.emf.codegen.ecore.genmodel.GenPackage createGenPackage(org.eclipse.emf.ecore.EPackage ePackage,
java.lang.String basePackage,
java.lang.String prefix,
int genOptions,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
generateFromEPackage
public static void generateFromEPackage(org.eclipse.emf.ecore.EPackage ePackage,
java.lang.String targetDirectory,
java.lang.String basePackage,
java.lang.String prefix,
int genOptions)
generateFromGenModel
public static void generateFromGenModel(org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel,
java.lang.String targetDirectory,
int genOptions)
ecore2GenModel
public static org.eclipse.emf.codegen.ecore.genmodel.GenModel ecore2GenModel(org.eclipse.emf.ecore.EPackage ePackage,
java.lang.String basePackage,
java.lang.String prefix,
int genOptions)
extractBasePackageName
public static java.lang.String extractBasePackageName(org.eclipse.emf.ecore.EPackage ePackage,
java.lang.String javaPackage)
shortName
public static java.lang.String shortName(java.lang.String qualifiedName)
safeQualifiedName
public static java.lang.String safeQualifiedName(java.lang.String qualifiedName)
printDiagnostic
protected static void printDiagnostic(org.eclipse.emf.common.util.Diagnostic diagnostic,
java.lang.String indent)
printUsage
protected static void printUsage()
Copyright © 2006 Apache Software Foundation. All Rights Reserved.