/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
// Utility method for nodes with a single atttribute named "value"
int dataType) {
}
public StandardMetadataFormat() {
// root -> Chroma
// root -> Chroma -> ColorSpaceType
addAttribute("ColorSpaceType",
"name",
true,
null,
values);
// root -> Chroma -> NumChannels
true,
// root -> Chroma -> Gamma
DATATYPE_FLOAT, true, null);
// root -> Chroma -> BlackIsZero
// root -> Chroma -> Palette
// root -> Chroma -> PaletteEntry
true, null);
true, null);
true, null);
true, null);
false, "255");
// root -> Chroma -> BackgroundIndex
true, null);
// root -> Chroma -> BackgroundColor
true, null);
true, null);
true, null);
// root -> Compression
// root -> Compression -> CompressionTypeName
addSingleAttributeElement("CompressionTypeName",
"Compression",
// root -> Compression -> Lossless
// root -> Compression -> NumProgressiveScans
addSingleAttributeElement("NumProgressiveScans",
"Compression",
// root -> Compression -> BitRate
addSingleAttributeElement("BitRate",
"Compression",
// root -> Data
// root -> Data -> PlanarConfiguration
true,
null,
values);
// root -> Data -> SampleFormat
true,
null,
values);
// root -> Data -> BitsPerSample
true,
// root -> Data -> SignificantBitsPerSample
true,
// root -> Data -> SampleMSB
true,
// root -> Dimension
// root -> Dimension -> PixelAspectRatio
addSingleAttributeElement("PixelAspectRatio",
"Dimension",
// root -> Dimension -> ImageOrientation
true,
null,
values);
// root -> Dimension -> HorizontalPixelSize
addSingleAttributeElement("HorizontalPixelSize",
"Dimension",
// root -> Dimension -> VerticalPixelSize
addSingleAttributeElement("VerticalPixelSize",
"Dimension",
// root -> Dimension -> HorizontalPhysicalPixelSpacing
addSingleAttributeElement("HorizontalPhysicalPixelSpacing",
"Dimension",
// root -> Dimension -> VerticalPhysicalPixelSpacing
addSingleAttributeElement("VerticalPhysicalPixelSpacing",
"Dimension",
// root -> Dimension -> HorizontalPosition
addSingleAttributeElement("HorizontalPosition",
"Dimension",
// root -> Dimension -> VerticalPosition
addSingleAttributeElement("VerticalPosition",
"Dimension",
// root -> Dimension -> HorizontalPixelOffset
addSingleAttributeElement("HorizontalPixelOffset",
"Dimension",
// root -> Dimension -> VerticalPixelOffset
addSingleAttributeElement("VerticalPixelOffset",
"Dimension",
// root -> Dimension -> HorizontalScreenSize
addSingleAttributeElement("HorizontalScreenSize",
"Dimension",
// root -> Dimension -> VerticalScreenSize
addSingleAttributeElement("VerticalScreenSize",
"Dimension",
// root -> Document
// root -> Document -> FormatVersion
true,
null);
// root -> Document -> SubimageInterpretation
true,
null,
values);
// root -> Document -> ImageCreationTime
true,
null);
true,
null,
"1", "12", true, true);
true,
null,
"1", "31", true, true);
false,
"0",
"0", "23", true, true);
false,
"0",
"0", "59", true, true);
// second = 60 denotes leap second
false,
"0",
"0", "60", true, true);
// root -> Document -> ImageModificationTime
true,
null);
true,
null,
"1", "12", true, true);
true,
null,
"1", "31", true, true);
false,
"0",
"0", "23", true, true);
false,
"0",
"0", "59", true, true);
// second = 60 denotes leap second
false,
"0",
"0", "60", true, true);
// root -> Text
// root -> Text -> TextEntry
false,
null);
true,
null);
false,
null);
false,
null);
false,
"none",
values);
// root -> Transparency
// root -> Transparency -> Alpha
false,
"none",
values);
// root -> Transparency -> TransparentIndex
// root -> Transparency -> TransparentColor
true,
// root -> Transparency -> TileTransparencies
// root -> Transparency -> TileTransparencies -> TransparentTile
true,
null);
true,
null);
// root -> Transparency -> TileOpacities
// root -> Transparency -> TileOpacities -> OpaqueTile
true,
null);
true,
null);
}
return true;
}
}