See: Description
| Interface | Description |
|---|---|
| Constants |
Constant values, including the XML namespace, for package
tv.amwa.maj.extensions.example. |
| Contributor |
Entity that creates or contributes to a resource.
|
| Organisation |
Organisation that makes or contributes a resource.
|
| Person |
Person who makes and/or contributes a resource.
|
| SimpleDescription |
Very basic description of an item, based on a few Dublin Core terms.
|
| TypeDefinitions |
Extension type definitions defined for this package.
|
| Class | Description |
|---|---|
| EgFactory |
Factory for all types and classes of symbolespace
http://amwa.tv/maj/extensions/example. |
| Main |
Test of the example extension.
|
| Enum | Description |
|---|---|
| DCMIType |
Different genres of resource.
|
Example code demonstrating an extension built with the auto generator.
The input to the auto generator was the "SimpleExtension.xml" file.
The "Main.java" class produces the output in "MainOut.xml". These are
both shown below:
Cut down Main.java:
public static void main(String[] args) {
EgFactory.initialize();
SimpleDescription description = EgFactory.make("SimpleDescription",
"Title", "Test Description",
"Identifier", "123/456/789/000",
"DateAccepted", "2011-01-13",
"Creator", EgFactory.make("Person",
"Name", "Richard Rogers",
"DOB", Forge.makeDate((byte) 11, (byte) 10, (short) 2003)));
System.out.println(description.toString());
}
Running the above produces:
<?xml version="1.0" encoding="UTF-8"?>
<eg:SimpleDescription xmlns:eg="http://amwa.tv/maj/extensions/example">
<eg:Identifier>123/456/789/000</eg:Identifier>
<eg:Title>Test Description</eg:Title>
<eg:Creator>
<eg:Person>
<eg:Name>Richard Rogers</eg:Name>
<eg:DOB>2003-10-11+0000</eg:DOB>
</eg:Person>
</eg:Creator>
<eg:DateAccepted>2011-01-13+0000</eg:DateAccepted>
</eg:SimpleDescription>
AutoGeneration(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.