JAXB2 Commons

Plugins for JAXB2 RI XJC

Лицензия

Лицензия

Группа

Группа

com.btmatthews.jaxb2_commons
Идентификатор

Идентификатор

jaxb2-commons
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

pom
Описание

Описание

JAXB2 Commons
Plugins for JAXB2 RI XJC
Ссылка на сайт

Ссылка на сайт

https://github.com/bmatthews68/jaxb2-commons
Организация-разработчик

Организация-разработчик

Brian Matthews
Система контроля версий

Система контроля версий

https://github.com/bmatthews68/jaxb2-commons

Скачать jaxb2-commons

Имя Файла Размер
jaxb2-commons-1.0.0.pom 11 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.btmatthews.jaxb2_commons/jaxb2-commons/ -->
<dependency>
    <groupId>com.btmatthews.jaxb2_commons</groupId>
    <artifactId>jaxb2-commons</artifactId>
    <version>1.0.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.btmatthews.jaxb2_commons/jaxb2-commons/
implementation 'com.btmatthews.jaxb2_commons:jaxb2-commons:1.0.0'
// https://jarcasting.com/artifacts/com.btmatthews.jaxb2_commons/jaxb2-commons/
implementation ("com.btmatthews.jaxb2_commons:jaxb2-commons:1.0.0")
'com.btmatthews.jaxb2_commons:jaxb2-commons:pom:1.0.0'
<dependency org="com.btmatthews.jaxb2_commons" name="jaxb2-commons" rev="1.0.0">
  <artifact name="jaxb2-commons" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.btmatthews.jaxb2_commons', module='jaxb2-commons', version='1.0.0')
)
libraryDependencies += "com.btmatthews.jaxb2_commons" % "jaxb2-commons" % "1.0.0"
[com.btmatthews.jaxb2_commons/jaxb2-commons "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • jaxb2-commons-lang3

JAXB2 Commons

Commons Lang3 Plugin

This is a port of the commons-lang for XJC that generates [toString()](http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#toString(\)), [equals()](http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object\)), and [hashCode()](http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#hashCode(\)) using Apache Commons Lang 3.

This plugin generates the following additional methods using ToStringBuilder, EqualsBuilder, and HashCodeBuilder:

@Override
public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}

@Override
public boolean equals(final Object that) {
    return EqualsBuilder.reflectionEquals(this, that);
}

@Override
public void int hashCode() {
    return HashCodeBuilder.reflectionHashCode(this);
}

Usage

Ant

The plugin can be used in an Ant build.xml project file using the following configuration:

<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
    <classpath>
        <pathelement path="/path/to/jaxb-xjc.jar"/>
        <pathelement path="/path/to/jaxb2-commons-lang3.jar" />
        <pathelement path="/path/to/commons-lang3.jar" />
    </classpath>
</taskdef>
<xjc>
    <arg value="-Xcommons-lang3" />
    <arg value="-Xcommons-lang3:ToStringStyle=SHORT_PREFIX_STYLE" />
    <!-- ... -->
</xjc>

Maven

The plugin can be used in a Maven pom.xml project file using the following configuration:

<plugin>
    <groupId>org.jvnet.jaxb2.maven2</groupId>
    <artifactId>maven-jaxb22-plugin</artifactId>
    <version>0.8.3</version>
    <executions>
        <execution>
            <goals>
                <goal>generate</goal>
            </goals>
            <configuration>
                <extension>true</extension>
                <args>
                    <arg>-Xcommons-lang3</arg>
                    <arg>-Xcommons-lang3:ToStringStyle=SHORT_PREFIX_STYLE</arg>
                </args>
                <plugins>
                    <plugin>
                        <groupId>com.btmatthews.jaxb2_commons</groupId>
                        <artifactId>jaxb2-commons-lang3</artifactId>
                        <version>1.0.0</version>
                    </plugin>
                </plugins>
            </configuration>
        </execution>
    </executions>
</plugin>

Версии библиотеки

Версия
1.0.0