Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
ModelReader.getAttributesForField(ModelField modelField) |
Modifier and Type | Method and Description |
---|---|
FieldMetadata |
MetadataPlugin.getFieldMetadata(ModelField field,
java.util.Map<java.lang.String,java.lang.String> data) |
Modifier and Type | Class and Description |
---|---|
class |
ModelAssociation |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.List<ModelField>> |
ModelClass.fieldMap |
private java.util.List<ModelField> |
ModelClass.fields |
Modifier and Type | Method and Description |
---|---|
ModelField |
ModelType.getField(java.lang.String type,
Version version) |
ModelField |
ModelClass.getField(java.lang.String type,
VersionRange versionRange) |
ModelField |
ModelInterface.getField(java.lang.String type,
VersionRange versionRange) |
abstract ModelField |
ModelType.getField(java.lang.String type,
VersionRange versionRange) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ModelField> |
ModelClass.getAllFields()
Returns the list of all fields in this class.
|
java.util.List<ModelField> |
ModelInterface.getAllFields()
Returns the list of all fields in this class.
|
abstract java.util.List<ModelField> |
ModelType.getAllFields()
Returns the list of all fields in this class.
|
java.util.List<ModelField> |
ModelClass.getAllFields(boolean withInheritedField)
Returns all the fields in this class and all super classes if withInheritedField equals to true.
|
java.util.List<ModelField> |
ModelInterface.getAllFields(boolean withInheritedField)
Returns all the fields in this class and all super classes if withInheritedField equals to true.
|
abstract java.util.List<ModelField> |
ModelType.getAllFields(boolean withInheritedField)
Returns all the fields in this class and all super classes if withInheritedField equals to true.
|
java.util.List<ModelField> |
ModelType.getAllFields(Version version,
boolean withInheritedField) |
java.util.List<ModelField> |
ModelType.getFields(Version version)
Returns the list of all fields in this class for a specific version.
|
java.util.List<ModelField> |
ModelType.getIdentifierFields(Version version) |
Modifier and Type | Method and Description |
---|---|
void |
ModelClass.addField(ModelField modelField) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<ModelField> |
AbstractModelloGenerator.getFieldsForClass(ModelClass modelClass)
Return the child fields of this class.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractModelloGenerator.isInnerAssociation(ModelField field) |
Modifier and Type | Method and Description |
---|---|
private void |
Dom4jReaderGenerator.processField(ModelField field,
XmlFieldMetadata xmlFieldMetadata,
boolean addElse,
JSourceCode sc,
java.lang.String objectName,
JClass jClass)
Generate code to process a field represented as an XML element.
|
private void |
Dom4jWriterGenerator.processField(ModelField field,
XmlFieldMetadata xmlFieldMetadata,
java.lang.String uncapClassName,
JSourceCode sc,
ModelClass modelClass,
JClass jClass) |
private void |
Dom4jReaderGenerator.writePrimitiveField(ModelField field,
java.lang.String type,
java.lang.String objectName,
java.lang.String setterName,
JSourceCode sc,
JClass jClass,
java.lang.String parentElementName,
java.lang.String childElementName) |
Modifier and Type | Method and Description |
---|---|
private void |
JavaModelloGenerator.createBuilderField(JClass jClass,
ModelField modelField) |
private void |
JavaModelloGenerator.createField(JClass jClass,
ModelField modelField) |
private JField |
JavaModelloGenerator.createField(ModelField modelField) |
private JMethod |
JavaModelloGenerator.createGetter(JField field,
ModelField modelField) |
private java.lang.String |
JavaModelloGenerator.createHashCodeForField(ModelField identifier) |
private boolean |
JavaModelloGenerator.createSetBuilderFieldToInstance(java.util.Set<java.lang.String> ctorArgs,
ModelField modelField,
JSourceCode sc) |
private JMethod |
JavaModelloGenerator.createSetter(JField field,
ModelField modelField) |
private JMethod |
JavaModelloGenerator.createSetter(JField field,
ModelField modelField,
boolean isBuilderMethod) |
private JType |
JavaModelloGenerator.getDesiredType(ModelField modelField,
boolean useTo) |
protected java.lang.String |
AbstractJavaModelloGenerator.getJavaDefaultValue(ModelField modelField) |
protected java.lang.String |
AbstractJavaModelloGenerator.getValueChecker(java.lang.String type,
java.lang.String value,
ModelField field) |
Modifier and Type | Method and Description |
---|---|
FieldMetadata |
JavaMetadataPlugin.getFieldMetadata(ModelField field,
java.util.Map<java.lang.String,java.lang.String> data) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
JDOMWriterGenerator.getJdomValueChecker(java.lang.String type,
java.lang.String value,
ModelField field) |
Modifier and Type | Method and Description |
---|---|
FieldMetadata |
ModelMetadataPlugin.getFieldMetadata(ModelField field,
java.util.Map<java.lang.String,java.lang.String> data) |
Modifier and Type | Class and Description |
---|---|
class |
DummyIdModelField |
Modifier and Type | Method and Description |
---|---|
protected ModelField |
AbstractStaxGenerator.getReferenceIdentifierField(ModelAssociation association) |
Modifier and Type | Method and Description |
---|---|
private static void |
StaxReaderGenerator.addCodeToAddReferences(ModelAssociation association,
JClass jClass,
JSourceCode sc,
ModelField referenceIdentifierField,
java.lang.String referredFromClass) |
private java.lang.String |
StaxWriterGenerator.getFieldValue(java.lang.String uncapClassName,
ModelField field) |
private void |
StaxReaderGenerator.processField(ModelField field,
XmlFieldMetadata xmlFieldMetadata,
boolean addElse,
JSourceCode sc,
java.lang.String objectName,
boolean rootElement,
JClass jClass)
Generate code to process a field represented as an XML element.
|
private void |
StaxWriterGenerator.writeElementAttribute(JSourceCode sc,
ModelField referenceIdentifierField,
java.lang.String value) |
private static void |
StaxReaderGenerator.writeFieldVersionGetMethod(ModelField field,
JClass jClass) |
private void |
StaxReaderGenerator.writePrimitiveField(ModelField field,
java.lang.String type,
java.lang.String objectName,
java.lang.String setterName,
JSourceCode sc)
Write code to set a primitive field with a value got from the parser, with appropriate default value, trimming
and required check logic.
|
Modifier and Type | Method and Description |
---|---|
private void |
XdocGenerator.writeFieldsTable(org.codehaus.plexus.util.xml.XMLWriter w,
java.util.List<ModelField> fields,
boolean elementFields)
Write a table containing model fields description.
|
Modifier and Type | Method and Description |
---|---|
FieldMetadata |
XdocMetadataPlugin.getFieldMetadata(ModelField field,
java.util.Map<java.lang.String,java.lang.String> data) |
Modifier and Type | Method and Description |
---|---|
private ModelField |
Xpp3ReaderGenerator.writeClassAttributesParser(java.util.List<ModelField> modelFields,
java.lang.String objectName,
boolean rootElement,
JSourceCode sc,
JClass jClass) |
Modifier and Type | Method and Description |
---|---|
private void |
Xpp3ReaderGenerator.processField(ModelField field,
XmlFieldMetadata xmlFieldMetadata,
boolean addElse,
JSourceCode sc,
java.lang.String objectName,
JClass jClass)
Generate code to process a field represented as an XML element.
|
private void |
Xpp3ReaderGenerator.writeNewSetLocation(ModelField field,
java.lang.String objectName,
java.lang.String trackerVariable,
JSourceCode sc) |
private void |
Xpp3ReaderGenerator.writePrimitiveField(ModelField field,
java.lang.String type,
java.lang.String objectName,
java.lang.String locatorName,
java.lang.String locationKey,
java.lang.String setterName,
JSourceCode sc) |
Modifier and Type | Method and Description |
---|---|
private ModelField |
Xpp3ReaderGenerator.writeClassAttributesParser(java.util.List<ModelField> modelFields,
java.lang.String objectName,
boolean rootElement,
JSourceCode sc,
JClass jClass) |
Modifier and Type | Method and Description |
---|---|
private static void |
XsdGenerator.writeFieldDocumentation(org.codehaus.plexus.util.xml.XMLWriter w,
ModelField field) |
private void |
XsdGenerator.writeListElement(org.codehaus.plexus.util.xml.XMLWriter w,
XmlFieldMetadata xmlFieldMetadata,
XmlAssociationMetadata xmlAssociationMetadata,
ModelField field,
java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
FieldMetadata |
XsdMetadataPlugin.getFieldMetadata(ModelField field,
java.util.Map<java.lang.String,java.lang.String> data) |
Modifier and Type | Method and Description |
---|---|
protected ModelField |
AbstractXmlJavaGenerator.getContentField(java.util.List<ModelField> modelFields)
Get the field which type is
Content if any. |
(package private) static ModelField |
XmlModelHelpers.getContentField(java.util.List<ModelField> modelFields)
Get the field which type is
Content if any. |
protected ModelField |
AbstractXmlGenerator.getContentField(java.util.List<ModelField> modelFields)
Get the field which type is
Content if any. |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<ModelField> |
AbstractXmlJavaGenerator.getFieldsForXml(ModelClass modelClass,
Version version)
Return the XML fields of this class, with proper XML order and no XML transient fields.
|
(package private) static java.util.List<ModelField> |
XmlModelHelpers.getFieldsForXml(ModelClass modelClass,
Version version)
Return the XML fields of this class, with proper XML order and no XML transient fields.
|
protected java.util.List<ModelField> |
AbstractXmlGenerator.getFieldsForXml(ModelClass modelClass,
Version version)
Return the XML fields of this class, with proper XML order and no XML transient fields.
|
(package private) static java.util.List<ModelField> |
XmlModelHelpers.getXmlAttributeFields(java.util.List<ModelField> modelFields)
Gets all fields that are not marked as XML attribute.
|
protected java.util.List<ModelField> |
AbstractXmlGenerator.getXmlAttributeFields(java.util.List<ModelField> modelFields)
Gets all fields that are not marked as XML attribute.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
AbstractXmlJavaGenerator.resolveTagName(ModelField modelField,
XmlFieldMetadata xmlFieldMetadata)
Resolve XML tag name for a field.
|
(package private) static java.lang.String |
XmlModelHelpers.resolveTagName(ModelField modelField,
XmlFieldMetadata xmlFieldMetadata)
Resolve XML tag name for a field.
|
protected java.lang.String |
AbstractXmlGenerator.resolveTagName(ModelField modelField,
XmlFieldMetadata xmlFieldMetadata)
Resolve XML tag name for a field.
|
Modifier and Type | Method and Description |
---|---|
protected ModelField |
AbstractXmlJavaGenerator.getContentField(java.util.List<ModelField> modelFields)
Get the field which type is
Content if any. |
(package private) static ModelField |
XmlModelHelpers.getContentField(java.util.List<ModelField> modelFields)
Get the field which type is
Content if any. |
protected ModelField |
AbstractXmlGenerator.getContentField(java.util.List<ModelField> modelFields)
Get the field which type is
Content if any. |
(package private) static java.util.List<ModelField> |
XmlModelHelpers.getXmlAttributeFields(java.util.List<ModelField> modelFields)
Gets all fields that are not marked as XML attribute.
|
protected java.util.List<ModelField> |
AbstractXmlGenerator.getXmlAttributeFields(java.util.List<ModelField> modelFields)
Gets all fields that are not marked as XML attribute.
|
protected boolean |
AbstractXmlGenerator.hasContentField(java.util.List<ModelField> modelFields) |
Modifier and Type | Method and Description |
---|---|
FieldMetadata |
XmlMetadataPlugin.getFieldMetadata(ModelField field,
java.util.Map<java.lang.String,java.lang.String> data) |