Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HexarA/Json2Pojo
/ functions
Functions
63 in github.com/HexarA/Json2Pojo
⨍
Functions
63
◇
Types & classes
12
↓ 30 callers
Method
addSingularize
( String rule, String replacement )
src/org/jboss/dna/common/text/Inflector.java:465
↓ 23 callers
Method
addPluralize
( String rule, String replacement )
src/org/jboss/dna/common/text/Inflector.java:459
↓ 19 callers
Method
formatClassName
Formats the given property name into a more standard class name. @param propertyName the original property name. @return the formatted class name.
src/net/hexar/json2pojo/GeneratePojos.java:509
↓ 19 callers
Method
formatFieldName
Formats the given property name into a more standard field name. @param propertyName the original property name. @param useMPrefix true if the fiel
src/net/hexar/json2pojo/GeneratePojos.java:520
↓ 8 callers
Method
getInstance
()
src/org/jboss/dna/common/text/Inflector.java:45
↓ 7 callers
Method
toString
()
src/org/jboss/dna/common/text/Inflector.java:90
↓ 6 callers
Method
addIrregular
( String singular, String plural )
src/org/jboss/dna/common/text/Inflector.java:471
↓ 5 callers
Method
equals
( Object obj )
src/org/jboss/dna/common/text/Inflector.java:80
↓ 5 callers
Method
sanitizePropertyName
Given a property name as a string, creates a valid identifier by removing non-alphanumeric characters and uppercasing the letters after non-alphanumer
src/net/hexar/json2pojo/GeneratePojos.java:536
↓ 3 callers
Method
apply
Apply the rule against the input string, returning the modified string or null if the rule didn't apply (and no modifications were made) @param input
src/org/jboss/dna/common/text/Inflector.java:69
↓ 3 callers
Method
capitalize
Returns a copy of the input with the first character converted to uppercase and the remainder to lowercase. @param words the word to be capitalized @
src/org/jboss/dna/common/text/Inflector.java:347
↓ 3 callers
Method
onCancel
()
src/net/hexar/json2pojo/JsonEntryDialog.java:115
↓ 3 callers
Method
singularize
Returns the singular form of the word in the string. <p> Examples: <pre> inflector.singularize("posts") #=> "post&quo
src/org/jboss/dna/common/text/Inflector.java:190
↓ 3 callers
Method
validate
Validates the class name and JSON text and enables the OK button if validation passes.
src/net/hexar/json2pojo/JsonEntryDialog.java:152
↓ 2 callers
Method
camelCase
By default, this method converts strings to UpperCamelCase. If the <code>uppercaseFirstLetter</code> argument to false, then this method produces lowe
src/org/jboss/dna/common/text/Inflector.java:281
↓ 2 callers
Method
isUncountable
Determine whether the supplied word is considered uncountable by the {@link #pluralize(Object) pluralize} and {@link #singularize(Object) singularize}
src/org/jboss/dna/common/text/Inflector.java:444
↓ 2 callers
Method
parseObject
Generates all of the sub-objects for a given class. @param classNode the JSON object node in the JSON syntax tree. @param className the name of the c
src/net/hexar/json2pojo/GeneratePojos.java:135
↓ 2 callers
Method
replaceAllWithUppercase
Utility method to replace all occurrences given by the specific backreference with its uppercased form, and remove all other backreferences. <p> The J
src/org/jboss/dna/common/text/Inflector.java:507
↓ 1 callers
Method
addUncountable
( String... words )
src/org/jboss/dna/common/text/Inflector.java:485
↓ 1 callers
Method
annotateClass
Adds the {@link Generated} annotation to the class. @param clazz the class to annotate.
src/net/hexar/json2pojo/GeneratePojos.java:372
↓ 1 callers
Method
annotateField
Adds the {@link Expose} annotation and potentially the {@link SerializedName} annotation to a given field - the latter is applied only if the property
src/net/hexar/json2pojo/GeneratePojos.java:384
↓ 1 callers
Method
createBuildMethod
Creates the build method for the builder. @param owner the containing class to build. @param builder the builder to generate the build method for.
src/net/hexar/json2pojo/GeneratePojos.java:435
↓ 1 callers
Method
createBuilderSetter
Generates a builder method for the given class, field, and property name. @param builder the class to generate a builder method in. @param field
src/net/hexar/json2pojo/GeneratePojos.java:407
↓ 1 callers
Method
createGetter
Generates a getter for the given class, field, and property name. @param clazz the class to generate a getter in. @param field the fiel
src/net/hexar/json2pojo/GeneratePojos.java:465
↓ 1 callers
Method
createSetter
Generates a setter for the given class, field, and property name. @param clazz the class to generate a setter in. @param field the fiel
src/net/hexar/json2pojo/GeneratePojos.java:483
↓ 1 callers
Method
generate
Generates all of the sub-objects and fields for a given class. @param rootNode the JSON class node in the JSON syntax tree. @param rootName
src/net/hexar/json2pojo/GeneratePojos.java:104
↓ 1 callers
Method
generateBuilder
Generates the inner builder class for the containing class, with methods for the given fields. @param clazz the class to generate a builder class in
src/net/hexar/json2pojo/GeneratePojos.java:346
↓ 1 callers
Method
generateFields
Generates all of the fields for a given class. @param clazz the class to generate sub-objects and fields for. @param fields the
src/net/hexar/json2pojo/GeneratePojos.java:279
↓ 1 callers
Method
generateFromJson
Generates POJOs from a source JSON text. @param rootName the name of the root class to generate. @param json the source JSON text
src/net/hexar/json2pojo/GeneratePojos.java:67
↓ 1 callers
Method
getFieldInfoFromNode
Creates a field in the given class. @param node the JSON node describing the field. @param propertyName the name of the field to create. @par
src/net/hexar/json2pojo/GeneratePojos.java:206
↓ 1 callers
Method
humanize
Capitalizes the first word and turns underscores into spaces and strips trailing "_id" and any supplied removable tokens. Like {@link #titleCase(Strin
src/org/jboss/dna/common/text/Inflector.java:373
↓ 1 callers
Method
initialize
()
src/org/jboss/dna/common/text/Inflector.java:529
↓ 1 callers
Method
onOK
()
src/net/hexar/json2pojo/JsonEntryDialog.java:119
↓ 1 callers
Method
onOk
A callback to be invoked when the user has clicked the OK button. @param className the class name entered into the dialog. @param jsonText the JSON t
src/net/hexar/json2pojo/JsonEntryDialog.java:35
↓ 1 callers
Method
parseArray
Generates all of the sub-objects for a given array node. @param arrayNode the JSON array node in the JSON syntax tree. @param className the formatted
src/net/hexar/json2pojo/GeneratePojos.java:180
↓ 1 callers
Method
run
(@NotNull ProgressIndicator indicator)
src/net/hexar/json2pojo/GenerateAction.java:40
Method
FieldComparator
(boolean useMPrefix)
src/net/hexar/json2pojo/GeneratePojos.java:588
Method
FieldInfo
(JType type, String propertyName)
src/net/hexar/json2pojo/GeneratePojos.java:607
Method
GeneratePojos
(String packageName, VirtualFile moduleSourceRoot, ProgressIndicator progressBar)
src/net/hexar/json2pojo/GeneratePojos.java:49
Method
GeneratedField
(JFieldVar field, String propertyName)
src/net/hexar/json2pojo/GeneratePojos.java:620
Method
Inflector
()
src/org/jboss/dna/common/text/Inflector.java:104
Method
JsonEntryDialog
(OnOkListener listener)
src/net/hexar/json2pojo/JsonEntryDialog.java:64
Method
Rule
( String expression, String replacement )
src/org/jboss/dna/common/text/Inflector.java:55
Method
actionPerformed
(AnActionEvent event)
src/net/hexar/json2pojo/GenerateAction.java:25
Method
changedUpdate
(DocumentEvent e)
src/net/hexar/json2pojo/JsonEntryDialog.java:144
Method
clear
Completely remove all rules within this inflector.
src/org/jboss/dna/common/text/Inflector.java:523
Method
clone
()
src/org/jboss/dna/common/text/Inflector.java:114
Method
compare
(FieldInfo left, FieldInfo right)
src/net/hexar/json2pojo/GeneratePojos.java:592
Method
formatClassName
()
test/net/hexar/json2pojo/GeneratePojosTest.java:10
Method
formatFieldNameWithMPrefix
()
test/net/hexar/json2pojo/GeneratePojosTest.java:23
Method
formatFieldNameWithoutMPrefix
()
test/net/hexar/json2pojo/GeneratePojosTest.java:35
Method
getUncountables
Get the set of words that are not processed by the Inflector. The resulting map is directly modifiable. @return the set of uncountable words
src/org/jboss/dna/common/text/Inflector.java:455
Method
hashCode
()
src/org/jboss/dna/common/text/Inflector.java:75
Method
insertUpdate
(DocumentEvent e)
src/net/hexar/json2pojo/JsonEntryDialog.java:134
Method
lowerCamelCase
Converts strings to lowerCamelCase. This method will also use any extra delimiter characters to identify word boundaries. <p> Examples: <pre> infle
src/org/jboss/dna/common/text/Inflector.java:223
Method
ordinalize
Turns a non-negative number into an ordinal string used to denote the position in an ordered sequence, such as 1st, 2nd, 3rd, 4th. @param number the
src/org/jboss/dna/common/text/Inflector.java:422
Method
pluralize
Returns the plural form of the word in the string. <p> Examples: <pre> inflector.pluralize("post") #=> "posts"
src/org/jboss/dna/common/text/Inflector.java:146
Method
removeUpdate
(DocumentEvent e)
src/net/hexar/json2pojo/JsonEntryDialog.java:139
Method
titleCase
Capitalizes all the words and replaces some characters in the string to create a nicer looking title. Underscores are changed to spaces, a trailing "_
src/org/jboss/dna/common/text/Inflector.java:408
Method
underscore
Makes an underscored form from the expression in the string (the reverse of the {@link #camelCase(String, boolean, char[]) camelCase} method. Also cha
src/org/jboss/dna/common/text/Inflector.java:325
Method
update
(AnActionEvent event)
src/net/hexar/json2pojo/GenerateAction.java:61
Method
upperCamelCase
Converts strings to UpperCamelCase. This method will also use any extra delimiter characters to identify word boundaries. <p> Examples: <pre> infle
src/org/jboss/dna/common/text/Inflector.java:249
Method
windowClosing
(WindowEvent e)
src/net/hexar/json2pojo/JsonEntryDialog.java:83