javaxml


License

License

GroupId

GroupId

com.github.fartherp
ArtifactId

ArtifactId

javaxml
Last Version

Last Version

2.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

javaxml
javaxml
Project URL

Project URL

https://github.com/fartherp/javaxml
Source Code Management

Source Code Management

https://github.com/fartherp/javaxml

Download javaxml

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.fartherp/javaxml/ -->
<dependency>
    <groupId>com.github.fartherp</groupId>
    <artifactId>javaxml</artifactId>
    <version>2.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.fartherp/javaxml/
implementation 'com.github.fartherp:javaxml:2.0.3'
// https://jarcasting.com/artifacts/com.github.fartherp/javaxml/
implementation ("com.github.fartherp:javaxml:2.0.3")
'com.github.fartherp:javaxml:jar:2.0.3'
<dependency org="com.github.fartherp" name="javaxml" rev="2.0.3">
  <artifact name="javaxml" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.fartherp', module='javaxml', version='2.0.3')
)
libraryDependencies += "com.github.fartherp" % "javaxml" % "2.0.3"
[com.github.fartherp/javaxml "2.0.3"]

Dependencies

test (1)

Group / Artifact Type Version
org.testng : testng jar 6.14.3

Project Modules

There are no modules declared in this project.

生成XML文件

Build Status Coverage Status Maven Central Sonatype Nexus (Snapshots) GitHub release License Project Stats
Quality gate

Document

java公用信息

Sample Code

Document document = new Document("-//mybatis.org//DTD Mapper 3.0//EN", "http://mybatis.org/dtd/mybatis-3-mapper.dtd");
XmlElement answer = new XmlElement("mapper");
String namespace = "com.github.codegenerator.Mapper";
answer.addAttribute(new Attribute("namespace", namespace));
document.setRootElement(answer);

XmlElement

  1. 实例: Field field = new Field("age", new JavaTypeInfo("java.lang.Integer"));
  2. 初始值: setInitializationString(String initializationString);
  3. transient: setTransient(boolean transient);
  4. volatile: setVolatile(boolean volatile);

Sample Code

XmlElement xmlElement = new XmlElement("select");
Attribute attribute = new Attribute("id", "findAll");
xmlElement.addAttribute(attribute);
TextElement textElement = new TextElement("select * from table");
xmlElement.addElement(textElement);

TextElement

Sample Code

TextElement textElement = new TextElement("select * from table");

Attribute

Sample Code

Attribute attribute = new Attribute("id", "update");

Versions

Version
2.0.3
2.0.2
2.0.1
1.0.1
1.0.0