Skip to content

Commit

Permalink
move nodeName="" to <nodeName>
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Niessner authored and Al Niessner committed Feb 20, 2024
1 parent 7d1b438 commit a993cd3
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlSeeAlso;
import jakarta.xml.bind.annotation.XmlType;

Expand Down Expand Up @@ -41,12 +41,12 @@
* <element name="autogenFields" type="{}autogen_fields_type" minOccurs="0"/>
* <element name="load" type="{}load_type"/>
* <element name="fileInfo" type="{}file_info_type" minOccurs="0"/>
* <element name="nodeName" type="{}node_name_enum"/>
* <element name="productFilter" type="{}filter_type" minOccurs="0"/>
* <element name="references" type="{}references_type" minOccurs="0"/>
* <element name="registry" type="{}registry_type"/>
* <element name="xpathMaps" type="{}xpath_maps_type" minOccurs="0"/>
* </all>
* <attribute name="nodeName" use="required" type="{}node_name_enum" />
* </restriction>
* </complexContent>
* </complexType>
Expand All @@ -67,13 +67,14 @@ public class HarvestConfigurationType {
@XmlElement(required = true)
protected LoadType load;
protected FileInfoType fileInfo;
@XmlElement(required = true)
@XmlSchemaType(name = "normalizedString")
protected NodeNameEnum nodeName;
protected FilterType productFilter;
protected ReferencesType references;
@XmlElement(required = true)
protected RegistryType registry;
protected XpathMapsType xpathMaps;
@XmlAttribute(name = "nodeName", required = true)
protected NodeNameEnum nodeName;

/**
* Gets the value of the autogenFields property.
Expand Down Expand Up @@ -147,6 +148,30 @@ public void setFileInfo(FileInfoType value) {
this.fileInfo = value;
}

/**
* Gets the value of the nodeName property.
*
* @return
* possible object is
* {@link NodeNameEnum }
*
*/
public NodeNameEnum getNodeName() {
return nodeName;
}

/**
* Sets the value of the nodeName property.
*
* @param value
* allowed object is
* {@link NodeNameEnum }
*
*/
public void setNodeName(NodeNameEnum value) {
this.nodeName = value;
}

/**
* Gets the value of the productFilter property.
*
Expand Down Expand Up @@ -243,28 +268,4 @@ public void setXpathMaps(XpathMapsType value) {
this.xpathMaps = value;
}

/**
* Gets the value of the nodeName property.
*
* @return
* possible object is
* {@link NodeNameEnum }
*
*/
public NodeNameEnum getNodeName() {
return nodeName;
}

/**
* Sets the value of the nodeName property.
*
* @param value
* allowed object is
* {@link NodeNameEnum }
*
*/
public void setNodeName(NodeNameEnum value) {
this.nodeName = value;
}

}
2 changes: 1 addition & 1 deletion src/main/resources/conf/configuration.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@
name="autogenFields" type="autogen_fields_type"/>
<xs:element name="load" type="load_type"/>
<xs:element minOccurs="0" name="fileInfo" type="file_info_type"/>
<xs:element name="nodeName" type="node_name_enum"/>
<xs:element minOccurs="0" name="productFilter" type="filter_type"/>
<xs:element minOccurs="0" name="references" type="references_type"/>
<xs:element name="registry" type="registry_type"/>
<xs:element minOccurs="0" name="xpathMaps" type="xpath_maps_type"/>
</xs:all>
<xs:attribute name="nodeName" type="node_name_enum" use="required"/>
</xs:complexType>

<xs:complexType name="load_type">
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/conf/examples/bundles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* PSA - Planetary Science Archive
* JAXA - Japan Aerospace Exploration Agency
-->
<harvest nodeName="CHANGE_ME">

<harvest>
<nodeName>CHANGE_ME</nodeName>
<!-- Registry configuration -->
<!-- UPDATE with your registry information -->
<registry auth="/path/to/auth/file">app://localhost.xml</registry>
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/conf/examples/directories.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
* PSA - Planetary Science Archive
* JAXA - Japan Aerospace Exploration Agency
-->
<harvest nodeName="CHANGE_ME">
<harvest>
<nodeName>CHANGE_ME</nodeName>

<!-- Registry configuration -->
<!-- UPDATE with your registry information -->
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/conf/examples/files.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
* PSA - Planetary Science Archive
* JAXA - Japan Aerospace Exploration Agency
-->
<harvest nodeName="CHANGE_ME">
<harvest>
<nodeName>CHANGE_ME</nodeName>

<!-- Registry configuration -->
<!-- UPDATE with your registry information -->
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/conf/examples/xpaths.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<harvest nodeName="CHANGE_ME">
<harvest>
<nodeName>CHANGE_ME</nodeName>
<load>
<directories>
<!-- Path to one or more folders with PDS4 labels -->
Expand Down

0 comments on commit a993cd3

Please sign in to comment.