├── .gitignore
├── xbeanenv.cmd
├── xbeanenv.sh
├── test
├── perf
│ ├── bin
│ │ ├── castor.properties
│ │ ├── run_xmlbeans_all.bat
│ │ ├── run_xmlbeans_nonmemory.bat
│ │ ├── run_all.sh
│ │ ├── run_all.bat
│ │ ├── run_all_nonmemory.bat
│ │ ├── run_jibx.sh
│ │ ├── run_jibx.bat
│ │ ├── jibx.sh
│ │ ├── xerces.sh
│ │ ├── v1.sh
│ │ ├── svn.sh
│ │ ├── v2.sh
│ │ └── castor.sh
│ ├── env.bat
│ ├── cases
│ │ └── parser_instances.zip
│ ├── env.sh
│ └── src
│ │ └── org
│ │ └── apache
│ │ └── xmlbeans
│ │ └── test
│ │ └── performance
│ │ └── jibx
│ │ └── binding
│ │ ├── Customer.java
│ │ └── Shipper.java
└── readme.txt
├── src
├── test
│ ├── resources
│ │ └── xbean
│ │ │ ├── tranxml.tar.bz2
│ │ │ ├── scomp
│ │ │ ├── enum
│ │ │ │ └── jira572.xsd
│ │ │ ├── redefine
│ │ │ │ ├── TypeBase.xs
│ │ │ │ └── TypeRedefine.xsd
│ │ │ ├── namespace
│ │ │ │ └── NoNamespace.xsd
│ │ │ └── element
│ │ │ │ └── Any.xsd
│ │ │ ├── xmlcursor
│ │ │ ├── xpath
│ │ │ │ ├── zvon11.xml
│ │ │ │ ├── zvon4.xml
│ │ │ │ ├── zvon6.xml
│ │ │ │ ├── zvon5.xml
│ │ │ │ ├── zvon10.xml
│ │ │ │ ├── zvon9.xml
│ │ │ │ ├── zvon1.xml
│ │ │ │ ├── zvon22.xml
│ │ │ │ ├── zvon2.xml
│ │ │ │ ├── zvon7.xml
│ │ │ │ ├── zvon8.xml
│ │ │ │ ├── LICENSE.txt
│ │ │ │ ├── zvon15.xml
│ │ │ │ ├── zvon16.xml
│ │ │ │ ├── zvon12.xml
│ │ │ │ ├── zvon13.xml
│ │ │ │ ├── zvon14.xml
│ │ │ │ ├── zvon18.xml
│ │ │ │ ├── zvon19.xml
│ │ │ │ ├── zvon20.xml
│ │ │ │ ├── zvon3.xml
│ │ │ │ ├── zvon21.xml
│ │ │ │ ├── zvon17.xml
│ │ │ │ └── jaxen
│ │ │ │ │ ├── pi2.xml
│ │ │ │ │ ├── underscore.xml
│ │ │ │ │ ├── simple.xml
│ │ │ │ │ ├── defaultNamespace.xml
│ │ │ │ │ ├── text.xml
│ │ │ │ │ ├── basic.xml
│ │ │ │ │ ├── lang.xml
│ │ │ │ │ ├── pi.xml
│ │ │ │ │ ├── axis.xml
│ │ │ │ │ └── numbers.xml
│ │ │ ├── TranXML_License.txt
│ │ │ ├── xquery
│ │ │ │ ├── xmlQuery.zip
│ │ │ │ ├── 2DocJoin.xq
│ │ │ │ ├── Constructor.xq
│ │ │ │ └── Join.xq
│ │ │ ├── xstypes
│ │ │ │ ├── xstypes.xml
│ │ │ │ └── setters.xsd
│ │ │ ├── W3C_Software_Licence.txt
│ │ │ ├── doc.xml
│ │ │ └── XQueryInput.xml
│ │ │ ├── xmlobject
│ │ │ ├── japanese
│ │ │ │ ├── LICENSE.txt
│ │ │ │ ├── pr-xml-euc-jp.xml
│ │ │ │ ├── pr-xml-utf-16.xml
│ │ │ │ ├── prefix_test.xml
│ │ │ │ ├── weekly-euc-jp.dtd
│ │ │ │ ├── weekly-euc-jp.xml
│ │ │ │ ├── weekly-utf-16.dtd
│ │ │ │ ├── weekly-utf-16.xml
│ │ │ │ ├── pr-xml-euc-jp1.xml
│ │ │ │ ├── pr-xml-shift_jis.xml
│ │ │ │ ├── weekly-shift_jis.dtd
│ │ │ │ ├── weekly-shift_jis.xml
│ │ │ │ ├── pr-xml-little-endian.xml
│ │ │ │ └── weekly-little-endian.xml
│ │ │ ├── store
│ │ │ │ ├── test.xml
│ │ │ │ ├── erictest.xml
│ │ │ │ └── small.xml
│ │ │ ├── enumtest.xsdconfig
│ │ │ ├── SelectChildren-NormalDoc.xml
│ │ │ ├── enumtest.xml
│ │ │ └── redefine1.xsd
│ │ │ ├── dom
│ │ │ └── W3C
│ │ │ │ └── level2
│ │ │ │ └── core
│ │ │ │ └── files
│ │ │ │ ├── README
│ │ │ │ ├── staff2.dtd
│ │ │ │ ├── nodtdstaff.xml
│ │ │ │ ├── staff2.xml
│ │ │ │ └── staff.dtd
│ │ │ ├── misc
│ │ │ ├── jira
│ │ │ │ ├── xmlbeans_98_exp.xml
│ │ │ │ ├── xmlbeans_71.xml
│ │ │ │ ├── xmlbeans_105.xml
│ │ │ │ ├── xmlbeans_09.xml
│ │ │ │ ├── xmlbeans_57.xml
│ │ │ │ ├── xmlbeans_99.xml
│ │ │ │ └── xmlbeans_98.xml
│ │ │ └── dyntest2.xml
│ │ │ ├── ValidatingStream
│ │ │ ├── foo-inv.xml
│ │ │ ├── global-attr.xml
│ │ │ ├── person-justname-inv.xml
│ │ │ ├── person-xsi-inv.xml
│ │ │ └── person-justname.xml
│ │ │ ├── simple
│ │ │ └── dumb
│ │ │ │ └── dumb.xml
│ │ │ ├── compile
│ │ │ └── scomp
│ │ │ │ ├── schemacompiler
│ │ │ │ └── ext
│ │ │ │ │ ├── I1.java
│ │ │ │ │ ├── I2.java
│ │ │ │ │ ├── H1.java
│ │ │ │ │ └── H2.java
│ │ │ │ └── incr
│ │ │ │ └── incr3.xsd
│ │ │ └── tools
│ │ │ └── inst2xsd
│ │ │ ├── schema
│ │ │ ├── simpleName.xml
│ │ │ ├── types
│ │ │ │ ├── innercomment.xml
│ │ │ │ ├── unicode.xml
│ │ │ │ ├── xsinil.xml
│ │ │ │ ├── CData.xml
│ │ │ │ ├── xsitype.xml
│ │ │ │ ├── cdata_rd0.xsd
│ │ │ │ ├── cdata_ss0.xsd
│ │ │ │ ├── cdata_vb0.xsd
│ │ │ │ ├── po_vb0.xsd
│ │ │ │ └── schemaLocation_vb0.xsd
│ │ │ ├── complex
│ │ │ │ ├── choice
│ │ │ │ │ ├── simplechoice.xml
│ │ │ │ │ ├── attrchoice.xml
│ │ │ │ │ ├── schema0.xsd
│ │ │ │ │ └── nschoice.xml
│ │ │ │ ├── global
│ │ │ │ │ ├── globalattribute.xml
│ │ │ │ │ ├── globalattr_rd0.xsd
│ │ │ │ │ ├── globalattr_ss0.xsd
│ │ │ │ │ └── globalattr_vb0.xsd
│ │ │ │ ├── enum
│ │ │ │ │ ├── enum.xml
│ │ │ │ │ ├── enumQName.xml
│ │ │ │ │ └── attr
│ │ │ │ │ │ ├── attrenum_ss_enum1.xsd
│ │ │ │ │ │ └── attrenum.xml
│ │ │ │ └── nestedNSArray
│ │ │ │ │ └── nestedNSArray.xml
│ │ │ ├── namespaces
│ │ │ │ ├── must.xml
│ │ │ │ ├── simple.xml
│ │ │ │ ├── multipleNS_rd1.xsd
│ │ │ │ ├── multipleNS_ss1.xsd
│ │ │ │ ├── multipleNS_vb1.xsd
│ │ │ │ ├── multipleNS_rd0.xsd
│ │ │ │ ├── multipleNS_rd2.xsd
│ │ │ │ ├── multipleNS_ss0.xsd
│ │ │ │ ├── multipleNS_ss2.xsd
│ │ │ │ ├── multipleNS_vb0.xsd
│ │ │ │ ├── multipleNS_vb2.xsd
│ │ │ │ ├── multipleNestedNS_rd2.xsd
│ │ │ │ ├── multipleNestedNS_ss3.xsd
│ │ │ │ ├── multipleNestedNS_vb2.xsd
│ │ │ │ └── multipleNS.xml
│ │ │ └── choice.xml
│ │ │ └── options
│ │ │ └── base.xml
│ └── java
│ │ ├── dom
│ │ ├── common
│ │ │ ├── TestSetup.java
│ │ │ └── Loader.java
│ │ └── checkin
│ │ │ ├── PISyncTest.java
│ │ │ ├── DocumentSyncTest.java
│ │ │ ├── NodeListSyncTest.java
│ │ │ ├── TextSyncTest.java
│ │ │ ├── ElementSyncTest.java
│ │ │ ├── AttributeSyncTest.java
│ │ │ ├── CommentSyncTest.java
│ │ │ ├── CDataSectionSyncTest.java
│ │ │ ├── NamedNodeMapSyncTest.java
│ │ │ ├── DocumentFragmentSyncTest.java
│ │ │ └── DomImplementationSyncTest.java
│ │ └── xmlobject
│ │ └── extensions
│ │ ├── interfaceFeature
│ │ ├── multInterfaces
│ │ │ └── existing
│ │ │ │ ├── ISum.java
│ │ │ │ └── IReport.java
│ │ ├── readOnlyBean
│ │ │ └── existing
│ │ │ │ └── IFoo.java
│ │ ├── averageCase
│ │ │ └── existing
│ │ │ │ └── IFoo.java
│ │ └── methodNameCollision
│ │ │ └── existing
│ │ │ └── IFoo.java
│ │ └── prePostFeature
│ │ ├── ValueRestriction
│ │ └── existing
│ │ │ └── ISetter.java
│ │ └── readOnlyBean
│ │ └── existing
│ │ └── IFoo.java
└── main
│ ├── java
│ └── org
│ │ └── apache
│ │ └── xmlbeans
│ │ ├── impl
│ │ ├── values
│ │ │ ├── XmlValueNotNillableException.java
│ │ │ ├── XmlAnyUriImpl.java
│ │ │ ├── XmlIntImpl.java
│ │ │ ├── XmlLongImpl.java
│ │ │ ├── XmlDoubleImpl.java
│ │ │ ├── XmlFloatImpl.java
│ │ │ ├── XmlQNameImpl.java
│ │ │ ├── XmlBooleanImpl.java
│ │ │ ├── XmlDecimalImpl.java
│ │ │ ├── XmlStringImpl.java
│ │ │ ├── XmlIntegerImpl.java
│ │ │ ├── XmlNotationImpl.java
│ │ │ ├── XmlHexBinaryImpl.java
│ │ │ ├── XmlBase64BinaryImpl.java
│ │ │ ├── StringEnumValue.java
│ │ │ ├── XmlAnyUriRestriction.java
│ │ │ ├── XmlIntRestriction.java
│ │ │ ├── XmlLongRestriction.java
│ │ │ ├── XmlFloatRestriction.java
│ │ │ ├── XmlQNameRestriction.java
│ │ │ ├── XmlDoubleRestriction.java
│ │ │ ├── XmlStringRestriction.java
│ │ │ ├── XmlBooleanRestriction.java
│ │ │ ├── XmlDecimalRestriction.java
│ │ │ └── XmlIntegerRestriction.java
│ │ ├── regex
│ │ │ └── README.txt
│ │ ├── xpath
│ │ │ ├── XPathEngine.java
│ │ │ └── Path.java
│ │ ├── common
│ │ │ ├── ValidationContext.java
│ │ │ ├── XmlLocale.java
│ │ │ └── XBeanDebug.java
│ │ └── store
│ │ │ └── AttrIdXobj.java
│ │ ├── ResourceLoader.java
│ │ ├── xml
│ │ └── stream
│ │ │ └── ElementFilter.java
│ │ └── SchemaAnnotated.java
│ ├── schema
│ ├── xml
│ │ └── XML.xsdconfig
│ ├── xsd
│ │ └── XMLSchema.xsdconfig
│ ├── tools
│ │ ├── ltgfmt.xsdconfig
│ │ ├── xsdownload.xsdconfig
│ │ └── substwsdl.xsdconfig
│ └── config
│ │ └── xmlconfig.xsdconfig
│ └── shell
│ ├── xpretty.cmd
│ ├── xsdtree.cmd
│ ├── xpretty
│ ├── xsd2inst
│ ├── scopy.cmd
│ ├── xsdtree
│ ├── sdownload.cmd
│ ├── xsd2inst.cmd
│ ├── dumpxsb.cmd
│ ├── inst2xsd.cmd
│ ├── sdownload
│ ├── validate.cmd
│ ├── inst2xsd
│ ├── svalidate.cmd
│ ├── scomp.cmd
│ ├── validate
│ ├── scomp
│ ├── sfactor.cmd
│ └── svalidate
├── SECURITY.md
├── gradle
└── wrapper
│ └── gradle-wrapper.properties
├── STATUS
├── settings.gradle
├── samples
├── SampleTemplate
│ └── xml
│ │ ├── bad.xml
│ │ └── hello.xml
└── XmlSort
│ └── xml
│ └── unsorted.xml
├── .github
└── workflows
│ └── test-gradle.yml
└── legal
└── HEADER
/.gitignore:
--------------------------------------------------------------------------------
1 | build/
2 | lib/**/*.jar
3 |
4 |
--------------------------------------------------------------------------------
/xbeanenv.cmd:
--------------------------------------------------------------------------------
1 | SET XMLBEANS_HOME=%~dp0.
2 |
--------------------------------------------------------------------------------
/xbeanenv.sh:
--------------------------------------------------------------------------------
1 | export XMLBEANS_HOME=`pwd`
2 |
--------------------------------------------------------------------------------
/test/perf/bin/castor.properties:
--------------------------------------------------------------------------------
1 | org.exolab.castor.marshalling.validation=false
2 |
--------------------------------------------------------------------------------
/test/perf/bin/run_xmlbeans_all.bat:
--------------------------------------------------------------------------------
1 | call run_v1.bat
2 | call run_v2.bat
3 | call run_svn.bat
4 |
--------------------------------------------------------------------------------
/test/perf/env.bat:
--------------------------------------------------------------------------------
1 | set XMLBEANS_PERFROOT=%~dp0.
2 |
3 | echo "MAKE SURE TO SET JAXB_LIBDIR IN YOUR ENVIRONMENT"
4 |
--------------------------------------------------------------------------------
/test/perf/cases/parser_instances.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/test/perf/cases/parser_instances.zip
--------------------------------------------------------------------------------
/src/test/resources/xbean/tranxml.tar.bz2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/tranxml.tar.bz2
--------------------------------------------------------------------------------
/test/perf/bin/run_xmlbeans_nonmemory.bat:
--------------------------------------------------------------------------------
1 | call run_v1_nonmemory.bat
2 | call run_v2_nonmemory.bat
3 | call run_svn_nonmemory.bat
4 |
--------------------------------------------------------------------------------
/test/perf/env.sh:
--------------------------------------------------------------------------------
1 | XMLBEANS_PERFROOT=`pwd`
2 | export XMLBEANS_PERFROOT
3 |
4 | echo "MAKE SURE TO SET JAXB_LIBDIR IN YOUR ENVIRONMENT"
5 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/scomp/enum/jira572.xsd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/scomp/enum/jira572.xsd
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon11.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/TranXML_License.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlcursor/TranXML_License.txt
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xquery/xmlQuery.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlcursor/xquery/xmlQuery.zip
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xstypes/xstypes.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlcursor/xstypes/xstypes.xml
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/LICENSE.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/LICENSE.txt
--------------------------------------------------------------------------------
/src/test/resources/xbean/dom/W3C/level2/core/files/README:
--------------------------------------------------------------------------------
1 | The xml files contain a DTD prefix which was removed since we don't support DTDs...put back when time comes
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/W3C_Software_Licence.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlcursor/W3C_Software_Licence.txt
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/pr-xml-euc-jp.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/pr-xml-euc-jp.xml
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/pr-xml-utf-16.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/pr-xml-utf-16.xml
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/prefix_test.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/prefix_test.xml
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/weekly-euc-jp.dtd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/weekly-euc-jp.dtd
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/weekly-euc-jp.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/weekly-euc-jp.xml
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/weekly-utf-16.dtd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/weekly-utf-16.dtd
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/weekly-utf-16.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/weekly-utf-16.xml
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/pr-xml-euc-jp1.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/pr-xml-euc-jp1.xml
--------------------------------------------------------------------------------
/test/perf/bin/run_all.sh:
--------------------------------------------------------------------------------
1 | sh ./run_v2.sh
2 | sh ./run_v1.sh
3 | sh ./run_svn.sh
4 | sh ./run_castor.sh
5 | sh ./run_jaxb.sh
6 | sh ./run_jibx.sh
7 | sh ./run_xerces.sh
8 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/pr-xml-shift_jis.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/pr-xml-shift_jis.xml
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/weekly-shift_jis.dtd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/weekly-shift_jis.dtd
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/weekly-shift_jis.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/weekly-shift_jis.xml
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/pr-xml-little-endian.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/pr-xml-little-endian.xml
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/japanese/weekly-little-endian.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/xmlbeans/HEAD/src/test/resources/xbean/xmlobject/japanese/weekly-little-endian.xml
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/perf/bin/run_all.bat:
--------------------------------------------------------------------------------
1 | call run_v2.bat
2 | call run_v1.bat
3 | call run_svn.bat
4 | call run_castor.bat
5 | call run_jaxb.bat
6 | call run_jaxb2.bat
7 | call run_jibx.bat
8 | call run_xerces.bat
9 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon6.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon5.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon10.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon9.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/perf/bin/run_all_nonmemory.bat:
--------------------------------------------------------------------------------
1 | call run_v1_nonmemory.bat
2 | call run_v2_nonmemory.bat
3 | call run_svn_nonmemory.bat
4 | call run_jaxb.bat
5 | call run_jaxb2.bat
6 | call run_jibx.bat
7 | call run_castor.bat
8 | call run_xerces_nonmemory.bat
9 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security
2 |
3 | If you suspect you have found a security vulnerability in Apache XMLBeans code, please read https://www.apache.org/security/
4 | for how to report the issue. Please do not report the details publicly until the report is reviewed.
5 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
4 | networkTimeout=10000
5 | validateDistributionUrl=true
6 | zipStoreBase=GRADLE_USER_HOME
7 | zipStorePath=wrapper/dists
8 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon22.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/dom/W3C/level2/core/files/staff2.dtd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/dom/W3C/level2/core/files/nodtdstaff.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EMP0001
5 | Margaret Martin
6 | Accountant
7 | 56,000
8 | Female
9 | 1230 North Ave. Dallas, Texas 98551
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon7.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon8.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/STATUS:
--------------------------------------------------------------------------------
1 | Project Homepage:
2 |
3 | http://xmlbeans.apache.org/
4 |
5 |
6 | Active committers:
7 |
8 | Apache POI team
9 |
10 | Emeritus:
11 |
12 | Cezar Andrei cezar at apache dot org
13 | Radu Preotiuc-Pietro radu.preotiuc-pietro at oracle dot com
14 | Jacob Danner jacob dot danner at gmail.com
15 | Wing Yew Poon wing.yew.poon at oracle dot com
16 |
17 | Web Site:
18 |
19 | https://xmlbeans.apache.org/
20 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/dom/W3C/level2/core/files/staff2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EMP0001
7 | Margaret Martin
8 | Accountant
9 | 56,000
10 | Female
11 | 1230 North Ave. Dallas, Texas 98551
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The following xml files are courtesy of Zvon.org:
2 |
3 | "Legal notices
4 | Legal notices and terms of use
5 | If not explicitly stated otherwise, the following applies for all material at the ZVON site:
6 |
7 | You can freely use and distribute anything you need, but you must give credit to ZVON and link to the ZVON site. It is not a question of copyright; this is simply the right and polite thing to do."
--------------------------------------------------------------------------------
/test/perf/bin/run_jibx.sh:
--------------------------------------------------------------------------------
1 | sh ./jibx.sh POReadAllJibx 1
2 | sh ./jibx.sh POReadAllJibx 2
3 | sh ./jibx.sh POReadAllJibx 3
4 | sh ./jibx.sh POReadAllJibx 4
5 | sh ./jibx.sh POReadAllJibx 5
6 | sh ./jibx.sh POReadAllJibx 6
7 | sh ./jibx.sh POReadAllJibx 7
8 | sh ./jibx.sh POReadOneJibx 1
9 | sh ./jibx.sh POReadOneJibx 2
10 | sh ./jibx.sh POReadOneJibx 3
11 | sh ./jibx.sh POReadOneJibx 4
12 | sh ./jibx.sh POReadOneJibx 5
13 | sh ./jibx.sh POReadOneJibx 6
14 | sh ./jibx.sh POReadOneJibx 7
15 |
--------------------------------------------------------------------------------
/test/readme.txt:
--------------------------------------------------------------------------------
1 | The doc folder under v2\tests has two docs
2 |
3 | 1)BuildingAndRunningTests.txt
4 |
5 | The documentation here shows how to run & build tests.
6 |
7 |
8 | 2)TestOrganization.txt:
9 |
10 | Documentation here shows the general layout of how the test framework is
11 | structured and the best practise in while creating new tests. This documentation
12 | should be read before adding new tests. It also shows when it becomes necessary
13 | to make additions/modifications to testbuild.xml.
14 |
15 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon15.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon16.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon12.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon13.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon14.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/test/perf/bin/run_jibx.bat:
--------------------------------------------------------------------------------
1 | call jibx.bat POReadAllJibx filename 1
2 | call jibx.bat POReadAllJibx filename 2
3 | call jibx.bat POReadAllJibx filename 3
4 | call jibx.bat POReadAllJibx filename 4
5 | call jibx.bat POReadAllJibx filename 5
6 | call jibx.bat POReadAllJibx filename 6
7 | call jibx.bat POReadAllJibx filename 7
8 | call jibx.bat POReadOneJibx filename 1
9 | call jibx.bat POReadOneJibx filename 2
10 | call jibx.bat POReadOneJibx filename 3
11 | call jibx.bat POReadOneJibx filename 4
12 | call jibx.bat POReadOneJibx filename 5
13 | call jibx.bat POReadOneJibx filename 6
14 | call jibx.bat POReadOneJibx filename 7
15 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/dom/W3C/level2/core/files/staff.dtd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
12 |
15 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon18.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon19.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon20.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | rootProject.name = 'xmlbeans'
17 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xquery/2DocJoin.xq:
--------------------------------------------------------------------------------
1 | (: Copyright 2004 The Apache Software Foundation
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License. :)
14 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/misc/jira/xmlbeans_98_exp.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon21.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/store/test.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 | ab
--------------------------------------------------------------------------------
/samples/SampleTemplate/xml/bad.xml:
--------------------------------------------------------------------------------
1 |
16 |
17 | bob
18 | 4
19 |
20 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/store/erictest.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 | 12
--------------------------------------------------------------------------------
/src/test/java/dom/common/TestSetup.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package dom.common;
17 |
18 | public interface TestSetup{
19 |
20 | boolean bDTD=false;
21 | }
22 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/ValidatingStream/foo-inv.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/simple/dumb/dumb.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/zvon17.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xquery/Constructor.xq:
--------------------------------------------------------------------------------
1 | (: Copyright 2004 The Apache Software Foundation
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License. :)
14 |
15 | for $e in .//employee
16 | return
17 |
18 | { $e/name }
19 |
20 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/compile/scomp/schemacompiler/ext/I1.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package ext;
17 |
18 | public interface I1
19 | {
20 | public void get();
21 | }
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/simpleName.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | Bill
18 | Gates
19 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/jaxen/pi2.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | foo
18 |
19 | bar
20 |
21 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/compile/scomp/schemacompiler/ext/I2.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package ext;
17 |
18 | public interface I2
19 | {
20 | public String get();
21 | }
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/jaxen/underscore.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | 1
18 | <_b>2
19 |
20 |
21 |
--------------------------------------------------------------------------------
/samples/SampleTemplate/xml/hello.xml:
--------------------------------------------------------------------------------
1 |
16 |
17 | bob
18 | sally
19 | joanne
20 | kevin
21 |
22 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/options/base.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | abc
18 | 123
19 |
20 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/types/innercomment.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | 1232323
18 |
19 |
20 |
--------------------------------------------------------------------------------
/samples/XmlSort/xml/unsorted.xml:
--------------------------------------------------------------------------------
1 |
16 |
17 | bravo
18 | charlie1
19 | alpha
20 | delta
21 | charlie2
22 |
23 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/jaxen/simple.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | a
18 | b
19 |
20 | d
21 |
22 |
23 |
--------------------------------------------------------------------------------
/test/perf/bin/jibx.sh:
--------------------------------------------------------------------------------
1 | #/bin/sh
2 |
3 | export MEM=64
4 | export FLAVOR=
5 | export FILENAME=
6 |
7 | #scan first param
8 | case "$2" in
9 | memory) export MEM=$3 ;;
10 | flavor) export FLAVOR=$3 ;;
11 | filename) export FILENAME=$3 ;;
12 | esac
13 | #scan second param
14 | case "$4" in
15 | memory) export MEM=$5 ;;
16 | flavor) export FLAVOR=$5 ;;
17 | filename) export FILENAME=$5 ;;
18 | esac
19 | #scan third param
20 | case "$6" in
21 | memory) export MEM=$7 ;;
22 | flavor) export FLAVOR=$7 ;;
23 | filename) export FILENAME=$7 ;;
24 | esac
25 |
26 | java -Xmx"$MEM"m -classpath $XMLBEANS_PERFROOT/build:$XMLBEANS_PERFROOT/schema_build/jibx-purchase-order.jar:$XMLBEANS_PERFROOT/3rdparty/jibx/jibx//lib/jibx-run.jar:$XMLBEANS_PERFROOT/3rdparty/jibx/jibx/lib/xpp3.jar -DPERF_ROOT=$XMLBEANS_PERFROOT org.apache.xmlbeans.test.performance.jibx.$1 $FLAVOR $FILENAME
27 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/choice/simplechoice.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/jaxen/defaultNamespace.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 | Hello
19 |
20 |
21 |
--------------------------------------------------------------------------------
/test/perf/bin/xerces.sh:
--------------------------------------------------------------------------------
1 | #/bin/sh
2 |
3 | export MEM=64
4 | export FLAVOR=
5 | export FILENAME=
6 |
7 | #scan first param
8 | case "$2" in
9 | memory) export MEM=$3 ;;
10 | flavor) export FLAVOR=$3 ;;
11 | filename) export FILENAME=$3 ;;
12 | esac
13 | #scan second param
14 | case "$4" in
15 | memory) export MEM=$5 ;;
16 | flavor) export FLAVOR=$5 ;;
17 | filename) export FILENAME=$5 ;;
18 | esac
19 | #scan third param
20 | case "$6" in
21 | memory) export MEM=$7 ;;
22 | flavor) export FLAVOR=$7 ;;
23 | filename) export FILENAME=$7 ;;
24 | esac
25 |
26 | java -Xbootclasspath/p:$XMLBEANS_PERFROOT/3rdparty/xerces/xerces-2_7_1/xml-apis.jar:$XMLBEANS_PERFROOT/3rdparty/xerces/xerces-2_7_1/xercesImpl.jar -Xmx"$MEM"m -classpath $XMLBEANS_PERFROOT/build -DPERF_ROOT=$XMLBEANS_PERFROOT org.apache.xmlbeans.test.performance.xerces.$1 $FLAVOR $FILENAME
27 |
--------------------------------------------------------------------------------
/.github/workflows/test-gradle.yml:
--------------------------------------------------------------------------------
1 | # This workflow will build a Java project with Gradle
2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3 |
4 | name: Java CI with Gradle
5 |
6 | on:
7 | push:
8 | branches: [ trunk ]
9 | pull_request:
10 | branches: [ trunk ]
11 |
12 | permissions: {}
13 |
14 | jobs:
15 | build:
16 |
17 | runs-on: ubuntu-latest
18 |
19 | steps:
20 | - uses: actions/checkout@v4
21 |
22 | - name: Set up JDK
23 | uses: actions/setup-java@v4
24 | with:
25 | distribution: 'temurin'
26 | java-version: '8'
27 | cache: 'gradle'
28 |
29 | - name: Grant execute permission for gradlew
30 | run: chmod +x gradlew
31 |
32 | - name: Build with Gradle
33 | run: ./gradlew test -PjdkVersion=8 --no-daemon
34 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/jaxen/text.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 | baz
19 |
20 | baz
21 |
22 | baz
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlValueNotNillableException.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | public class XmlValueNotNillableException extends RuntimeException
19 | {
20 | }
21 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlAnyUriImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | public class XmlAnyUriImpl extends JavaUriHolder implements org.apache.xmlbeans.XmlAnyURI
19 | {
20 | }
21 |
--------------------------------------------------------------------------------
/src/test/java/xmlobject/extensions/interfaceFeature/multInterfaces/existing/ISum.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 | package xmlobject.extensions.interfaceFeature.multInterfaces.existing;
16 |
17 | public interface ISum
18 | {
19 | int getTotal();
20 | }
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/types/unicode.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | Jani
18 | Tove
19 | Norwegian: ���. French: ���
20 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/regex/README.txt:
--------------------------------------------------------------------------------
1 | This is an isolated directory that was taken from the
2 | Apache Xerces-J 2.0 project.
3 |
4 | BMPPattern.java,v 1.4 2004/02/24
5 | Match.java,v 1.5 2004/02/24
6 | Op.java,v 1.4 2004/02/24
7 | ParseException.java,v 1.4 2004/02/24
8 | ParserForXMLSchema.java,v 1.6 2004/02/24
9 | RangeToken.java,v 1.5 2004/02/24
10 | RegexParser.java,v 1.9 2004/02/24
11 | RegularExpression.java,v 1.8 2004/02/24
12 | REUtil.java,v 1.8 2004/02/24
13 | Token.java,v 1.8 2004/02/24
14 | message.properties, 1.6 2003/03/25
15 |
16 | It contains the following modifications:
17 |
18 | (1) a change in namespace.
19 | (2) the addition of a SchemaRegularExpression class for fast
20 | detection of NCNAME, etc.
21 | (3) Bugfix in file ParserForXMLSchema:237
22 |
23 | No xbean code outside this directory or other directories with
24 | similar README notices was taken from Apache.
25 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/compile/scomp/schemacompiler/ext/H1.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package ext;
17 |
18 | public class H1
19 | {
20 | public static void get(org.apache.xmlbeans.XmlObject xo)
21 | {
22 | }
23 | }
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/must.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/types/xsinil.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 | John
17 |
19 |
20 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/store/small.xml:
--------------------------------------------------------------------------------
1 |
10 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/compile/scomp/incr/incr3.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/misc/jira/xmlbeans_71.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | SUCCESS
18 |
19 | 0
20 | 0
21 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/global/globalattribute.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlIntImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlInt;
19 |
20 |
21 | public class XmlIntImpl extends JavaIntHolder implements XmlInt
22 | {
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlLongImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlLong;
19 |
20 |
21 | public class XmlLongImpl extends JavaLongHolder implements XmlLong
22 | {
23 | }
24 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/choice.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | 123
18 | abc123
19 | abc123abc
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/jaxen/basic.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlDoubleImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlDouble;
19 |
20 | public class XmlDoubleImpl extends JavaDoubleHolder implements XmlDouble
21 | {
22 | }
23 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlFloatImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlFloat;
19 |
20 |
21 | public class XmlFloatImpl extends JavaFloatHolder implements XmlFloat
22 | {
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlQNameImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlQName;
19 |
20 |
21 | public class XmlQNameImpl extends JavaQNameHolder implements XmlQName
22 | {
23 | }
24 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/ValidatingStream/global-attr.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/compile/scomp/schemacompiler/ext/H2.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package ext;
17 |
18 | public class H2
19 | {
20 | public static String get(org.apache.xmlbeans.XmlObject xo)
21 | {
22 | return null;
23 | }
24 | }
--------------------------------------------------------------------------------
/src/test/resources/xbean/misc/jira/xmlbeans_105.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | 2004-05-14T10:21:18.6939682+08:00
18 |
19 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/simple.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | abc
18 | 123
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlBooleanImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlBoolean;
19 |
20 | public class XmlBooleanImpl extends JavaBooleanHolder implements XmlBoolean
21 | {
22 | }
23 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlDecimalImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlDecimal;
19 |
20 | public class XmlDecimalImpl extends JavaDecimalHolder implements XmlDecimal
21 | {
22 | }
23 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlStringImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlString;
19 |
20 |
21 | public class XmlStringImpl extends JavaStringHolder implements XmlString
22 | {
23 | }
24 |
--------------------------------------------------------------------------------
/src/test/java/xmlobject/extensions/prePostFeature/ValueRestriction/existing/ISetter.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 | package xmlobject.extensions.prePostFeature.ValueRestriction.existing;
16 |
17 | public interface ISetter {
18 |
19 | public void setEmployeeAge(int age);
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/misc/jira/xmlbeans_09.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 | enum1
19 |
20 |
21 | one
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/ResourceLoader.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans;
17 |
18 | import java.io.InputStream;
19 |
20 | public interface ResourceLoader
21 | {
22 | InputStream getResourceAsStream(String resourceName);
23 | void close();
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlIntegerImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlInteger;
19 |
20 |
21 | public class XmlIntegerImpl extends JavaIntegerHolder implements XmlInteger
22 | {
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlNotationImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlNOTATION;
19 |
20 | public class XmlNotationImpl extends JavaNotationHolder implements XmlNOTATION
21 | {
22 | }
23 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/xpath/XPathEngine.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.xpath;
17 |
18 | import org.apache.xmlbeans.impl.store.Cur;
19 |
20 | public interface XPathEngine {
21 | void release();
22 |
23 | boolean next(Cur c);
24 | }
25 |
--------------------------------------------------------------------------------
/src/test/java/xmlobject/extensions/interfaceFeature/readOnlyBean/existing/IFoo.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 | package xmlobject.extensions.interfaceFeature.readOnlyBean.existing;
16 |
17 |
18 | public interface IFoo
19 | {
20 | void setPrice(int price);
21 | void getPrice();
22 | }
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/jaxen/lang.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlHexBinaryImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlHexBinary;
19 |
20 |
21 | public class XmlHexBinaryImpl extends JavaHexBinaryHolder implements XmlHexBinary
22 | {
23 | }
24 |
--------------------------------------------------------------------------------
/src/test/java/xmlobject/extensions/prePostFeature/readOnlyBean/existing/IFoo.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 | package xmlobject.extensions.prePostFeature.readOnlyBean.existing;
16 |
17 |
18 | public interface IFoo {
19 |
20 | void setPrice(int price);
21 | double getPrice();
22 | }
23 |
24 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/scomp/redefine/TypeBase.xs:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xquery/Join.xq:
--------------------------------------------------------------------------------
1 | (: Copyright 2004 The Apache Software Foundation
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License. :)
14 |
15 | for $a in .//employee
16 | return
17 | { $a/ssn },
18 | { $a/name },
19 | {
20 | for $b in .//employee
21 | where $b/ssn=$a/ssn and $a/name !=$b/name
22 | return $b/name
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/src/main/schema/xml/XML.xsdconfig:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 | org.apache.xmlbeans.impl.xb.xmlschema
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/schema/xsd/XMLSchema.xsdconfig:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 | org.apache.xmlbeans.impl.xb.xsdschema
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/misc/jira/xmlbeans_57.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
18 |
19 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/types/CData.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/jaxen/pi.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/main/schema/tools/ltgfmt.xsdconfig:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 | org.apache.xmlbeans.impl.xb.ltgfmt
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/scomp/redefine/TypeRedefine.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/doc.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/xpath/Path.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.xpath;
17 |
18 | import org.apache.xmlbeans.XmlOptions;
19 | import org.apache.xmlbeans.impl.store.Cur;
20 |
21 |
22 | public interface Path {
23 | XPathEngine execute(Cur c, XmlOptions options);
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/schema/tools/xsdownload.xsdconfig:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 | org.apache.xmlbeans.impl.xb.xsdownload
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/schema/tools/substwsdl.xsdconfig:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 | org.apache.xmlbeans.impl.xb.substwsdl
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/common/ValidationContext.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.common;
17 |
18 | public interface ValidationContext
19 | {
20 | // KHK: remove this
21 | public void invalid ( String message );
22 |
23 | public void invalid ( String code, Object[] args );
24 | }
--------------------------------------------------------------------------------
/src/main/schema/config/xmlconfig.xsdconfig:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 | org.apache.xmlbeans.impl.xb.xmlconfig
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/shell/xpretty.cmd:
--------------------------------------------------------------------------------
1 | @REM
2 | @REM Copyright 2004 The Apache Software Foundation
3 | @REM
4 | @REM Licensed under the Apache License, Version 2.0 (the "License");
5 | @REM you may not use this file except in compliance with the License.
6 | @REM You may obtain a copy of the License at
7 | @REM
8 | @REM http://www.apache.org/licenses/LICENSE-2.0
9 | @REM
10 | @REM Unless required by applicable law or agreed to in writing, software
11 | @REM distributed under the License is distributed on an "AS IS" BASIS,
12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @REM See the License for the specific language governing permissions and
14 | @REM limitations under the License.
15 | @REM
16 |
17 | @echo off
18 |
19 | @rem Invokes pretty printer
20 |
21 | setlocal
22 | if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib"
23 |
24 | set cp=
25 | set cp=%cp%;%XMLBEANS_LIB%\*
26 |
27 | java -classpath "%cp%" org.apache.xmlbeans.impl.tool.PrettyPrinter %*
28 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/scomp/namespace/NoNamespace.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/legal/HEADER:
--------------------------------------------------------------------------------
1 |
2 | ====================================================================
3 | Licensed to the Apache Software Foundation (ASF) under one or more
4 | contributor license agreements. See the NOTICE file distributed with
5 | this work for additional information regarding copyright ownership.
6 | The ASF licenses this file to You under the Apache License, Version 2.0
7 | (the "License"); you may not use this file except in compliance with
8 | the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing, software
13 | distributed under the License is distributed on an "AS IS" BASIS,
14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | See the License for the specific language governing permissions and
16 | limitations under the License.
17 | ====================================================================
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/types/xsitype.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 |
19 | John
20 | 59
21 | manager
22 |
23 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/enumtest.xsdconfig:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 | com.enumtest
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/test/perf/src/org/apache/xmlbeans/test/performance/jibx/binding/Customer.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 | package org.apache.xmlbeans.test.performance.jibx.binding;
16 |
17 | public class Customer{
18 | private String name;
19 | private String address;
20 |
21 | public String getName(){return name;}
22 | public String getAddress(){return address;}
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/common/XmlLocale.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | // TODO - consider moving this to public ....
17 |
18 | package org.apache.xmlbeans.impl.common;
19 |
20 | public interface XmlLocale
21 | {
22 | boolean sync ( );
23 | boolean noSync ( );
24 |
25 | void enter ( );
26 | void exit ( );
27 | }
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlBase64BinaryImpl.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.SchemaType;
19 | import org.apache.xmlbeans.XmlBase64Binary;
20 |
21 |
22 | public class XmlBase64BinaryImpl extends JavaBase64Holder implements XmlBase64Binary
23 | {
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/shell/xsdtree.cmd:
--------------------------------------------------------------------------------
1 | @REM
2 | @REM Copyright 2004 The Apache Software Foundation
3 | @REM
4 | @REM Licensed under the Apache License, Version 2.0 (the "License");
5 | @REM you may not use this file except in compliance with the License.
6 | @REM You may obtain a copy of the License at
7 | @REM
8 | @REM http://www.apache.org/licenses/LICENSE-2.0
9 | @REM
10 | @REM Unless required by applicable law or agreed to in writing, software
11 | @REM distributed under the License is distributed on an "AS IS" BASIS,
12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @REM See the License for the specific language governing permissions and
14 | @REM limitations under the License.
15 | @REM
16 |
17 | @echo off
18 |
19 | @rem Invokes type hierarchy printer
20 |
21 | setlocal
22 | if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib"
23 |
24 | set cp=
25 | set cp=%cp%;%XMLBEANS_LIB%\*
26 |
27 | java -classpath "%cp%" org.apache.xmlbeans.impl.tool.TypeHierarchyPrinter %*
28 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/choice/attrchoice.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/test/perf/bin/v1.sh:
--------------------------------------------------------------------------------
1 | V1_LIB=$XMLBEANS_PERFROOT/3rdparty/v1/xmlbeans-1.0.3/lib
2 | export V1_LIB
3 |
4 | export MEM=64
5 | export FLAVOR=
6 | export FILENAME=
7 |
8 | #scan first param
9 | case "$2" in
10 | memory) export MEM=$3 ;;
11 | flavor) export FLAVOR=$3 ;;
12 | filename) export FILENAME=$3 ;;
13 | esac
14 | #scan second param
15 | case "$4" in
16 | memory) export MEM=$5 ;;
17 | flavor) export FLAVOR=$5 ;;
18 | filename) export FILENAME=$5 ;;
19 | esac
20 | #scan third param
21 | case "$6" in
22 | memory) export MEM=$7 ;;
23 | flavor) export FLAVOR=$7 ;;
24 | filename) export FILENAME=$7 ;;
25 | esac
26 |
27 | java -Xmx"$MEM"m -classpath $XMLBEANS_PERFROOT/build:$XMLBEANS_PERFROOT/schema_build/v1-purchase-order.jar:$XMLBEANS_PERFROOT/schema_build/v1-primitives.jar:$XMLBEANS_PERFROOT/schema_build/v1-non-primitives.jar:$V1_LIB/xbean.jar:$XMLBEANS_HOME/external/lib/piccolo_apache_dist_20040629_v2.jar -DPERF_ROOT=$XMLBEANS_PERFROOT org.apache.xmlbeans.test.performance.v1.$1 $FLAVOR $FILENAME
28 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/enum/enum.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 | foo:baz
19 |
20 |
21 | baz:foo
22 |
23 |
24 | baz:foo
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/types/cdata_rd0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/types/cdata_ss0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/types/cdata_vb0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xstypes/setters.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/StringEnumValue.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.StringEnumAbstractBase;
19 |
20 | public class StringEnumValue extends StringEnumAbstractBase
21 | {
22 | public StringEnumValue(String s, int i)
23 | { super(s, i); }
24 | }
25 |
--------------------------------------------------------------------------------
/src/test/java/dom/checkin/PISyncTest.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 |
17 | package dom.checkin;
18 |
19 | import org.junit.jupiter.api.BeforeEach;
20 |
21 |
22 | public class PISyncTest extends PITest {
23 | @BeforeEach
24 | public void setUp() throws Exception {
25 | super.loadSync();
26 | super.moveToNode();
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/test/java/dom/checkin/DocumentSyncTest.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package dom.checkin;
17 |
18 | import org.junit.jupiter.api.BeforeEach;
19 |
20 |
21 | public class DocumentSyncTest extends DocumentTest {
22 | @BeforeEach
23 | public void setUp() throws Exception {
24 | super.loadSync();
25 | super.moveToNode();
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/test/java/dom/checkin/NodeListSyncTest.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 |
17 | package dom.checkin;
18 |
19 | import org.junit.jupiter.api.BeforeEach;
20 |
21 | public class NodeListSyncTest extends NodeListTest {
22 | @BeforeEach
23 | public void setUp() throws Exception {
24 | super.loadSync();
25 | super.moveToNode();
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/test/java/dom/checkin/TextSyncTest.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 |
17 | package dom.checkin;
18 |
19 | import org.junit.jupiter.api.BeforeEach;
20 |
21 |
22 | public class TextSyncTest extends TextTest {
23 | @BeforeEach
24 | public void setUp() throws Exception {
25 | super.loadSync();
26 | super.moveToNode();
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/test/java/dom/checkin/ElementSyncTest.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package dom.checkin;
17 |
18 | import org.junit.jupiter.api.BeforeEach;
19 |
20 |
21 | public class ElementSyncTest extends ElementTest {
22 | @BeforeEach
23 | public void setUp() throws Exception {
24 | super.loadSync();
25 | super.moveToNode();
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/ValidatingStream/person-justname-inv.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
18 | Person
19 | Two
20 | M
21 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/misc/dyntest2.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/misc/jira/xmlbeans_99.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
19 |
20 |
21 |
22 | toto
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/main/shell/xpretty:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ##
3 | ## Copyright 2004 The Apache Software Foundation
4 | ##
5 | ## Licensed under the Apache License, Version 2.0 (the "License");
6 | ## you may not use this file except in compliance with the License.
7 | ## You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ##
17 |
18 | #Invokes pretty printer
19 |
20 | if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
21 |
22 | cp=$XMLBEANS_LIB/*
23 |
24 | case "`uname`" in
25 | CYGWIN*)
26 | cp=`cygpath -w -p $cp`
27 | ;;
28 | esac
29 |
30 | java -classpath "$cp" org.apache.xmlbeans.impl.tool.PrettyPrinter "$@"
31 |
--------------------------------------------------------------------------------
/src/test/java/dom/checkin/AttributeSyncTest.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 |
17 | package dom.checkin;
18 |
19 |
20 | import org.junit.jupiter.api.BeforeEach;
21 |
22 | public class AttributeSyncTest extends AttributeTest {
23 | @BeforeEach
24 | public void setUp() throws Exception {
25 | super.loadSync();
26 | super.moveToNode();
27 | }
28 |
29 | }
--------------------------------------------------------------------------------
/src/test/java/dom/checkin/CommentSyncTest.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 |
17 | package dom.checkin;
18 |
19 | import org.junit.jupiter.api.BeforeEach;
20 |
21 |
22 | public class CommentSyncTest extends CommentTest {
23 | @BeforeEach
24 | public void setUp() throws Exception {
25 | super.loadSync();
26 | super.moveToNode();
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/common/XBeanDebug.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.common;
17 |
18 | import org.apache.logging.log4j.Logger;
19 | import org.apache.xmlbeans.impl.logging.XmlBeansLogManager;
20 |
21 | public class XBeanDebug {
22 | public static final Logger LOG = XmlBeansLogManager.getLogger(XBeanDebug.class);
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/store/AttrIdXobj.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 | package org.apache.xmlbeans.impl.store;
16 |
17 | import javax.xml.namespace.QName;
18 |
19 | class AttrIdXobj extends AttrXobj {
20 | AttrIdXobj(Locale l, QName name) {
21 | super(l, name);
22 | }
23 |
24 | public boolean isId() {
25 | return true;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/test/java/dom/checkin/CDataSectionSyncTest.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package dom.checkin;
17 |
18 | import org.junit.jupiter.api.BeforeEach;
19 |
20 | public class CDataSectionSyncTest extends CDataSectionTest {
21 | @BeforeEach
22 | public void setUp() throws Exception {
23 | super.loadSync();
24 | super.moveToNode();
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/test/java/dom/checkin/NamedNodeMapSyncTest.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 |
17 | package dom.checkin;
18 |
19 | import org.junit.jupiter.api.BeforeEach;
20 |
21 | public class NamedNodeMapSyncTest extends NamedNodeMapTest {
22 | @BeforeEach
23 | public void setUp() throws Exception {
24 | super.loadSync();
25 | super.moveToNode();
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/xml/stream/ElementFilter.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.xml.stream;
17 |
18 | /**
19 | *
20 | * This interface defines a filter on elements
21 | */
22 |
23 | public interface ElementFilter {
24 | /**
25 | * tests whether this event is part of this stream
26 | */
27 | boolean accept(XMLEvent element);
28 | }
29 |
--------------------------------------------------------------------------------
/src/test/java/dom/common/Loader.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package dom.common;
17 |
18 |
19 |
20 | public abstract class Loader{
21 |
22 | public static Loader getLoader(){
23 | return new NewLoader();
24 | }
25 | public abstract org.w3c.dom.Document load(String sXml);
26 | public abstract org.w3c.dom.Document loadSync(String sXml);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/enum/enumQName.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 | foo:baz
19 |
20 |
21 | baz:foo
22 |
23 |
24 | baz:foo this should not be a qName
25 |
26 |
27 |
--------------------------------------------------------------------------------
/test/perf/bin/svn.sh:
--------------------------------------------------------------------------------
1 |
2 | export MEM=64
3 | export FLAVOR=
4 | export FILENAME=
5 |
6 | #scan first param
7 | case "$2" in
8 | memory) export MEM=$3 ;;
9 | flavor) export FLAVOR=$3 ;;
10 | filename) export FILENAME=$3 ;;
11 | esac
12 | #scan second param
13 | case "$4" in
14 | memory) export MEM=$5 ;;
15 | flavor) export FLAVOR=$5 ;;
16 | filename) export FILENAME=$5 ;;
17 | esac
18 | #scan third param
19 | case "$6" in
20 | memory) export MEM=$7 ;;
21 | flavor) export FLAVOR=$7 ;;
22 | filename) export FILENAME=$7 ;;
23 | esac
24 |
25 | java -Xmx"$MEM"m -classpath $XMLBEANS_PERFROOT/build:$XMLBEANS_PERFROOT/schema_build/svn-purchase-order.jar:$XMLBEANS_PERFROOT/schema_build/svn-primitives.jar:$XMLBEANS_PERFROOT/schema_build/svn-non-primitives.jar:$XMLBEANS_HOME/build/lib/xbean.jar:$XMLBEANS_HOME/build/lib/jsr173_1.0_api.jar:$XMLBEANS_HOME/build/lib/saxon8.jar:$XMLBEANS_HOME/build/lib/saxon8-dom.jar:$XMLBEANS_HOME/build/lib/xbean_xpath.jar -DPERF_ROOT=$XMLBEANS_PERFROOT org.apache.xmlbeans.test.performance.svn.$1 $FLAVOR $FILENAME
26 |
--------------------------------------------------------------------------------
/src/main/shell/xsd2inst:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ##
3 | ## Copyright 2004 The Apache Software Foundation
4 | ##
5 | ## Licensed under the Apache License, Version 2.0 (the "License");
6 | ## you may not use this file except in compliance with the License.
7 | ## You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ##
17 |
18 | #Schema to instance tool
19 |
20 | if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
21 |
22 | cp=$XMLBEANS_LIB/*
23 |
24 | case "`uname`" in
25 | CYGWIN*)
26 | cp=`cygpath -w -p $cp`
27 | ;;
28 | esac
29 |
30 | java -classpath "$cp" org.apache.xmlbeans.impl.xsd2inst.SchemaInstanceGenerator "$@"
31 |
--------------------------------------------------------------------------------
/src/test/java/dom/checkin/DocumentFragmentSyncTest.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 |
17 | package dom.checkin;
18 |
19 | import org.junit.jupiter.api.BeforeEach;
20 |
21 | public class DocumentFragmentSyncTest extends DocumentFragmentTest {
22 | @BeforeEach
23 | public void setUp() throws Exception {
24 | super.loadSync();
25 | super.moveToNode();
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/XQueryInput.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 |
17 | Bob
18 | 1000
19 |
20 |
21 | Beth
22 | 1001
23 |
24 |
25 | NotBob
26 | 1000
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/SchemaAnnotated.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans;
17 |
18 | /**
19 | * Marker interface denoting that an annotation can be present
20 | */
21 | public interface SchemaAnnotated
22 | {
23 | /**
24 | * Returns the Schema annotation object or null if none present
25 | */
26 | SchemaAnnotation getAnnotation();
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/shell/scopy.cmd:
--------------------------------------------------------------------------------
1 | @REM
2 | @REM Copyright 2004 The Apache Software Foundation
3 | @REM
4 | @REM Licensed under the Apache License, Version 2.0 (the "License");
5 | @REM you may not use this file except in compliance with the License.
6 | @REM You may obtain a copy of the License at
7 | @REM
8 | @REM http://www.apache.org/licenses/LICENSE-2.0
9 | @REM
10 | @REM Unless required by applicable law or agreed to in writing, software
11 | @REM distributed under the License is distributed on an "AS IS" BASIS,
12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @REM See the License for the specific language governing permissions and
14 | @REM limitations under the License.
15 | @REM
16 |
17 | @rem Schema compiler
18 | @rem
19 | @rem Builds XBean types from xsd files.
20 |
21 | @echo off
22 |
23 | setlocal
24 | if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib"
25 |
26 | set cp=
27 | set cp=%cp%;%XMLBEANS_LIB%\*
28 |
29 | java -classpath "%cp%" org.apache.xmlbeans.impl.tool.SchemaCopy %*
30 |
31 | :done
32 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/choice/schema0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/shell/xsdtree:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ##
3 | ## Copyright 2004 The Apache Software Foundation
4 | ##
5 | ## Licensed under the Apache License, Version 2.0 (the "License");
6 | ## you may not use this file except in compliance with the License.
7 | ## You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ##
17 |
18 | # Invokes type hierarchy printer
19 |
20 | if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
21 |
22 | cp=$XMLBEANS_LIB/*
23 |
24 | case "`uname`" in
25 | CYGWIN*)
26 | cp=`cygpath -w -p $cp`
27 | ;;
28 | esac
29 |
30 | java -Xmx256m -classpath "$cp" org.apache.xmlbeans.impl.tool.TypeHierarchyPrinter "$@"
31 |
--------------------------------------------------------------------------------
/src/test/java/dom/checkin/DomImplementationSyncTest.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 |
17 | package dom.checkin;
18 |
19 | import org.junit.jupiter.api.BeforeEach;
20 |
21 | public class DomImplementationSyncTest extends DomImplementationTest {
22 | @BeforeEach
23 | public void setUp() throws Exception {
24 | super.loadSync();
25 | super.moveToNode();
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/choice/nschoice.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/enum/attr/attrenum_ss_enum1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/SelectChildren-NormalDoc.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | first element
18 | second element
19 | 10
20 | 11
21 | 12
22 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/enumtest.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | all
18 | few
19 | most
20 | none
21 |
22 |
--------------------------------------------------------------------------------
/src/main/shell/sdownload.cmd:
--------------------------------------------------------------------------------
1 | @REM
2 | @REM Copyright 2004 The Apache Software Foundation
3 | @REM
4 | @REM Licensed under the Apache License, Version 2.0 (the "License");
5 | @REM you may not use this file except in compliance with the License.
6 | @REM You may obtain a copy of the License at
7 | @REM
8 | @REM http://www.apache.org/licenses/LICENSE-2.0
9 | @REM
10 | @REM Unless required by applicable law or agreed to in writing, software
11 | @REM distributed under the License is distributed on an "AS IS" BASIS,
12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @REM See the License for the specific language governing permissions and
14 | @REM limitations under the License.
15 | @REM
16 |
17 | @rem Schema downloader
18 | @rem
19 | @rem Tool to download schemas.
20 |
21 | @echo off
22 |
23 | setlocal
24 | if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib"
25 |
26 | set cp=
27 | set cp=%cp%;%XMLBEANS_LIB%\*
28 |
29 | java -classpath "%cp%" org.apache.xmlbeans.impl.tool.SchemaResourceManager %*
30 |
31 | :done
32 |
--------------------------------------------------------------------------------
/src/test/java/xmlobject/extensions/interfaceFeature/multInterfaces/existing/IReport.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 | package xmlobject.extensions.interfaceFeature.multInterfaces.existing;
16 |
17 | import org.apache.xmlbeans.XmlObject;
18 |
19 |
20 | public interface IReport extends ISum
21 | {
22 | int getMinPrice();
23 | XmlObject getCheapestItem();
24 | void setMinPrice(double price);
25 |
26 | }
--------------------------------------------------------------------------------
/src/test/resources/xbean/ValidatingStream/person-xsi-inv.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
19 | Person
20 | Two
21 | M
22 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/scomp/element/Any.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/global/globalattr_rd0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/global/globalattr_ss0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/global/globalattr_vb0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNS_rd1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNS_ss1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNS_vb1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/test/perf/src/org/apache/xmlbeans/test/performance/jibx/binding/Shipper.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 | package org.apache.xmlbeans.test.performance.jibx.binding;
16 |
17 | import java.math.BigDecimal;
18 |
19 | public class Shipper{
20 | private String name;
21 | private BigDecimal perouncerate;
22 |
23 | public String getName(){return name;}
24 | public BigDecimal getPerOunceRate(){return perouncerate;}
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/shell/xsd2inst.cmd:
--------------------------------------------------------------------------------
1 | @REM
2 | @REM Copyright 2004 The Apache Software Foundation
3 | @REM
4 | @REM Licensed under the Apache License, Version 2.0 (the "License");
5 | @REM you may not use this file except in compliance with the License.
6 | @REM You may obtain a copy of the License at
7 | @REM
8 | @REM http://www.apache.org/licenses/LICENSE-2.0
9 | @REM
10 | @REM Unless required by applicable law or agreed to in writing, software
11 | @REM distributed under the License is distributed on an "AS IS" BASIS,
12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @REM See the License for the specific language governing permissions and
14 | @REM limitations under the License.
15 | @REM
16 |
17 | @rem Schema to instance tool
18 | @rem
19 |
20 | @echo off
21 |
22 | setlocal
23 | if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib"
24 |
25 | set cp=
26 | set cp=%cp%;%XMLBEANS_LIB%\*
27 |
28 | java -classpath "%cp%" org.apache.xmlbeans.impl.xsd2inst.SchemaInstanceGenerator %*
29 |
30 | :done
31 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/ValidatingStream/person-justname.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
19 | Person
20 | Two
21 | M
22 |
23 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNS_rd0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNS_rd2.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNS_ss0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNS_ss2.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNS_vb0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNS_vb2.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/shell/dumpxsb.cmd:
--------------------------------------------------------------------------------
1 | @REM
2 | @REM Copyright 2004 The Apache Software Foundation
3 | @REM
4 | @REM Licensed under the Apache License, Version 2.0 (the "License");
5 | @REM you may not use this file except in compliance with the License.
6 | @REM You may obtain a copy of the License at
7 | @REM
8 | @REM http://www.apache.org/licenses/LICENSE-2.0
9 | @REM
10 | @REM Unless required by applicable law or agreed to in writing, software
11 | @REM distributed under the License is distributed on an "AS IS" BASIS,
12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @REM See the License for the specific language governing permissions and
14 | @REM limitations under the License.
15 | @REM
16 |
17 | @rem XSB file dumper
18 | @rem
19 | @rem Prints the contents of an xsb file in human-readable form
20 | @echo off
21 |
22 | setlocal
23 | if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib"
24 |
25 | set cp=
26 | set cp=%cp%;%XMLBEANS_LIB%\*
27 |
28 | java -classpath "%cp%" org.apache.xmlbeans.impl.tool.XsbDumper %*
29 |
30 | :done
31 |
--------------------------------------------------------------------------------
/src/main/shell/inst2xsd.cmd:
--------------------------------------------------------------------------------
1 | @REM
2 | @REM Copyright 2004 The Apache Software Foundation
3 | @REM
4 | @REM Licensed under the Apache License, Version 2.0 (the "License");
5 | @REM you may not use this file except in compliance with the License.
6 | @REM You may obtain a copy of the License at
7 | @REM
8 | @REM http://www.apache.org/licenses/LICENSE-2.0
9 | @REM
10 | @REM Unless required by applicable law or agreed to in writing, software
11 | @REM distributed under the License is distributed on an "AS IS" BASIS,
12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @REM See the License for the specific language governing permissions and
14 | @REM limitations under the License.
15 | @REM
16 |
17 | @rem Instance to Schema tool
18 | @rem
19 | @rem Builds xsd files from xml instance files.
20 |
21 | @echo off
22 |
23 | setlocal
24 | if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib"
25 |
26 | set cp=
27 | set cp=%cp%;%XMLBEANS_LIB%\*
28 |
29 | java -classpath "%cp%" org.apache.xmlbeans.impl.inst2xsd.Inst2Xsd %*
30 |
31 | :done
32 |
--------------------------------------------------------------------------------
/src/main/shell/sdownload:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ##
3 | ## Copyright 2004 The Apache Software Foundation
4 | ##
5 | ## Licensed under the Apache License, Version 2.0 (the "License");
6 | ## you may not use this file except in compliance with the License.
7 | ## You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ##
17 |
18 | #Schema downloader
19 | #Tool to download Schema files
20 |
21 | if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
22 |
23 | cp=$XMLBEANS_LIB/*
24 |
25 | case "`uname`" in
26 | CYGWIN*)
27 | cp=`cygpath -w -p $cp`
28 | ;;
29 | esac
30 |
31 | java -classpath "$cp" org.apache.xmlbeans.impl.tool.SchemaResourceManager "$@"
32 |
--------------------------------------------------------------------------------
/src/main/shell/validate.cmd:
--------------------------------------------------------------------------------
1 | @REM
2 | @REM Copyright 2004 The Apache Software Foundation
3 | @REM
4 | @REM Licensed under the Apache License, Version 2.0 (the "License");
5 | @REM you may not use this file except in compliance with the License.
6 | @REM You may obtain a copy of the License at
7 | @REM
8 | @REM http://www.apache.org/licenses/LICENSE-2.0
9 | @REM
10 | @REM Unless required by applicable law or agreed to in writing, software
11 | @REM distributed under the License is distributed on an "AS IS" BASIS,
12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @REM See the License for the specific language governing permissions and
14 | @REM limitations under the License.
15 | @REM
16 |
17 | @rem Instance Validator
18 | @rem
19 | @rem Validates an instance against a schema.
20 |
21 | @echo off
22 |
23 | setlocal
24 | if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib"
25 |
26 | set cp=
27 | set cp=%cp%;%XMLBEANS_LIB%\*
28 |
29 | java -classpath "%cp%" org.apache.xmlbeans.impl.tool.InstanceValidator %*
30 |
31 | :done
32 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNestedNS_rd2.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNestedNS_ss3.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNestedNS_vb2.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/test/perf/bin/v2.sh:
--------------------------------------------------------------------------------
1 |
2 | export MEM=64
3 | export FLAVOR=
4 | export FILENAME=
5 |
6 | #scan first param
7 | case "$2" in
8 | memory) export MEM=$3 ;;
9 | flavor) export FLAVOR=$3 ;;
10 | filename) export FILENAME=$3 ;;
11 | esac
12 | #scan second param
13 | case "$4" in
14 | memory) export MEM=$5 ;;
15 | flavor) export FLAVOR=$5 ;;
16 | filename) export FILENAME=$5 ;;
17 | esac
18 | #scan third param
19 | case "$6" in
20 | memory) export MEM=$7 ;;
21 | flavor) export FLAVOR=$7 ;;
22 | filename) export FILENAME=$7 ;;
23 | esac
24 |
25 | java -Xmx"$MEM"m -classpath $XMLBEANS_PERFROOT/build:$XMLBEANS_PERFROOT/schema_build/v2-purchase-order.jar:$XMLBEANS_PERFROOT/schema_build/v2-primitives.jar:$XMLBEANS_PERFROOT/schema_build/v2-non-primitives.jar:$XMLBEANS_PERFROOT/3rdparty/v2/xmlbeans-2.0.0/lib/xbean.jar:$XMLBEANS_PERFROOT/3rdparty/v2/xmlbeans-2.0.0/lib/jsr173_api.jar:$XMLBEANS_PERFROOT/3rdparty/v2/saxon8.jar:$XMLBEANS_PERFROOT/3rdparty/v2/xmlbeans-2.0.0/lib/xbean_xpath.jar -DPERF_ROOT=$XMLBEANS_PERFROOT org.apache.xmlbeans.test.performance.v2.$1 $FLAVOR $FILENAME
26 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlAnyUriRestriction.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.SchemaType;
19 |
20 | public class XmlAnyUriRestriction extends JavaUriHolderEx implements org.apache.xmlbeans.XmlAnyURI
21 | {
22 | public XmlAnyUriRestriction(SchemaType type, boolean complex)
23 | { super(type, complex); }
24 | }
25 |
--------------------------------------------------------------------------------
/src/test/java/xmlobject/extensions/interfaceFeature/averageCase/existing/IFoo.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 | package xmlobject.extensions.interfaceFeature.averageCase.existing;
16 |
17 | public interface IFoo
18 | {
19 | int getTotal();
20 |
21 | // The following methods are being added to test JIRA isssue XMLBEANS-206
22 | public String getName(String s);
23 | public String getName(String s, int i);
24 |
25 | }
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlobject/redefine1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/main/shell/inst2xsd:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ##
3 | ## Copyright 2004 The Apache Software Foundation
4 | ##
5 | ## Licensed under the Apache License, Version 2.0 (the "License");
6 | ## you may not use this file except in compliance with the License.
7 | ## You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ##
17 |
18 | #Instance to Schema tool
19 | #Builds xsd files from xml instance files.
20 |
21 | if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
22 |
23 | cp=$XMLBEANS_LIB/*
24 |
25 | case "`uname`" in
26 | CYGWIN*)
27 | cp=`cygpath -w -p $cp`
28 | ;;
29 | esac
30 |
31 | java -classpath "$cp" org.apache.xmlbeans.impl.inst2xsd.Inst2Xsd "$@"
32 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/jaxen/axis.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlIntRestriction.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.SchemaType;
19 | import org.apache.xmlbeans.XmlInt;
20 |
21 | public class XmlIntRestriction extends JavaIntHolderEx implements XmlInt
22 | {
23 | public XmlIntRestriction(SchemaType type, boolean complex)
24 | { super(type, complex); }
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/shell/svalidate.cmd:
--------------------------------------------------------------------------------
1 | @REM
2 | @REM Copyright 2004 The Apache Software Foundation
3 | @REM
4 | @REM Licensed under the Apache License, Version 2.0 (the "License");
5 | @REM you may not use this file except in compliance with the License.
6 | @REM You may obtain a copy of the License at
7 | @REM
8 | @REM http://www.apache.org/licenses/LICENSE-2.0
9 | @REM
10 | @REM Unless required by applicable law or agreed to in writing, software
11 | @REM distributed under the License is distributed on an "AS IS" BASIS,
12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @REM See the License for the specific language governing permissions and
14 | @REM limitations under the License.
15 | @REM
16 |
17 | @rem Streaming Instance Validator
18 | @rem
19 | @rem Validates an instance against a schema.
20 |
21 | @echo off
22 |
23 | setlocal
24 | if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib"
25 |
26 | set cp=
27 | set cp=%cp%;%XMLBEANS_LIB%\*
28 |
29 | java -classpath "%cp%" org.apache.xmlbeans.impl.tool.StreamInstanceValidator %*
30 |
31 | :done
32 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/xmlcursor/xpath/jaxen/numbers.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 | 3
19 | 24
20 | 55
21 | 11
22 | 2
23 | -3
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlLongRestriction.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.SchemaType;
19 | import org.apache.xmlbeans.XmlLong;
20 |
21 | public class XmlLongRestriction extends JavaLongHolderEx implements XmlLong
22 | {
23 | public XmlLongRestriction(SchemaType type, boolean complex)
24 | { super(type, complex); }
25 | }
26 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/enum/attr/attrenum.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 | baz:foo
19 |
20 |
21 | foo:baz
22 |
23 |
24 | foo:bar
25 |
26 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/types/po_vb0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/types/schemaLocation_vb0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/test/perf/bin/castor.sh:
--------------------------------------------------------------------------------
1 | #/bin/sh
2 |
3 | export MEM=64
4 | export FLAVOR=
5 | export FILENAME=
6 |
7 | #scan first param
8 | case "$2" in
9 | memory) export MEM=$3 ;;
10 | flavor) export FLAVOR=$3 ;;
11 | filename) export FILENAME=$3 ;;
12 | esac
13 | #scan second param
14 | case "$4" in
15 | memory) export MEM=$5 ;;
16 | flavor) export FLAVOR=$5 ;;
17 | filename) export FILENAME=$5 ;;
18 | esac
19 | #scan third param
20 | case "$6" in
21 | memory) export MEM=$7 ;;
22 | flavor) export FLAVOR=$7 ;;
23 | filename) export FILENAME=$7 ;;
24 | esac
25 | java -Xmx"$MEM"m -Xbootclasspath/p:$XMLBEANS_PERFROOT/3rdparty/xerces/xerces-2_7_1/xml-apis.jar:$XMLBEANS_PERFROOT/3rdparty/xerces/xerces-2_7_1/xercesImpl.jar -classpath $XMLBEANS_PERFROOT/build:$XMLBEANS_PERFROOT/schema_build/castor-purchase-order.jar:$XMLBEANS_PERFROOT/schema_build/castor-primitives.jar:$XMLBEANS_PERFROOT/schema_build/castor-non-primitives.jar:$XMLBEANS_PERFROOT/3rdparty/castor/castor-0.9.5.4.jar -DPERF_ROOT=$XMLBEANS_PERFROOT org.apache.xmlbeans.test.performance.castor.$1 $FLAVOR $FILENAME
26 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlFloatRestriction.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlFloat;
19 | import org.apache.xmlbeans.SchemaType;
20 |
21 | public class XmlFloatRestriction extends JavaFloatHolderEx implements XmlFloat
22 | {
23 | public XmlFloatRestriction(SchemaType type, boolean complex)
24 | { super(type, complex); }
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlQNameRestriction.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.SchemaType;
19 | import org.apache.xmlbeans.XmlQName;
20 |
21 | public class XmlQNameRestriction extends JavaQNameHolderEx implements XmlQName
22 | {
23 | public XmlQNameRestriction(SchemaType type, boolean complex)
24 | { super(type, complex); }
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/shell/scomp.cmd:
--------------------------------------------------------------------------------
1 | @REM
2 | @REM Copyright 2004 The Apache Software Foundation
3 | @REM
4 | @REM Licensed under the Apache License, Version 2.0 (the "License");
5 | @REM you may not use this file except in compliance with the License.
6 | @REM You may obtain a copy of the License at
7 | @REM
8 | @REM http://www.apache.org/licenses/LICENSE-2.0
9 | @REM
10 | @REM Unless required by applicable law or agreed to in writing, software
11 | @REM distributed under the License is distributed on an "AS IS" BASIS,
12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @REM See the License for the specific language governing permissions and
14 | @REM limitations under the License.
15 | @REM
16 |
17 | @rem Schema compiler
18 | @rem
19 | @rem Builds XBean types from xsd files.
20 |
21 | @echo off
22 |
23 | setlocal
24 | if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib"
25 |
26 | set cp=
27 | set cp=%cp%;%XMLBEANS_LIB%\*
28 | set cp=%cp%;%JAVA_HOME%\lib\tools.jar
29 |
30 | java -classpath "%cp%" org.apache.xmlbeans.impl.tool.SchemaCompiler %*
31 |
32 | :done
33 |
--------------------------------------------------------------------------------
/src/main/shell/validate:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ##
3 | ## Copyright 2004 The Apache Software Foundation
4 | ##
5 | ## Licensed under the Apache License, Version 2.0 (the "License");
6 | ## you may not use this file except in compliance with the License.
7 | ## You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ##
17 | #
18 | # Instance Validator
19 | #
20 | # Validates an instance against a schema.
21 |
22 | if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
23 |
24 | cp=$XMLBEANS_LIB/*
25 |
26 | case "`uname`" in
27 | CYGWIN*)
28 | cp=`cygpath -w -p $cp`
29 | ;;
30 | esac
31 |
32 | exec java -classpath "$cp" org.apache.xmlbeans.impl.tool.InstanceValidator "$@"
33 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/namespaces/multipleNS.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
21 | abc
22 | 123
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/main/shell/scomp:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ##
3 | ## Copyright 2004 The Apache Software Foundation
4 | ##
5 | ## Licensed under the Apache License, Version 2.0 (the "License");
6 | ## you may not use this file except in compliance with the License.
7 | ## You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ##
17 |
18 | #Schema compiler
19 | #Builds XBean types from xsd files.
20 |
21 | if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
22 |
23 | cp=$XMLBEANS_LIB/*:$JAVA_HOME/lib/tools.jar
24 |
25 | case "`uname`" in
26 | CYGWIN*)
27 | cp=`cygpath -w -p $cp`
28 | ;;
29 | esac
30 |
31 | java -Xmx256m -classpath "$cp" org.apache.xmlbeans.impl.tool.SchemaCompiler "$@"
32 |
--------------------------------------------------------------------------------
/src/test/java/xmlobject/extensions/interfaceFeature/methodNameCollision/existing/IFoo.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package xmlobject.extensions.interfaceFeature.methodNameCollision.existing;
17 |
18 |
19 | public interface IFoo {
20 | String getName();
21 | String getName2(int[][] ints);
22 | String getName3(Inner inner);
23 |
24 | public static interface Inner
25 | {
26 | String getValue();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/misc/jira/xmlbeans_98.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/xbean/tools/inst2xsd/schema/complex/nestedNSArray/nestedNSArray.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 | a
18 | b
19 | c
20 |
21 | b
22 | c
23 |
24 | notB
25 | notC
26 |
27 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlDoubleRestriction.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlDouble;
19 | import org.apache.xmlbeans.SchemaType;
20 |
21 | public class XmlDoubleRestriction extends JavaDoubleHolderEx implements XmlDouble
22 | {
23 | public XmlDoubleRestriction(SchemaType type, boolean complex)
24 | { super(type, complex); }
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlStringRestriction.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.SchemaType;
19 | import org.apache.xmlbeans.XmlString;
20 |
21 | public class XmlStringRestriction extends JavaStringHolderEx implements XmlString
22 | {
23 | public XmlStringRestriction(SchemaType type, boolean complex)
24 | { super(type, complex); }
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/shell/sfactor.cmd:
--------------------------------------------------------------------------------
1 | @REM
2 | @REM Copyright 2004 The Apache Software Foundation
3 | @REM
4 | @REM Licensed under the Apache License, Version 2.0 (the "License");
5 | @REM you may not use this file except in compliance with the License.
6 | @REM You may obtain a copy of the License at
7 | @REM
8 | @REM http://www.apache.org/licenses/LICENSE-2.0
9 | @REM
10 | @REM Unless required by applicable law or agreed to in writing, software
11 | @REM distributed under the License is distributed on an "AS IS" BASIS,
12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @REM See the License for the specific language governing permissions and
14 | @REM limitations under the License.
15 | @REM
16 |
17 | @rem Schema Factoring tool
18 | @rem
19 | @rem Factores redundant definitions out of a set of schemas and uses imports instead.
20 |
21 | @echo off
22 |
23 | setlocal
24 | if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib"
25 |
26 | set cp=
27 | set cp=%cp%;%XMLBEANS_LIB%\*
28 |
29 | java -classpath "%cp%" org.apache.xmlbeans.impl.tool.FactorImports %*
30 |
31 | :done
32 |
--------------------------------------------------------------------------------
/src/main/shell/svalidate:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ##
3 | ## Copyright 2004 The Apache Software Foundation
4 | ##
5 | ## Licensed under the Apache License, Version 2.0 (the "License");
6 | ## you may not use this file except in compliance with the License.
7 | ## You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ##
17 | #
18 | # Streaming Instance Validator
19 | #
20 | # Validates an instance against a schema.
21 |
22 | if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
23 |
24 | cp=$XMLBEANS_LIB/*
25 |
26 | case "`uname`" in
27 | CYGWIN*)
28 | cp=`cygpath -w -p $cp`
29 | ;;
30 | esac
31 |
32 | java -classpath "$cp" org.apache.xmlbeans.impl.tool.StreamInstanceValidator "$@"
33 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlBooleanRestriction.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlBoolean;
19 | import org.apache.xmlbeans.SchemaType;
20 |
21 | public class XmlBooleanRestriction extends JavaBooleanHolderEx implements XmlBoolean
22 | {
23 | public XmlBooleanRestriction(SchemaType type, boolean complex)
24 | { super(type, complex); }
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlDecimalRestriction.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.XmlDecimal;
19 | import org.apache.xmlbeans.SchemaType;
20 |
21 | public class XmlDecimalRestriction extends JavaDecimalHolderEx implements XmlDecimal
22 | {
23 | public XmlDecimalRestriction(SchemaType type, boolean complex)
24 | { super(type, complex); }
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/java/org/apache/xmlbeans/impl/values/XmlIntegerRestriction.java:
--------------------------------------------------------------------------------
1 | /* Copyright 2004 The Apache Software Foundation
2 | *
3 | * Licensed under the Apache License, Version 2.0 (the "License");
4 | * you may not use this file except in compliance with the License.
5 | * You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software
10 | * distributed under the License is distributed on an "AS IS" BASIS,
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | * See the License for the specific language governing permissions and
13 | * limitations under the License.
14 | */
15 |
16 | package org.apache.xmlbeans.impl.values;
17 |
18 | import org.apache.xmlbeans.SchemaType;
19 | import org.apache.xmlbeans.XmlInteger;
20 |
21 | public class XmlIntegerRestriction extends JavaIntegerHolderEx implements XmlInteger
22 | {
23 | public XmlIntegerRestriction(SchemaType type, boolean complex)
24 | { super(type, complex); }
25 | }
26 |
--------------------------------------------------------------------------------