001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0
003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004: // Any modifications to this file will be lost upon recompilation of the source schema.
005: // Generated on: 2003.03.06 at 09:44:47 PST
006: //
007:
008: package org.jaffa.presentation.portlet.component.componentdomain;
009:
010: /**
011: * This object contains factory methods for each Java content interface and Java element interface generated in the org.jaffa.presentation.portlet.component.componentdomain package. <p>An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML content can consist of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model groups. Factory methods for each of these are provided in this class.
012: *
013: */
014: public class ObjectFactory extends
015: com.sun.xml.bind.DefaultJAXBContextImpl {
016:
017: private static java.util.HashMap defaultImplementations = new java.util.HashMap();
018:
019: static {
020: defaultImplementations
021: .put(
022: (org.jaffa.presentation.portlet.component.componentdomain.OptionalFunction.class),
023: (org.jaffa.presentation.portlet.component.componentdomain.impl.OptionalFunctionImpl.class));
024: defaultImplementations
025: .put(
026: (org.jaffa.presentation.portlet.component.componentdomain.ComponentsType.class),
027: (org.jaffa.presentation.portlet.component.componentdomain.impl.ComponentsTypeImpl.class));
028: defaultImplementations
029: .put(
030: (org.jaffa.presentation.portlet.component.componentdomain.Component.class),
031: (org.jaffa.presentation.portlet.component.componentdomain.impl.ComponentImpl.class));
032: defaultImplementations
033: .put(
034: (org.jaffa.presentation.portlet.component.componentdomain.Components.class),
035: (org.jaffa.presentation.portlet.component.componentdomain.impl.ComponentsImpl.class));
036: defaultImplementations
037: .put(
038: (org.jaffa.presentation.portlet.component.componentdomain.MandatoryFunction.class),
039: (org.jaffa.presentation.portlet.component.componentdomain.impl.MandatoryFunctionImpl.class));
040: }
041:
042: /**
043: * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jaffa.presentation.portlet.component.componentdomain
044: *
045: */
046: public ObjectFactory() {
047: super (
048: new org.jaffa.presentation.portlet.component.componentdomain.ObjectFactory.GrammarInfoImpl());
049: }
050:
051: /**
052: * Create an instance of the specified Java content interface.
053: *
054: * @param javaContentInterface the Class object of the javacontent interface to instantiate
055: * @return a new instance
056: * @throws JAXBException if an error occurs
057: */
058: public java.lang.Object newInstance(
059: java.lang.Class javaContentInterface)
060: throws javax.xml.bind.JAXBException {
061: return super .newInstance(javaContentInterface);
062: }
063:
064: /**
065: * Get the specified property. This method can only be
066: * used to get provider specific properties.
067: * Attempting to get an undefined property will result
068: * in a PropertyException being thrown.
069: *
070: * @param name the name of the property to retrieve
071: * @return the value of the requested property
072: * @throws PropertyException when there is an error retrieving the given property or value
073: */
074: public java.lang.Object getProperty(java.lang.String name)
075: throws javax.xml.bind.PropertyException {
076: return super .getProperty(name);
077: }
078:
079: /**
080: * Set the specified property. This method can only be
081: * used to set provider specific properties.
082: * Attempting to set an undefined property will result
083: * in a PropertyException being thrown.
084: *
085: * @param name the name of the property to retrieve
086: * @param value the value of the property to be set
087: * @throws PropertyException when there is an error processing the given property or value
088: */
089: public void setProperty(java.lang.String name,
090: java.lang.Object value)
091: throws javax.xml.bind.PropertyException {
092: super .setProperty(name, value);
093: }
094:
095: /**
096: * Create an instance of OptionalFunction
097: *
098: * @throws JAXBException if an error occurs
099: */
100: public org.jaffa.presentation.portlet.component.componentdomain.OptionalFunction createOptionalFunction()
101: throws javax.xml.bind.JAXBException {
102: return ((org.jaffa.presentation.portlet.component.componentdomain.OptionalFunction) newInstance((org.jaffa.presentation.portlet.component.componentdomain.OptionalFunction.class)));
103: }
104:
105: /**
106: * Create an instance of ComponentsType
107: *
108: * @throws JAXBException if an error occurs
109: */
110: public org.jaffa.presentation.portlet.component.componentdomain.ComponentsType createComponentsType()
111: throws javax.xml.bind.JAXBException {
112: return ((org.jaffa.presentation.portlet.component.componentdomain.ComponentsType) newInstance((org.jaffa.presentation.portlet.component.componentdomain.ComponentsType.class)));
113: }
114:
115: /**
116: * Create an instance of Component
117: *
118: * @throws JAXBException if an error occurs
119: */
120: public org.jaffa.presentation.portlet.component.componentdomain.Component createComponent()
121: throws javax.xml.bind.JAXBException {
122: return ((org.jaffa.presentation.portlet.component.componentdomain.Component) newInstance((org.jaffa.presentation.portlet.component.componentdomain.Component.class)));
123: }
124:
125: /**
126: * Create an instance of Components
127: *
128: * @throws JAXBException if an error occurs
129: */
130: public org.jaffa.presentation.portlet.component.componentdomain.Components createComponents()
131: throws javax.xml.bind.JAXBException {
132: return ((org.jaffa.presentation.portlet.component.componentdomain.Components) newInstance((org.jaffa.presentation.portlet.component.componentdomain.Components.class)));
133: }
134:
135: /**
136: * Create an instance of MandatoryFunction
137: *
138: * @throws JAXBException if an error occurs
139: */
140: public org.jaffa.presentation.portlet.component.componentdomain.MandatoryFunction createMandatoryFunction()
141: throws javax.xml.bind.JAXBException {
142: return ((org.jaffa.presentation.portlet.component.componentdomain.MandatoryFunction) newInstance((org.jaffa.presentation.portlet.component.componentdomain.MandatoryFunction.class)));
143: }
144:
145: private static class GrammarInfoImpl extends
146: com.sun.xml.bind.GrammarInfo {
147:
148: public java.lang.Class getDefaultImplementation(
149: java.lang.Class javaContentInterface) {
150: return ((java.lang.Class) defaultImplementations
151: .get(javaContentInterface));
152: }
153:
154: public java.lang.Class getRootElement(java.lang.String uri,
155: java.lang.String local) {
156: if (("" == uri) && ("components" == local)) {
157: return (org.jaffa.presentation.portlet.component.componentdomain.impl.ComponentsImpl.class);
158: }
159: return null;
160: }
161:
162: public java.lang.String[] getProbePoints() {
163: return new java.lang.String[] { "", "components" };
164: }
165:
166: }
167:
168: }
|