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).

License

License

Categories

Categories

Net
GroupId

GroupId

org.jvnet.annox
ArtifactId

ArtifactId

annox-project
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

pom
Description

Description

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).
Project URL

Project URL

https://github.com/highsource/annox
Source Code Management

Source Code Management

https://github.com/highsource/annox

Download annox-project

Filename Size
annox-project-1.0.2.pom 5 KB
Browse

How to add to project

<!-- 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"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

  • 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());

Versions

Version
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