/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.codice.imaging.nitf.nitfnetbeansfiletype;

import org.codice.imaging.nitf.core.Nitf;
import org.openide.loaders.DataNode;
import org.openide.nodes.Children;
import org.openide.nodes.Sheet;
import org.openide.util.Lookup;

/**
 *
 * @author bradh
 */
public class NitfFileNode extends DataNode {

    private Nitf nitf;

    public NitfFileNode(NitfDataObject nitfDataObj, Children kids, Lookup lookup) {
        super(nitfDataObj, kids, lookup);
        nitf = nitfDataObj.getNitf();
    }

    @Override
    protected Sheet createSheet() {
        Sheet sheet = super.createSheet();
        Sheet.Set set = Sheet.createPropertiesSet();
        sheet.put(set);
        set.put(new StringProperty("fileType", "File Type", "The file profile and version.", nitf.getFileType().toString()));
        set.put(new IntegerProperty("complexityLevel",
                                    "Complexity Level",
                                    "The complexity level required to interpret fully all components of the file.",
                                    nitf.getComplexityLevel()));
        set.put(new StringProperty("standardType", "Standard Type", "Standard type or capability.", nitf.getStandardType()));
        return sheet;
    }
}

@@ -1428,24 +1428,1833 @@
 dType()));%0D%0A
+        set.put(new StringProperty(%22originatingStationId%22,%0D%0A                                   %22Originating Station ID%22,%0D%0A                                   %22The identification code or name of the originating organisation, system, station or product.%22,%0D%0A                                   nitf.getOriginatingStationId()));%0D%0A        // TODO: file date time%0D%0A        set.put(new StringProperty(%22fileTitle%22, %22File Title%22, %22The title of the file%22, nitf.getFileTitle()));%0D%0A        set.put(new StringProperty(%22fileSecurityClassification%22,%0D%0A                                   %22File Security Classification%22,%0D%0A                                   %22The classification level of the entire file.%22,%0D%0A                                   nitf.getFileSecurityMetadata().getSecurityClassification().toString()));%0D%0A        // TODO: rest of the file security elements from FSCLSY through to FSPYS%0D%0A        if (nitf.getFileBackgroundColour() != null) %7B%0D%0A            set.put(new StringProperty(%22fileBackgroundColour%22,%0D%0A                                       %22File Background Colour%22,%0D%0A                                       %22The three colour components of the file background.%22,%0D%0A                                       nitf.getFileBackgroundColour().toString()));%0D%0A        %7D%0D%0A        set.put(new StringProperty(%22originatorsName%22,%0D%0A                                   %22Originator's Name%22,%0D%0A                                   %22The name of the operator who originated the file.%22,%0D%0A                                   nitf.getOriginatorsName()));%0D%0A        set.put(new StringProperty(%22originatorsPhone%22,%0D%0A                                   %22Originator's Phone Number%22,%0D%0A                                   %22The phone number of the operator who originated the file.%22,%0D%0A                                   nitf.getOriginatorsPhoneNumber()));%0D%0A
         retu

Add extra metadata for the file level.