Package org.apache.uima.tools.jcasgen
Class Jg
- java.lang.Object
-
- org.apache.uima.tools.jcasgen.Jg
-
public class Jg extends java.lang.ObjectClass holds type plugin-wide collections and static methods. Also implements the runnable that is called to do the processing
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJg.ErrorExitThe Class ErrorExit.static interfaceJg.IJCasTypeTemplateInterface implemented by JCAS code generation's templates.
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Map<java.lang.String,java.lang.String>_importsThe imports.(package private) static java.util.Map<java.lang.String,TypeInfo>builtInTypesThe built in types.(package private) static TypeSystembuiltInTypeSystemThe built in type system.(package private) CAScasThe cas.static java.util.PropertiescasCreatePropertiesThe Constant casCreateProperties.private TypecasStringTypeThe cas string type.(package private) java.lang.StringclassPathThe class path.(package private) static FeatureDescription[]emptyFdsThe Constant emptyFds.IErrorerrorThe error.(package private) static java.util.Map<java.lang.String,FeatureDescription[]>extendableBuiltInTypesThe Constant extendableBuiltInTypes.(package private) static FeatureDescription[]featureDescriptionArray0The Constant featureDescriptionArray0.private static java.util.List<java.lang.String>genericFeatureDescriptorTypes(package private) GUIguiThe gui.(package private) java.util.Map<java.lang.String,java.lang.String>importsThe imports.private static booleanIS_TRACE_LIMITED(package private) static java.lang.StringjControlModelThe Constant jControlModel.private booleanlimitJCasGenToProjectScopeThe limit J cas gen to project scope.private java.util.Map<java.lang.String,java.util.Set<java.lang.String>>mergedTypesAddingFeaturesThe merged types adding features.(package private) IMergemergerThe merger.(package private) static java.util.Set<java.lang.String>noGenTypesSet of types not generated from the CAS type set because they're already in existence as builtins in the JCas impl.private static java.util.ArrayList<java.lang.String>nonImportableJavaNamesThe non importable java names.(package private) java.lang.StringpackageNameThe package name.(package private) IProgressMonitorprogressMonitorThe progress monitor.private java.lang.StringprojectPathDirThe project path dir.(package private) static java.util.Collection<java.lang.String>reservedFeatureNamesThe Constant reservedFeatureNames.private static java.util.ResourceBundleresourceBundleThe resource bundle.(package private) java.lang.StringsimpleClassNameThe simple class name.private TypetcasAnnotationTypeThe tcas annotation type.private TypeSystemtypeSystemThe type system.(package private) WaiterwaiterThe waiter.(package private) java.lang.StringxmlSourceFileNameThe xml source file name.
-
Constructor Summary
Constructors Constructor Description Jg()Instantiates a new jg.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidaddBuiltInTypeInfo(java.lang.String casName, java.lang.String javaName)Adds the built in type info.private static voidaddBuiltInTypeInfo(java.lang.String casName, java.lang.String javaName, java.lang.String casElementName)Adds the built in type info.(package private) java.lang.StringarrayCore(java.lang.String get_set, java.lang.String range, java.lang.String arrayRange, java.lang.String fname)Array core.(package private) java.lang.StringarrayLLCore(java.lang.String get_set, java.lang.String range, java.lang.String fname)Array LL core.(package private) java.lang.StringarrayLLCoreChk(java.lang.String get_set, java.lang.String range, java.lang.String fname)Array LL core chk.(package private) java.lang.StringcastResult(java.lang.String resultType, java.lang.String core)Cast result.(package private) voidcollectImport(java.lang.String casName, boolean _Type)Collect import.(package private) java.util.Collection<java.lang.String>collectImports(TypeDescription td, boolean _Type)Collect imports.ResourceManagercreateResourceManager()Creates the resource manager.voiddriveGui()Drive gui.private voidgenerateAllTypesFromTemplates(java.lang.String outputDirectory, TypeDescription[] tds, CASImpl aCas, java.lang.Class<JCasTypeTemplate> jcasTypeClass)Generate all types from templates.private voidgenerateClass(IProgressMonitor progressMonitorGenerateClass, java.lang.String outputDirectory, TypeDescription td, java.lang.String sourceContents, java.lang.String className, IMerge mergerGenerateClass)Generate class.private voidgenerateClassesFromTemplate(TypeDescription td, java.lang.String outputDirectory, Jg.IJCasTypeTemplate jcasTypeInstance)Generate type classes from the specified templates.(package private) java.lang.StringgetArrayFeatureValue(FeatureDescription fd, TypeDescription td)Gets the array feature value.private java.lang.StringgetCheckSuffix(java.lang.String get_set, java.lang.String range)Gets the check suffix.(package private) java.lang.StringgetDate()Gets the date.(package private) java.lang.StringgetFeatureValue(FeatureDescription fd, TypeDescription td)Gets the feature value.(package private) java.lang.StringgetGetSetArrayNamePart(FeatureDescription fd)Gets the gets the set array name part.(package private) java.lang.StringgetGetSetNamePart(FeatureDescription fd)Gets the gets the set name part.(package private) java.lang.StringgetJavaName(java.lang.String name)Gets the java name.(package private) java.lang.StringgetJavaName(TypeDescription td)Gets the java name.(package private) java.lang.StringgetJavaName_Type(TypeDescription td)Gets the java name type.(package private) java.lang.StringgetJavaNameWithPkg(java.lang.String casTypeName)Gets the java name with pkg.(package private) java.lang.StringgetJavaPkg(TypeDescription td)Gets the java pkg.(package private) java.lang.StringgetJavaRangeArrayElementType(FeatureDescription fd)Gets the java range array element type.(package private) java.lang.StringgetJavaRangeArrayElementType2(FeatureDescription fd)Gets the java range array element type, with generic type or ? in <> as needed(package private) java.lang.StringgetJavaRangeType(FeatureDescription fd)Gets the java range type.(package private) java.lang.StringgetJavaRangeType2(FeatureDescription fd)Gets the java range type, with generic types in <> as required.(package private) java.lang.StringgetPkg(java.lang.String nameWithPkg)Gets the pkg.(package private) java.lang.StringgetPkg(TypeDescription td)Gets the pkg.java.util.ResourceBundlegetResourceBundle()Returns the plugin's resource bundle,.java.lang.StringgetResourceString(java.lang.String key)Returns the string from the plugin's resource bundle, or 'key' if not found.java.lang.StringgetString(java.lang.String key, java.lang.Object[] substitutions)Gets the string.(package private) booleanhasArrayRange(FeatureDescription fd)Checks for array range.(package private) booleanhasPkgPrefix(java.lang.String name)Checks for pkg prefix.(package private) booleanisElementTypeGeneric(FeatureDescription fd)private booleanisOutOfScope(TypeDescription td, java.lang.String projectDirPath)return true if td is not defined in this project, or it is defined, but is also in merged and any of the other merged urls are not defined in this project.(package private) booleanisPossibleIndexKey(FeatureDescription fd)Checks if is possible index key.(package private) booleanisRangeTypeGeneric(FeatureDescription fd)private booleanisSameFeatureDescription(FeatureDescription f1, FeatureDescription f2)Checks if is same feature description.(package private) booleanisStringSubtype(FeatureDescription fd)Checks if is string subtype.(package private) booleanisSubTypeOfAnnotation(TypeDescription td)Checks if is sub type of annotation.static voidmain(java.lang.String[] args)The main method.intmain0(java.lang.String[] args, IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError)Main 0.intmain1(java.lang.String[] arguments)Arguments are: -jcasgeninput xxxx -jcasgenoutput xxxx -jcasgenclasspath xxxxvoidmainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, java.lang.String inputFile, java.lang.String outputDirectory, TypeDescription[] tds, CASImpl aCas)Main for cde.voidmainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, java.lang.String inputFile, java.lang.String outputDirectory, TypeDescription[] tds, CASImpl aCas, java.lang.String pProjectPathDir, boolean limitToProjectScope, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> pMergedTypesAddingFeatures)Main for cde.voidmainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, java.lang.String inputFile, java.lang.String outputDirectory, TypeDescription[] tds, CASImpl aCas, java.lang.Class<JCasTypeTemplate> jcasTypeClass, java.lang.Class<JCasTypeTemplate> jcas_TypeClass)Main generate all types from templates.voidmainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, java.lang.String inputFile, java.lang.String outputDirectory, TypeDescription[] tds, CASImpl aCas, java.lang.Class<JCasTypeTemplate> jcasTypeClass, java.lang.String pProjectPathDir, boolean limitToProjectScope, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> pMergedTypesAddingFeatures)Main generate all types from templates.private java.lang.StringmakeMergeMessage(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> m)Make merge message.private TypeSystemDescriptionmergeTypeSystemImports(TypeSystemDescription tsd)Merge type system imports.(package private) java.lang.StringnullBlank(java.lang.String s)Null blank.static java.lang.StringremovePkg(java.lang.String name)Removes the pkg.(package private) java.lang.Stringsc(java.lang.String v)Sc.(package private) java.lang.StringsetArrayFeatureValue(FeatureDescription fd, TypeDescription td)Sets the array feature value.(package private) java.util.List<FeatureDescription>setDifference(FeatureDescription[] newFeatures, FeatureDescription[] alreadyDefinedFeatures)Sets the difference.(package private) java.lang.StringsetFeatureValue(FeatureDescription fd, TypeDescription td)Sets the feature value.(package private) java.lang.StringsimpleCore(java.lang.String get_set, java.lang.String range, java.lang.String fname)Simple core.(package private) java.lang.StringsimpleLLCore(java.lang.String get_set, java.lang.String range, java.lang.String fname)Simple LL core.(package private) java.lang.Stringuc1(java.lang.String name)Uc 1.(package private) java.lang.StringwrapToGetFS(java.lang.String core, java.lang.String range)Wrap to get FS.
-
-
-
Field Detail
-
IS_TRACE_LIMITED
private static final boolean IS_TRACE_LIMITED
- See Also:
- Constant Field Values
-
jControlModel
static final java.lang.String jControlModel
The Constant jControlModel.- See Also:
- Constant Field Values
-
featureDescriptionArray0
static final FeatureDescription[] featureDescriptionArray0
The Constant featureDescriptionArray0.
-
reservedFeatureNames
static final java.util.Collection<java.lang.String> reservedFeatureNames
The Constant reservedFeatureNames.
-
noGenTypes
static final java.util.Set<java.lang.String> noGenTypes
Set of types not generated from the CAS type set because they're already in existence as builtins in the JCas impl. and if they're generated, the generated forms are wrong.
-
casCreateProperties
public static final java.util.Properties casCreateProperties
The Constant casCreateProperties.
-
extendableBuiltInTypes
static final java.util.Map<java.lang.String,FeatureDescription[]> extendableBuiltInTypes
The Constant extendableBuiltInTypes.
-
emptyFds
static final FeatureDescription[] emptyFds
The Constant emptyFds.
-
builtInTypeSystem
static TypeSystem builtInTypeSystem
The built in type system.
-
builtInTypes
static java.util.Map<java.lang.String,TypeInfo> builtInTypes
The built in types.
-
genericFeatureDescriptorTypes
private static java.util.List<java.lang.String> genericFeatureDescriptorTypes
-
resourceBundle
private static java.util.ResourceBundle resourceBundle
The resource bundle.
-
imports
final java.util.Map<java.lang.String,java.lang.String> imports
The imports.
-
_imports
final java.util.Map<java.lang.String,java.lang.String> _imports
The imports.
-
classPath
java.lang.String classPath
The class path.
-
xmlSourceFileName
java.lang.String xmlSourceFileName
The xml source file name.
-
cas
CAS cas
The cas.
-
gui
GUI gui
The gui.
-
merger
IMerge merger
The merger.
-
progressMonitor
IProgressMonitor progressMonitor
The progress monitor.
-
error
public IError error
The error.
-
waiter
Waiter waiter
The waiter.
-
packageName
java.lang.String packageName
The package name.
-
simpleClassName
java.lang.String simpleClassName
The simple class name.
-
typeSystem
private TypeSystem typeSystem
The type system.
-
casStringType
private Type casStringType
The cas string type.
-
tcasAnnotationType
private Type tcasAnnotationType
The tcas annotation type.
-
mergedTypesAddingFeatures
private java.util.Map<java.lang.String,java.util.Set<java.lang.String>> mergedTypesAddingFeatures
The merged types adding features.
-
projectPathDir
private java.lang.String projectPathDir
The project path dir.
-
limitJCasGenToProjectScope
private boolean limitJCasGenToProjectScope
The limit J cas gen to project scope.
-
nonImportableJavaNames
private static java.util.ArrayList<java.lang.String> nonImportableJavaNames
The non importable java names.
-
-
Method Detail
-
addBuiltInTypeInfo
private static void addBuiltInTypeInfo(java.lang.String casName, java.lang.String javaName, java.lang.String casElementName)Adds the built in type info.- Parameters:
casName- the cas namejavaName- the java namecasElementName- the cas element name
-
addBuiltInTypeInfo
private static void addBuiltInTypeInfo(java.lang.String casName, java.lang.String javaName)Adds the built in type info.- Parameters:
casName- the cas namejavaName- the java name
-
getResourceString
public java.lang.String getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.- Parameters:
key- the key- Returns:
- the resource string
-
getString
public java.lang.String getString(java.lang.String key, java.lang.Object[] substitutions)Gets the string.- Parameters:
key- the keysubstitutions- the substitutions- Returns:
- the string
-
getResourceBundle
public java.util.ResourceBundle getResourceBundle()
Returns the plugin's resource bundle,.- Returns:
- the resource bundle
-
driveGui
public void driveGui()
Drive gui.
-
main
public static void main(java.lang.String[] args)
The main method.- Parameters:
args- the arguments
-
mainForCde
public void mainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, java.lang.String inputFile, java.lang.String outputDirectory, TypeDescription[] tds, CASImpl aCas) throws java.io.IOException
Main for cde.- Parameters:
aMerger- the a mergeraProgressMonitor- the a progress monitoraError- the a errorinputFile- the input fileoutputDirectory- the output directorytds- the tdsaCas- the a cas- Throws:
java.io.IOException- Signals that an I/O exception has occurred.
-
mainForCde
public void mainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, java.lang.String inputFile, java.lang.String outputDirectory, TypeDescription[] tds, CASImpl aCas, java.lang.String pProjectPathDir, boolean limitToProjectScope, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> pMergedTypesAddingFeatures) throws java.io.IOException
Main for cde.- Parameters:
aMerger- the a mergeraProgressMonitor- the a progress monitoraError- the a errorinputFile- the input fileoutputDirectory- the output directorytds- the tdsaCas- the a caspProjectPathDir- the project path dirlimitToProjectScope- the limit J cas gen to project scopepMergedTypesAddingFeatures- the merged types adding features- Throws:
java.io.IOException- Signals that an I/O exception has occurred.
-
mainGenerateAllTypesFromTemplates
public void mainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, java.lang.String inputFile, java.lang.String outputDirectory, TypeDescription[] tds, CASImpl aCas, java.lang.Class<JCasTypeTemplate> jcasTypeClass, java.lang.Class<JCasTypeTemplate> jcas_TypeClass) throws java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException
Main generate all types from templates.- Parameters:
aMerger- the a mergeraProgressMonitor- the a progress monitoraError- the a errorinputFile- the input fileoutputDirectory- the output directorytds- the tdsaCas- the a casjcasTypeClass- the jcas type classjcas_TypeClass- the jcas type class- Throws:
java.io.IOException- Signals that an I/O exception has occurred.java.lang.InstantiationException- the instantiation exceptionjava.lang.IllegalAccessException- the illegal access exception
-
mainGenerateAllTypesFromTemplates
public void mainGenerateAllTypesFromTemplates(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, java.lang.String inputFile, java.lang.String outputDirectory, TypeDescription[] tds, CASImpl aCas, java.lang.Class<JCasTypeTemplate> jcasTypeClass, java.lang.String pProjectPathDir, boolean limitToProjectScope, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> pMergedTypesAddingFeatures) throws java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException
Main generate all types from templates.- Parameters:
aMerger- the a mergeraProgressMonitor- the a progress monitoraError- the a errorinputFile- the input fileoutputDirectory- the output directorytds- the tdsaCas- the a casjcasTypeClass- the jcas type classpProjectPathDir- the project path dirlimitToProjectScope- the limit J cas gen to project scopepMergedTypesAddingFeatures- the merged types adding features- Throws:
java.io.IOException- Signals that an I/O exception has occurred.java.lang.InstantiationException- the instantiation exceptionjava.lang.IllegalAccessException- the illegal access exception
-
main0
public int main0(java.lang.String[] args, IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError)Main 0.- Parameters:
args- the argsaMerger- the a mergeraProgressMonitor- the a progress monitoraError- the a error- Returns:
- the int
-
main1
public int main1(java.lang.String[] arguments)
Arguments are: -jcasgeninput xxxx -jcasgenoutput xxxx -jcasgenclasspath xxxx- Parameters:
arguments- the arguments- Returns:
- the int
-
makeMergeMessage
private java.lang.String makeMergeMessage(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> m)
Make merge message.- Parameters:
m- the m- Returns:
- the string
-
generateAllTypesFromTemplates
private void generateAllTypesFromTemplates(java.lang.String outputDirectory, TypeDescription[] tds, CASImpl aCas, java.lang.Class<JCasTypeTemplate> jcasTypeClass) throws java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessExceptionGenerate all types from templates.- Parameters:
outputDirectory- the output directorytds- the tdsaCas- the a casjcasTypeClass- the jcas type class- Throws:
java.io.IOException- Signals that an I/O exception has occurred.java.lang.InstantiationException- the instantiation exceptionjava.lang.IllegalAccessException- the illegal access exception
-
isOutOfScope
private boolean isOutOfScope(TypeDescription td, java.lang.String projectDirPath)
return true if td is not defined in this project, or it is defined, but is also in merged and any of the other merged urls are not defined in this project.- Parameters:
td- the tdprojectDirPath- the project dir path- Returns:
- true, if is out of scope
-
generateClassesFromTemplate
private void generateClassesFromTemplate(TypeDescription td, java.lang.String outputDirectory, Jg.IJCasTypeTemplate jcasTypeInstance) throws java.io.IOException
Generate type classes from the specified templates.- Parameters:
td- TypeDescription objectoutputDirectory- output directoryjcasTypeInstance- Template instance used to generate class- Throws:
java.io.IOException- -
-
getPkg
java.lang.String getPkg(TypeDescription td)
Gets the pkg.- Parameters:
td- the td- Returns:
- the pkg
-
getPkg
java.lang.String getPkg(java.lang.String nameWithPkg)
Gets the pkg.- Parameters:
nameWithPkg- the name with pkg- Returns:
- the pkg
-
generateClass
private void generateClass(IProgressMonitor progressMonitorGenerateClass, java.lang.String outputDirectory, TypeDescription td, java.lang.String sourceContents, java.lang.String className, IMerge mergerGenerateClass) throws java.io.IOException
Generate class.- Parameters:
progressMonitorGenerateClass- the progress monitor generate classoutputDirectory- the output directorytd- the tdsourceContents- the source contentsclassName- the class namemergerGenerateClass- the merger generate class- Throws:
java.io.IOException- Signals that an I/O exception has occurred.
-
removePkg
public static java.lang.String removePkg(java.lang.String name)
Removes the pkg.- Parameters:
name- the name- Returns:
- the string
-
sc
java.lang.String sc(java.lang.String v)
Sc.- Parameters:
v- the v- Returns:
- the string
-
getJavaPkg
java.lang.String getJavaPkg(TypeDescription td)
Gets the java pkg.- Parameters:
td- the td- Returns:
- the java pkg
-
getJavaNameWithPkg
java.lang.String getJavaNameWithPkg(java.lang.String casTypeName)
Gets the java name with pkg.- Parameters:
casTypeName- the cas type name- Returns:
- the java name with pkg
-
hasPkgPrefix
boolean hasPkgPrefix(java.lang.String name)
Checks for pkg prefix.- Parameters:
name- the name- Returns:
- true, if successful
-
getJavaName
java.lang.String getJavaName(TypeDescription td)
Gets the java name.- Parameters:
td- the td- Returns:
- the java name
-
getJavaName_Type
java.lang.String getJavaName_Type(TypeDescription td)
Gets the java name type.- Parameters:
td- the td- Returns:
- the java name type
-
getJavaName
java.lang.String getJavaName(java.lang.String name)
Gets the java name.- Parameters:
name- the name- Returns:
- the java name
-
collectImport
void collectImport(java.lang.String casName, boolean _Type)Collect import.- Parameters:
casName- the cas name_Type- the type
-
collectImports
java.util.Collection<java.lang.String> collectImports(TypeDescription td, boolean _Type)
Collect imports.- Parameters:
td- the td_Type- the type- Returns:
- the collection
-
getJavaRangeType
java.lang.String getJavaRangeType(FeatureDescription fd)
Gets the java range type.- Parameters:
fd- the fd- Returns:
- the java range type
-
getJavaRangeType2
java.lang.String getJavaRangeType2(FeatureDescription fd)
Gets the java range type, with generic types in <> as required.- Parameters:
fd- the fd- Returns:
- the java range type
-
isSubTypeOfAnnotation
boolean isSubTypeOfAnnotation(TypeDescription td)
Checks if is sub type of annotation.- Parameters:
td- the td- Returns:
- true, if is sub type of annotation
-
hasArrayRange
boolean hasArrayRange(FeatureDescription fd)
Checks for array range.- Parameters:
fd- the fd- Returns:
- true, if successful
-
isPossibleIndexKey
boolean isPossibleIndexKey(FeatureDescription fd)
Checks if is possible index key.- Parameters:
fd- the fd- Returns:
- true, if is possible index key
-
isStringSubtype
boolean isStringSubtype(FeatureDescription fd)
Checks if is string subtype.- Parameters:
fd- the fd- Returns:
- true, if is string subtype
-
getJavaRangeArrayElementType
java.lang.String getJavaRangeArrayElementType(FeatureDescription fd)
Gets the java range array element type.- Parameters:
fd- the fd- Returns:
- the java range array element type
-
getJavaRangeArrayElementType2
java.lang.String getJavaRangeArrayElementType2(FeatureDescription fd)
Gets the java range array element type, with generic type or ? in <> as needed- Parameters:
fd- the fd- Returns:
- the java range array element type
-
uc1
java.lang.String uc1(java.lang.String name)
Uc 1.- Parameters:
name- the name- Returns:
- the string
-
getDate
java.lang.String getDate()
Gets the date.- Returns:
- the date
-
castResult
java.lang.String castResult(java.lang.String resultType, java.lang.String core)Cast result.- Parameters:
resultType- the result typecore- the core- Returns:
- the string
-
wrapToGetFS
java.lang.String wrapToGetFS(java.lang.String core, java.lang.String range)Wrap to get FS.- Parameters:
core- string representing the get or set coderange- Boolean, Byte, Short, Int, Long, Float, Double, String, or Feature- Returns:
- -
-
simpleCore
java.lang.String simpleCore(java.lang.String get_set, java.lang.String range, java.lang.String fname)Simple core.- Parameters:
get_set- get or setrange- Boolean, Byte, Short, Int, Long, Float, Double, String, or Featurefname- feature name (e.g. "begin"- Returns:
- the string
-
simpleLLCore
java.lang.String simpleLLCore(java.lang.String get_set, java.lang.String range, java.lang.String fname)Simple LL core.- Parameters:
get_set- the get setrange- the rangefname- the fname- Returns:
- the string
-
arrayCore
java.lang.String arrayCore(java.lang.String get_set, java.lang.String range, java.lang.String arrayRange, java.lang.String fname)Array core.- Parameters:
get_set- get or setrange- the component range: Boolean, Byte, Short, Int, Long, Float, Double, String, FeaturearrayRange- the array rangefname- the fname- Returns:
- the string
-
arrayLLCore
java.lang.String arrayLLCore(java.lang.String get_set, java.lang.String range, java.lang.String fname)Array LL core.- Parameters:
get_set- the get setrange- the rangefname- the fname- Returns:
- the string
-
arrayLLCoreChk
java.lang.String arrayLLCoreChk(java.lang.String get_set, java.lang.String range, java.lang.String fname)Array LL core chk.- Parameters:
get_set- the get setrange- the rangefname- the fname- Returns:
- the string
-
getFeatureValue
java.lang.String getFeatureValue(FeatureDescription fd, TypeDescription td)
Gets the feature value.- Parameters:
fd- the fdtd- the td- Returns:
- the feature value
-
setFeatureValue
java.lang.String setFeatureValue(FeatureDescription fd, TypeDescription td)
Sets the feature value.- Parameters:
fd- the fdtd- the td- Returns:
- the string
-
getArrayFeatureValue
java.lang.String getArrayFeatureValue(FeatureDescription fd, TypeDescription td)
Gets the array feature value.- Parameters:
fd- the fdtd- the td- Returns:
- the array feature value
-
setArrayFeatureValue
java.lang.String setArrayFeatureValue(FeatureDescription fd, TypeDescription td)
Sets the array feature value.- Parameters:
fd- the fdtd- the td- Returns:
- the string
-
getGetSetNamePart
java.lang.String getGetSetNamePart(FeatureDescription fd)
Gets the gets the set name part.- Parameters:
fd- the fd- Returns:
- the gets the set name part
-
getGetSetArrayNamePart
java.lang.String getGetSetArrayNamePart(FeatureDescription fd)
Gets the gets the set array name part.- Parameters:
fd- the fd- Returns:
- the gets the set array name part
-
nullBlank
java.lang.String nullBlank(java.lang.String s)
Null blank.- Parameters:
s- the s- Returns:
- the string
-
createResourceManager
public ResourceManager createResourceManager()
Creates the resource manager.- Returns:
- the resource manager
-
mergeTypeSystemImports
private TypeSystemDescription mergeTypeSystemImports(TypeSystemDescription tsd) throws ResourceInitializationException
Merge type system imports.- Parameters:
tsd- the tsd- Returns:
- the type system description
- Throws:
ResourceInitializationException- the resource initialization exception
-
setDifference
java.util.List<FeatureDescription> setDifference(FeatureDescription[] newFeatures, FeatureDescription[] alreadyDefinedFeatures)
Sets the difference.- Parameters:
newFeatures- the new featuresalreadyDefinedFeatures- the already defined features- Returns:
- the list
-
isSameFeatureDescription
private boolean isSameFeatureDescription(FeatureDescription f1, FeatureDescription f2)
Checks if is same feature description.- Parameters:
f1- the f 1f2- the f 2- Returns:
- true, if is same feature description
-
getCheckSuffix
private java.lang.String getCheckSuffix(java.lang.String get_set, java.lang.String range)Gets the check suffix.- Parameters:
get_set- the get setrange- the range- Returns:
- the check suffix
-
isRangeTypeGeneric
boolean isRangeTypeGeneric(FeatureDescription fd)
-
isElementTypeGeneric
boolean isElementTypeGeneric(FeatureDescription fd)
-
-