org.oasis.was
Class ObjectFactory

java.lang.Object
  extended byjavax.xml.bind.JAXBContext
      extended byorg.oasis.was.impl.runtime.DefaultJAXBContextImpl
          extended byorg.oasis.was.ObjectFactory

public class ObjectFactory
extends org.oasis.was.impl.runtime.DefaultJAXBContextImpl

This object contains factory methods for each Java content interface and Java element interface generated in the org.oasis.was package.

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.


Field Summary
static java.lang.Class version
           
 
Fields inherited from class javax.xml.bind.JAXBContext
JAXB_CONTEXT_FACTORY
 
Constructor Summary
ObjectFactory()
          Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.oasis.was
 
Method Summary
 AttackCharacteristic createAttackCharacteristic()
          Create an instance of AttackCharacteristic
 AttackSurface createAttackSurface()
          Create an instance of AttackSurface
 Condition createCondition()
          Create an instance of Condition
 Consequence createConsequence()
          Create an instance of Consequence
 SerializableVulnerability createSerializableVulnerability()
          Create an instance of SerializableVulnerability
 Target createTarget()
          Create an instance of Target
 Vulnerability createVulnerability()
          Create an instance of Vulnerability
 java.lang.Object getProperty(java.lang.String name)
          Get the specified property.
 java.lang.Object newInstance(java.lang.Class javaContentInterface)
          Create an instance of the specified Java content interface.
 void setProperty(java.lang.String name, java.lang.Object value)
          Set the specified property.
 
Methods inherited from class org.oasis.was.impl.runtime.DefaultJAXBContextImpl
createMarshaller, createUnmarshaller, createValidator, getGrammar, getGrammarInfo
 
Methods inherited from class javax.xml.bind.JAXBContext
newInstance, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static final java.lang.Class version
Constructor Detail

ObjectFactory

public ObjectFactory()
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.oasis.was

Method Detail

newInstance

public java.lang.Object newInstance(java.lang.Class javaContentInterface)
                             throws javax.xml.bind.JAXBException
Create an instance of the specified Java content interface.

Parameters:
javaContentInterface - the Class object of the javacontent interface to instantiate
Returns:
a new instance
Throws:
JAXBException - if an error occurs

getProperty

public java.lang.Object getProperty(java.lang.String name)
                             throws javax.xml.bind.PropertyException
Get the specified property. This method can only be used to get provider specific properties. Attempting to get an undefined property will result in a PropertyException being thrown.

Parameters:
name - the name of the property to retrieve
Returns:
the value of the requested property
Throws:
PropertyException - when there is an error retrieving the given property or value

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws javax.xml.bind.PropertyException
Set the specified property. This method can only be used to set provider specific properties. Attempting to set an undefined property will result in a PropertyException being thrown.

Parameters:
name - the name of the property to retrieve
value - the value of the property to be set
Throws:
PropertyException - when there is an error processing the given property or value

createAttackCharacteristic

public AttackCharacteristic createAttackCharacteristic()
                                                throws javax.xml.bind.JAXBException
Create an instance of AttackCharacteristic

Throws:
JAXBException - if an error occurs

createTarget

public Target createTarget()
                    throws javax.xml.bind.JAXBException
Create an instance of Target

Throws:
JAXBException - if an error occurs

createConsequence

public Consequence createConsequence()
                              throws javax.xml.bind.JAXBException
Create an instance of Consequence

Throws:
JAXBException - if an error occurs

createCondition

public Condition createCondition()
                          throws javax.xml.bind.JAXBException
Create an instance of Condition

Throws:
JAXBException - if an error occurs

createVulnerability

public Vulnerability createVulnerability()
                                  throws javax.xml.bind.JAXBException
Create an instance of Vulnerability

Throws:
JAXBException - if an error occurs

createSerializableVulnerability

public SerializableVulnerability createSerializableVulnerability()
                                                          throws javax.xml.bind.JAXBException
Create an instance of SerializableVulnerability

Throws:
JAXBException - if an error occurs

createAttackSurface

public AttackSurface createAttackSurface()
                                  throws javax.xml.bind.JAXBException
Create an instance of AttackSurface

Throws:
JAXBException - if an error occurs


Copyright © OASIS. All Rights Reserved.