Removed CableLabs.xsd and generated files.

It was an experiment.
Signed-off-by: default avatard.miller@cablelabs.com <d.miller@CableLabs.com>
parent 73d4c86b
......@@ -64,7 +64,7 @@
skeletonroot="${jshome}/skeletons"/>
</target>
<target name="compile" depends="init,xml,copyfiles">
<target name="compile" depends="init,copyfiles">
<echo message="Compiling sources ... "/>
<copy file="${aboutfile}" toFile="${aboutfile}.bak" preservelastmodified="true"/>
<copy file="${mainfile}" toFile="${mainfile}.bak" preservelastmodified="true"/>
......@@ -84,24 +84,6 @@
<move file="${mainfile}.bak" tofile="${mainfile}"/>
</target>
<target name="xml" depends="init">
<property name="xjchome" value="external/jaxb-ri-2.2.7"/>
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
<classpath>
<fileset dir="${xjchome}/lib" includes="*.jar" excludes="ant.jar"/>
<!-- <fileset dir="../../..">
<include name="jaxp/**/*.jar"/>
<include name="jwsdp-shared/lib/**/*.jar"/>
</fileset>
-->
</classpath>
</taskdef>
<xjc destdir="${src.dir}" removeOldOutput="yes" package="com.cablelabs.cfgeditor.models.xml">
<schema dir="${src.models.dir}" includes="CableLabs.xsd"/>
<produces dir="${src.xml.dir}" includes="**/*"/>
</xjc>
</target>
<target name="copyfiles" depends="init,release.version">
<echo message="Creating directories ..."/>
<mkdir dir="${dist.resources.dir}"/>
......@@ -164,7 +146,6 @@
<target name="clean" depends="init">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
<delete dir="${src.xml.dir}"/>
<move file="${aboutfile}.bak" tofile="${aboutfile}" quiet="true" failonerror="false"/>
<move file="${mainfile}.bak" tofile="${mainfile}" quiet="true" failonerror="false"/>
</target>
......
......@@ -98,5 +98,4 @@ src.dir=src
src.MMH.dir=MMH
src.views.dir=${src.dir}/com/cablelabs/cfgeditor/views
src.models.dir=${src.dir}/com/cablelabs/cfgeditor/models
src.xml.dir=${src.models.dir}/xml
test.src.dir=test
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="lenType">
<xs:restriction base="xs:unsignedByte">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="2"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="tlvDefs">
<xs:complexType>
<xs:sequence>
<xs:element name="tlv" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="description">
<xs:complexType mixed="true">
<xs:sequence>
<xs:any processContents="skip"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="validValues" type="xs:string" minOccurs="0"/>
<xs:element name="defaultValue" type="xs:string" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="Type" type="xs:string" use="required"/>
<xs:attribute name="Name" type="xs:string" use="required"/>
<xs:attribute name="AltName" type="xs:string"/>
<xs:attribute name="DataType" type="xs:string" use="required"/>
<xs:attribute name="DataLength" type="xs:string"/>
<xs:attribute name="Split" type="xs:string"/>
<xs:attribute name="ZeroLenOk" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="tlvTypeSize" type="lenType" default="1"/>
<xs:attribute name="tlvLengthSize" type="lenType" default="1"/>
</xs:complexType>
</xs:element>
</xs:schema>
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.10.17 at 02:28:54 PM MDT
//
package com.cablelabs.cfgeditor.models.xml;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.cablelabs.cfgeditor.models.xml package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.cablelabs.cfgeditor.models.xml
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link TlvDefs }
*
*/
public TlvDefs createTlvDefs() {
return new TlvDefs();
}
/**
* Create an instance of {@link TlvDefs.Tlv }
*
*/
public TlvDefs.Tlv createTlvDefsTlv() {
return new TlvDefs.Tlv();
}
/**
* Create an instance of {@link TlvDefs.Tlv.Description }
*
*/
public TlvDefs.Tlv.Description createTlvDefsTlvDescription() {
return new TlvDefs.Tlv.Description();
}
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment