Class CodeAnalysisAnnotationProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.EntityProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.AuthoredReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.surveyreports.AnnotationProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.surveyreports.CodeAnalysisAnnotationProperties
CodeAnalysisAnnotationProperties describes the content of the code in a code repository like GitHub.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
typeName -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return number of lines of code in the source code repository, excluding blank lines and comments.Return number of comment lines in the source code repository.Return the highest cyclomatic complexity found in any single function in the source code repository.Return sum of the cyclomatic complexity of every function in the source code repository.Return number of places in the code where data is validated.Return number of places in the code where data is created.Return number of places in the code where data is deleted.Return number of places in the code where data is read.Return number of distinct data stores that the code touches.Return number of places in the code where data is updated.Return number of exported symbols that carry documentation.Return number of entry points into the component, such as main methods, command line commands, route handlers and task definitions.Return number of calls that the code makes out of the component.Return number of files in the source code repository.Return number of functions in the source code repository.Return number of distinct programming languages used in the source code repository.Return total number of physical lines in the source code repository, including blank lines and comments.Return the deepest level of nested control flow found in any single function in the source code repository.Return the programming language that most of the source code in the repository is written in.Return number of symbols that the component exports for use by its callers, such as public functions, classes and endpoints.Return number of files in the source code repository that contain tests.inthashCode()Create a hash code for this element type.voidsetCodeLineCount(Long codeLineCount) Set up number of lines of code in the source code repository, excluding blank lines and comments.voidsetCommentLineCount(Long commentLineCount) Set up number of comment lines in the source code repository.voidsetCyclomaticComplexityMax(Long cyclomaticComplexityMax) Set up the highest cyclomatic complexity found in any single function in the source code repository.voidsetCyclomaticComplexityTotal(Long cyclomaticComplexityTotal) Set up sum of the cyclomatic complexity of every function in the source code repository.voidsetDataChecksCount(Long dataChecksCount) Set up number of places in the code where data is validated.voidsetDataCreateCount(Long dataCreateCount) Set up number of places in the code where data is created.voidsetDataDeleteCount(Long dataDeleteCount) Set up number of places in the code where data is deleted.voidsetDataReadCount(Long dataReadCount) Set up number of places in the code where data is read.voidsetDataStoreCount(Long dataStoreCount) Set up number of distinct data stores that the code touches.voidsetDataUpdateCount(Long dataUpdateCount) Set up number of places in the code where data is updated.voidsetDocumentedSymbolCount(Long documentedSymbolCount) Set up number of exported symbols that carry documentation.voidsetEntryPointCount(Long entryPointCount) Set up number of entry points into the component, such as main methods, command line commands, route handlers and task definitions.voidsetExternalCallCount(Long externalCallCount) Set up number of calls that the code makes out of the component.voidsetFileCount(Long fileCount) Set up number of files in the source code repository.voidsetFunctionCount(Long functionCount) Set up number of functions in the source code repository.voidsetLanguageCount(Long languageCount) Set up number of distinct programming languages used in the source code repository.voidsetLineCount(Long lineCount) Set up total number of physical lines in the source code repository, including blank lines and comments.voidsetMaxNestingDepth(Long maxNestingDepth) Set up the deepest level of nested control flow found in any single function in the source code repository.voidsetPrimaryLanguage(String primaryLanguage) Set up the programming language that most of the source code in the repository is written in.voidsetPublicSymbolCount(Long publicSymbolCount) Set up number of symbols that the component exports for use by its callers, such as public functions, classes and endpoints.voidsetTestFileCount(Long testFileCount) Set up number of files in the source code repository that contain tests.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.surveyreports.AnnotationProperties
getAbsoluteUncertainty, getAnalysisStep, getAnnotationType, getConfidence, getExplanation, getExpression, getJsonProperties, getRelativeUncertainty, getSamplePercent, getSampleSize, getSamplingMethod, getSummary, getUnits, setAbsoluteUncertainty, setAnalysisStep, setAnnotationType, setConfidence, setExplanation, setExpression, setJsonProperties, setRelativeUncertainty, setSamplePercent, setSampleSize, setSamplingMethod, setSummary, setUnitsMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.AuthoredReferenceableProperties
getAuthors, getContentStatus, getUserDefinedContentStatus, setAuthors, setContentStatus, setUserDefinedContentStatusMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getCategory, getDescription, getDisplayName, getIdentifier, getQualifiedName, getURL, getVersionIdentifier, setAdditionalProperties, setCategory, setDescription, setDisplayName, setIdentifier, setQualifiedName, setURL, setVersionIdentifierMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getExtendedProperties, getLegal, getTypeName, setExtendedProperties, setLegal, setTypeNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.EntityProperties
getEffectiveFrom, getEffectiveTo, setEffectiveFrom, setEffectiveTo
-
Constructor Details
-
CodeAnalysisAnnotationProperties
public CodeAnalysisAnnotationProperties()Default constructor -
CodeAnalysisAnnotationProperties
Copy clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getFileCount
Return number of files in the source code repository.- Returns:
- int
-
setFileCount
Set up number of files in the source code repository.- Parameters:
fileCount- int
-
getLineCount
Return total number of physical lines in the source code repository, including blank lines and comments.- Returns:
- long
-
setLineCount
Set up total number of physical lines in the source code repository, including blank lines and comments.- Parameters:
lineCount- long
-
getCodeLineCount
Return number of lines of code in the source code repository, excluding blank lines and comments.- Returns:
- long
-
setCodeLineCount
Set up number of lines of code in the source code repository, excluding blank lines and comments.- Parameters:
codeLineCount- long
-
getCommentLineCount
Return number of comment lines in the source code repository.- Returns:
- long
-
setCommentLineCount
Set up number of comment lines in the source code repository.- Parameters:
commentLineCount- long
-
getPrimaryLanguage
Return the programming language that most of the source code in the repository is written in.- Returns:
- string
-
setPrimaryLanguage
Set up the programming language that most of the source code in the repository is written in.- Parameters:
primaryLanguage- string
-
getLanguageCount
Return number of distinct programming languages used in the source code repository.- Returns:
- int
-
setLanguageCount
Set up number of distinct programming languages used in the source code repository.- Parameters:
languageCount- int
-
getPublicSymbolCount
Return number of symbols that the component exports for use by its callers, such as public functions, classes and endpoints.- Returns:
- long
-
setPublicSymbolCount
Set up number of symbols that the component exports for use by its callers, such as public functions, classes and endpoints.- Parameters:
publicSymbolCount- long
-
getEntryPointCount
Return number of entry points into the component, such as main methods, command line commands, route handlers and task definitions.- Returns:
- int
-
setEntryPointCount
Set up number of entry points into the component, such as main methods, command line commands, route handlers and task definitions.- Parameters:
entryPointCount- int
-
getDataReadCount
Return number of places in the code where data is read.- Returns:
- long
-
setDataReadCount
Set up number of places in the code where data is read.- Parameters:
dataReadCount- long
-
getDataCreateCount
Return number of places in the code where data is created.- Returns:
- long
-
setDataCreateCount
Set up number of places in the code where data is created.- Parameters:
dataCreateCount- long
-
getDataUpdateCount
Return number of places in the code where data is updated.- Returns:
- long
-
setDataUpdateCount
Set up number of places in the code where data is updated.- Parameters:
dataUpdateCount- long
-
getDataDeleteCount
Return number of places in the code where data is deleted.- Returns:
- long
-
setDataDeleteCount
Set up number of places in the code where data is deleted.- Parameters:
dataDeleteCount- long
-
getDataChecksCount
Return number of places in the code where data is validated.- Returns:
- long
-
setDataChecksCount
Set up number of places in the code where data is validated.- Parameters:
dataChecksCount- long
-
getDataStoreCount
Return number of distinct data stores that the code touches.- Returns:
- long
-
setDataStoreCount
Set up number of distinct data stores that the code touches.- Parameters:
dataStoreCount- long
-
getExternalCallCount
Return number of calls that the code makes out of the component.- Returns:
- long
-
setExternalCallCount
Set up number of calls that the code makes out of the component.- Parameters:
externalCallCount- long
-
getFunctionCount
Return number of functions in the source code repository.- Returns:
- long
-
setFunctionCount
Set up number of functions in the source code repository.- Parameters:
functionCount- long
-
getCyclomaticComplexityTotal
Return sum of the cyclomatic complexity of every function in the source code repository.- Returns:
- long
-
setCyclomaticComplexityTotal
Set up sum of the cyclomatic complexity of every function in the source code repository.- Parameters:
cyclomaticComplexityTotal- long
-
getCyclomaticComplexityMax
Return the highest cyclomatic complexity found in any single function in the source code repository.- Returns:
- int
-
setCyclomaticComplexityMax
Set up the highest cyclomatic complexity found in any single function in the source code repository.- Parameters:
cyclomaticComplexityMax- int
-
getMaxNestingDepth
Return the deepest level of nested control flow found in any single function in the source code repository.- Returns:
- int
-
setMaxNestingDepth
Set up the deepest level of nested control flow found in any single function in the source code repository.- Parameters:
maxNestingDepth- int
-
getTestFileCount
Return number of files in the source code repository that contain tests.- Returns:
- int
-
setTestFileCount
Set up number of files in the source code repository that contain tests.- Parameters:
testFileCount- int
-
getDocumentedSymbolCount
Return number of exported symbols that carry documentation.- Returns:
- long
-
setDocumentedSymbolCount
Set up number of exported symbols that carry documentation.- Parameters:
documentedSymbolCount- long
-
toString
Standard toString method.- Overrides:
toStringin classAnnotationProperties- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classAnnotationProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCodein classAnnotationProperties- Returns:
- int hash code
-