Annox Project

Annox is an open source project which allows you to read arbitrary Java annotations from XML resources. JAXB users may be interested in Annox annotation reader for JAXB RI which allows you to define JAXB Java/XML mappings in XML resources (instead of annotations).

Лицензия

Лицензия

Категории

Категории

Сеть
Группа

Группа

org.jvnet.annox
Идентификатор

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

annox-project
Последняя версия

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

1.0.2
Дата

Дата

Тип

Тип

pom
Описание

Описание

Annox Project
Annox is an open source project which allows you to read arbitrary Java annotations from XML resources. JAXB users may be interested in Annox annotation reader for JAXB RI which allows you to define JAXB Java/XML mappings in XML resources (instead of annotations).
Ссылка на сайт

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

https://github.com/highsource/annox
Система контроля версий

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

https://github.com/highsource/annox

Скачать annox-project

Имя Файла Размер
annox-project-1.0.2.pom 5 KB
Обзор

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

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

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

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

  • core
  • samples

Annox

Parse Java annotations from text or XML resources.

		// Parse annotation from the string
		XAnnotation<XmlRootElement> xannotation =
			(XAnnotation<XmlRootElement>) XAnnotationParser.INSTANCE.parse
				("@javax.xml.bind.annotation.XmlRootElement(name=\"foo\")");

		// Create an instance of the annotation 
		XmlRootElement xmlRootElement = xannotation.getResult();
		assertEquals("foo", xmlRootElement.name());
		assertEquals("##default", xmlRootElement.namespace());
		
		// Analyze the structure of the annotation
		assertEquals(String.class, xannotation.getFieldsMap().get("name").getType());
		assertEquals("##default", xannotation.getFieldsMap().get("namespace").getResult());

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

Версия
1.0.2
1.0.1
1.0.0
0.5.1
0.5.0
0.4.4
0.4.3
0.4.2
0.4.1
0.4
0.3
0.2.GA
0.2.RC1
0.1