All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mitre.capec.capec_2.ObjectFactory Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2015, The MITRE Corporation. All rights reserved.
 * See LICENSE for complete terms.
 */

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.07.01 at 03:19:53 PM EDT 
//

package org.mitre.capec.capec_2;

import java.io.StringReader;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
import javax.xml.transform.stream.StreamSource;
import org.mitre.stix.DocumentUtilities;
import org.mitre.stix.STIXSchema;
import org.mitre.stix.ValidationEventHandler;
import org.xml.sax.SAXException;

/**
 * This object contains factory methods for each 
 * Java content interface and Java element interface 
 * generated in the org.mitre.capec.capec_2 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. * */ @XmlRegistry public class ObjectFactory { private final static QName _BlockImages_QNAME = new QName( "http://capec.mitre.org/capec-2", "Images"); private final static QName _BlockComment_QNAME = new QName( "http://capec.mitre.org/capec-2", "Comment"); private final static QName _BlockTextTitle_QNAME = new QName( "http://capec.mitre.org/capec-2", "Text_Title"); private final static QName _BlockCode_QNAME = new QName( "http://capec.mitre.org/capec-2", "Code"); private final static QName _BlockText_QNAME = new QName( "http://capec.mitre.org/capec-2", "Text"); private final static QName _BlockCodeExampleLanguage_QNAME = new QName( "http://capec.mitre.org/capec-2", "Code_Example_Language"); private final static QName _BlockImagesImageImageTitle_QNAME = new QName( "http://capec.mitre.org/capec-2", "Image_Title"); private final static QName _BlockImagesImageImageLocation_QNAME = new QName( "http://capec.mitre.org/capec-2", "Image_Location"); /** * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.mitre.capec.capec_2 * */ public ObjectFactory() { } /** * Create an instance of {@link AttackPattern } * */ public AttackPattern createAttackPattern() { return new AttackPattern(); } /** * Create an instance of {@link AlternateTerms } * */ public AlternateTerms createAlternateTerms() { return new AlternateTerms(); } /** * Create an instance of {@link ContentHistory } * */ public ContentHistory createContentHistory() { return new ContentHistory(); } /** * Create an instance of {@link Category } * */ public Category createCategory() { return new Category(); } /** * Create an instance of {@link AttackExecutionFlow } * */ public AttackExecutionFlow createAttackExecutionFlow() { return new AttackExecutionFlow(); } /** * Create an instance of {@link AttackStepTechnique } * */ public AttackStepTechnique createAttackStepTechnique() { return new AttackStepTechnique(); } /** * Create an instance of {@link View } * */ public View createView() { return new View(); } /** * Create an instance of {@link AttackPatternCatalog } * */ public AttackPatternCatalog createAttackPatternCatalog() { return new AttackPatternCatalog(); } /** * Create an instance of {@link Block } * */ public Block createBlock() { return new Block(); } /** * Create an instance of {@link CompoundElement } * */ public CompoundElement createCompoundElement() { return new CompoundElement(); } /** * Create an instance of {@link CustomAttackStepType } * */ public CustomAttackStepType createCustomAttackStepType() { return new CustomAttackStepType(); } /** * Create an instance of {@link CustomAttackStepType.SecurityControls } * */ public CustomAttackStepType.SecurityControls createCustomAttackStepTypeSecurityControls() { return new CustomAttackStepType.SecurityControls(); } /** * Create an instance of {@link CustomAttackStepType.SecurityControls.SecurityControl } * */ public CustomAttackStepType.SecurityControls.SecurityControl createCustomAttackStepTypeSecurityControlsSecurityControl() { return new CustomAttackStepType.SecurityControls.SecurityControl(); } /** * Create an instance of {@link CustomAttackStepType.Outcomes } * */ public CustomAttackStepType.Outcomes createCustomAttackStepTypeOutcomes() { return new CustomAttackStepType.Outcomes(); } /** * Create an instance of {@link CustomAttackStepType.Indicators } * */ public CustomAttackStepType.Indicators createCustomAttackStepTypeIndicators() { return new CustomAttackStepType.Indicators(); } /** * Create an instance of {@link ObservablesType } * */ public ObservablesType createObservablesType() { return new ObservablesType(); } /** * Create an instance of {@link ObservablesType.Observable } * */ public ObservablesType.Observable createObservablesTypeObservable() { return new ObservablesType.Observable(); } /** * Create an instance of {@link ObservablesType.Observable.ObfuscationTechniques } * */ public ObservablesType.Observable.ObfuscationTechniques createObservablesTypeObservableObfuscationTechniques() { return new ObservablesType.Observable.ObfuscationTechniques(); } /** * Create an instance of {@link ObservablesType.Observable.Signature } * */ public ObservablesType.Observable.Signature createObservablesTypeObservableSignature() { return new ObservablesType.Observable.Signature(); } /** * Create an instance of {@link ObservablesType.Observable.Signature.Event } * */ public ObservablesType.Observable.Signature.Event createObservablesTypeObservableSignatureEvent() { return new ObservablesType.Observable.Signature.Event(); } /** * Create an instance of {@link ObservablesType.Observable.Signature.Event.Action } * */ public ObservablesType.Observable.Signature.Event.Action createObservablesTypeObservableSignatureEventAction() { return new ObservablesType.Observable.Signature.Event.Action(); } /** * Create an instance of {@link ObservablesType.Observable.Signature.Event.Action.Object } * */ public ObservablesType.Observable.Signature.Event.Action.Object createObservablesTypeObservableSignatureEventActionObject() { return new ObservablesType.Observable.Signature.Event.Action.Object(); } /** * Create an instance of {@link ObservablesType.Observable.Signature.Event.Action.Object.Value } * */ public ObservablesType.Observable.Signature.Event.Action.Object.Value createObservablesTypeObservableSignatureEventActionObjectValue() { return new ObservablesType.Observable.Signature.Event.Action.Object.Value(); } /** * Create an instance of {@link ObservablesType.Observable.Signature.Event.Action.Object.Value.Delta } * */ public ObservablesType.Observable.Signature.Event.Action.Object.Value.Delta createObservablesTypeObservableSignatureEventActionObjectValueDelta() { return new ObservablesType.Observable.Signature.Event.Action.Object.Value.Delta(); } /** * Create an instance of {@link ObservablesType.Observable.Signature.StatefulMeasure } * */ public ObservablesType.Observable.Signature.StatefulMeasure createObservablesTypeObservableSignatureStatefulMeasure() { return new ObservablesType.Observable.Signature.StatefulMeasure(); } /** * Create an instance of {@link ObservablesType.Observable.Signature.StatefulMeasure.ValueType } * */ public ObservablesType.Observable.Signature.StatefulMeasure.ValueType createObservablesTypeObservableSignatureStatefulMeasureValueType() { return new ObservablesType.Observable.Signature.StatefulMeasure.ValueType(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType } * */ public TargetAttackSurfaceDescriptionType createTargetAttackSurfaceDescriptionType() { return new TargetAttackSurfaceDescriptionType(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetFunctionalServices } * */ public TargetAttackSurfaceDescriptionType.TargetFunctionalServices createTargetAttackSurfaceDescriptionTypeTargetFunctionalServices() { return new TargetAttackSurfaceDescriptionType.TargetFunctionalServices(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService } * */ public TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService createTargetAttackSurfaceDescriptionTypeTargetFunctionalServicesTargetFunctionalService() { return new TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol } * */ public TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol createTargetAttackSurfaceDescriptionTypeTargetFunctionalServicesTargetFunctionalServiceProtocol() { return new TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.RelatedProtocols } * */ public TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.RelatedProtocols createTargetAttackSurfaceDescriptionTypeTargetFunctionalServicesTargetFunctionalServiceProtocolRelatedProtocols() { return new TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.RelatedProtocols(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.CommandStructures } * */ public TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.CommandStructures createTargetAttackSurfaceDescriptionTypeTargetFunctionalServicesTargetFunctionalServiceProtocolCommandStructures() { return new TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.CommandStructures(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.ProtocolStructure } * */ public TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.ProtocolStructure createTargetAttackSurfaceDescriptionTypeTargetFunctionalServicesTargetFunctionalServiceProtocolProtocolStructure() { return new TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.ProtocolStructure(); } /** * Create an instance of {@link Block.Images } * */ public Block.Images createBlockImages() { return new Block.Images(); } /** * Create an instance of {@link AttackPatternCatalog.CommonAttackSurfaces } * */ public AttackPatternCatalog.CommonAttackSurfaces createAttackPatternCatalogCommonAttackSurfaces() { return new AttackPatternCatalog.CommonAttackSurfaces(); } /** * Create an instance of {@link AttackPatternCatalog.CommonAttackSteps } * */ public AttackPatternCatalog.CommonAttackSteps createAttackPatternCatalogCommonAttackSteps() { return new AttackPatternCatalog.CommonAttackSteps(); } /** * Create an instance of {@link View.ViewAudience } * */ public View.ViewAudience createViewViewAudience() { return new View.ViewAudience(); } /** * Create an instance of {@link RelevantAttackSurfaceElementsType } * */ public RelevantAttackSurfaceElementsType createRelevantAttackSurfaceElementsType() { return new RelevantAttackSurfaceElementsType(); } /** * Create an instance of {@link AttackExecutionFlow.AttackPhases } * */ public AttackExecutionFlow.AttackPhases createAttackExecutionFlowAttackPhases() { return new AttackExecutionFlow.AttackPhases(); } /** * Create an instance of {@link AttackExecutionFlow.AttackPhases.AttackPhase } * */ public AttackExecutionFlow.AttackPhases.AttackPhase createAttackExecutionFlowAttackPhasesAttackPhase() { return new AttackExecutionFlow.AttackPhases.AttackPhase(); } /** * Create an instance of {@link AttackExecutionFlow.AttackPhases.AttackPhase.AttackSteps } * */ public AttackExecutionFlow.AttackPhases.AttackPhase.AttackSteps createAttackExecutionFlowAttackPhasesAttackPhaseAttackSteps() { return new AttackExecutionFlow.AttackPhases.AttackPhase.AttackSteps(); } /** * Create an instance of {@link AttackExecutionFlow.AttackPhases.AttackPhase.AttackSteps.AttackStep } * */ public AttackExecutionFlow.AttackPhases.AttackPhase.AttackSteps.AttackStep createAttackExecutionFlowAttackPhasesAttackPhaseAttackStepsAttackStep() { return new AttackExecutionFlow.AttackPhases.AttackPhase.AttackSteps.AttackStep(); } /** * Create an instance of {@link RelationshipType } * */ public RelationshipType createRelationshipType() { return new RelationshipType(); } /** * Create an instance of {@link RelationshipType.RelationshipViews } * */ public RelationshipType.RelationshipViews createRelationshipTypeRelationshipViews() { return new RelationshipType.RelationshipViews(); } /** * Create an instance of {@link Category.AttackerSkillsOrKnowledgeRequired } * */ public Category.AttackerSkillsOrKnowledgeRequired createCategoryAttackerSkillsOrKnowledgeRequired() { return new Category.AttackerSkillsOrKnowledgeRequired(); } /** * Create an instance of {@link Category.RelatedWeaknesses } * */ public Category.RelatedWeaknesses createCategoryRelatedWeaknesses() { return new Category.RelatedWeaknesses(); } /** * Create an instance of {@link ContentHistory.PreviousEntryNames } * */ public ContentHistory.PreviousEntryNames createContentHistoryPreviousEntryNames() { return new ContentHistory.PreviousEntryNames(); } /** * Create an instance of {@link ContentHistory.Modifications } * */ public ContentHistory.Modifications createContentHistoryModifications() { return new ContentHistory.Modifications(); } /** * Create an instance of {@link ContentHistory.Contributions } * */ public ContentHistory.Contributions createContentHistoryContributions() { return new ContentHistory.Contributions(); } /** * Create an instance of {@link ContentHistory.Submissions } * */ public ContentHistory.Submissions createContentHistorySubmissions() { return new ContentHistory.Submissions(); } /** * Create an instance of {@link AttackPattern.TechnicalContext } * */ public AttackPattern.TechnicalContext createAttackPatternTechnicalContext() { return new AttackPattern.TechnicalContext(); } /** * Create an instance of {@link AttackPattern.RelevantDesignPatterns } * */ public AttackPattern.RelevantDesignPatterns createAttackPatternRelevantDesignPatterns() { return new AttackPattern.RelevantDesignPatterns(); } /** * Create an instance of {@link AttackPattern.RelatedVulnerabilities } * */ public AttackPattern.RelatedVulnerabilities createAttackPatternRelatedVulnerabilities() { return new AttackPattern.RelatedVulnerabilities(); } /** * Create an instance of {@link AttackPattern.RelatedWeaknesses } * */ public AttackPattern.RelatedWeaknesses createAttackPatternRelatedWeaknesses() { return new AttackPattern.RelatedWeaknesses(); } /** * Create an instance of {@link AttackPattern.ObfuscationTechniques } * */ public AttackPattern.ObfuscationTechniques createAttackPatternObfuscationTechniques() { return new AttackPattern.ObfuscationTechniques(); } /** * Create an instance of {@link AttackPattern.IndicatorsWarningsOfAttack } * */ public AttackPattern.IndicatorsWarningsOfAttack createAttackPatternIndicatorsWarningsOfAttack() { return new AttackPattern.IndicatorsWarningsOfAttack(); } /** * Create an instance of {@link AttackPattern.ProbingTechniques } * */ public AttackPattern.ProbingTechniques createAttackPatternProbingTechniques() { return new AttackPattern.ProbingTechniques(); } /** * Create an instance of {@link AttackPattern.AttackerSkillsOrKnowledgeRequired } * */ public AttackPattern.AttackerSkillsOrKnowledgeRequired createAttackPatternAttackerSkillsOrKnowledgeRequired() { return new AttackPattern.AttackerSkillsOrKnowledgeRequired(); } /** * Create an instance of {@link AttackPattern.ExamplesInstances } * */ public AttackPattern.ExamplesInstances createAttackPatternExamplesInstances() { return new AttackPattern.ExamplesInstances(); } /** * Create an instance of {@link AttackPattern.ExamplesInstances.ExampleInstance } * */ public AttackPattern.ExamplesInstances.ExampleInstance createAttackPatternExamplesInstancesExampleInstance() { return new AttackPattern.ExamplesInstances.ExampleInstance(); } /** * Create an instance of {@link TargetAttackSurfaceType } * */ public TargetAttackSurfaceType createTargetAttackSurfaceType() { return new TargetAttackSurfaceType(); } /** * Create an instance of {@link AttackPattern.Description } * */ public AttackPattern.Description createAttackPatternDescription() { return new AttackPattern.Description(); } /** * Create an instance of {@link AlternateTerms.AlternateTerm } * */ public AlternateTerms.AlternateTerm createAlternateTermsAlternateTerm() { return new AlternateTerms.AlternateTerm(); } /** * Create an instance of {@link AttackPattern.AttackPrerequisites } * */ public AttackPattern.AttackPrerequisites createAttackPatternAttackPrerequisites() { return new AttackPattern.AttackPrerequisites(); } /** * Create an instance of {@link AttackPattern.TypicalLikelihoodOfExploit } * */ public AttackPattern.TypicalLikelihoodOfExploit createAttackPatternTypicalLikelihoodOfExploit() { return new AttackPattern.TypicalLikelihoodOfExploit(); } /** * Create an instance of {@link AttackPattern.MethodsOfAttack } * */ public AttackPattern.MethodsOfAttack createAttackPatternMethodsOfAttack() { return new AttackPattern.MethodsOfAttack(); } /** * Create an instance of {@link StructuredTextType } * */ public StructuredTextType createStructuredTextType() { return new StructuredTextType(); } /** * Create an instance of {@link AttackPattern.SolutionsAndMitigations } * */ public AttackPattern.SolutionsAndMitigations createAttackPatternSolutionsAndMitigations() { return new AttackPattern.SolutionsAndMitigations(); } /** * Create an instance of {@link AttackPattern.AttackMotivationConsequences } * */ public AttackPattern.AttackMotivationConsequences createAttackPatternAttackMotivationConsequences() { return new AttackPattern.AttackMotivationConsequences(); } /** * Create an instance of {@link AttackPattern.PayloadActivationImpact } * */ public AttackPattern.PayloadActivationImpact createAttackPatternPayloadActivationImpact() { return new AttackPattern.PayloadActivationImpact(); } /** * Create an instance of {@link AttackPattern.RelatedAttackPatterns } * */ public AttackPattern.RelatedAttackPatterns createAttackPatternRelatedAttackPatterns() { return new AttackPattern.RelatedAttackPatterns(); } /** * Create an instance of {@link AttackPattern.RelevantSecurityRequirements } * */ public AttackPattern.RelevantSecurityRequirements createAttackPatternRelevantSecurityRequirements() { return new AttackPattern.RelevantSecurityRequirements(); } /** * Create an instance of {@link AttackPattern.RelevantSecurityPatterns } * */ public AttackPattern.RelevantSecurityPatterns createAttackPatternRelevantSecurityPatterns() { return new AttackPattern.RelevantSecurityPatterns(); } /** * Create an instance of {@link AttackPattern.RelatedSecurityPrinciples } * */ public AttackPattern.RelatedSecurityPrinciples createAttackPatternRelatedSecurityPrinciples() { return new AttackPattern.RelatedSecurityPrinciples(); } /** * Create an instance of {@link AttackPattern.RelatedGuidelines } * */ public AttackPattern.RelatedGuidelines createAttackPatternRelatedGuidelines() { return new AttackPattern.RelatedGuidelines(); } /** * Create an instance of {@link AttackPattern.Purposes } * */ public AttackPattern.Purposes createAttackPatternPurposes() { return new AttackPattern.Purposes(); } /** * Create an instance of {@link AttackPattern.CIAImpact } * */ public AttackPattern.CIAImpact createAttackPatternCIAImpact() { return new AttackPattern.CIAImpact(); } /** * Create an instance of {@link AttackPattern.Keywords } * */ public AttackPattern.Keywords createAttackPatternKeywords() { return new AttackPattern.Keywords(); } /** * Create an instance of {@link AttackPattern.References } * */ public AttackPattern.References createAttackPatternReferences() { return new AttackPattern.References(); } /** * Create an instance of {@link OtherNotes } * */ public OtherNotes createOtherNotes() { return new OtherNotes(); } /** * Create an instance of {@link MaintenanceNotes } * */ public MaintenanceNotes createMaintenanceNotes() { return new MaintenanceNotes(); } /** * Create an instance of {@link Category.Description } * */ public Category.Description createCategoryDescription() { return new Category.Description(); } /** * Create an instance of {@link Category.AttackPrerequisites } * */ public Category.AttackPrerequisites createCategoryAttackPrerequisites() { return new Category.AttackPrerequisites(); } /** * Create an instance of {@link Category.MethodsOfAttack } * */ public Category.MethodsOfAttack createCategoryMethodsOfAttack() { return new Category.MethodsOfAttack(); } /** * Create an instance of {@link Category.AttackMotivationConsequences } * */ public Category.AttackMotivationConsequences createCategoryAttackMotivationConsequences() { return new Category.AttackMotivationConsequences(); } /** * Create an instance of {@link Relationships } * */ public Relationships createRelationships() { return new Relationships(); } /** * Create an instance of {@link RelationshipNotes } * */ public RelationshipNotes createRelationshipNotes() { return new RelationshipNotes(); } /** * Create an instance of {@link Category.BackgroundDetails } * */ public Category.BackgroundDetails createCategoryBackgroundDetails() { return new Category.BackgroundDetails(); } /** * Create an instance of {@link ResearchGaps } * */ public ResearchGaps createResearchGaps() { return new ResearchGaps(); } /** * Create an instance of {@link ReferenceListType } * */ public ReferenceListType createReferenceListType() { return new ReferenceListType(); } /** * Create an instance of {@link AttackStepTechnique.LeveragedAttackPatterns } * */ public AttackStepTechnique.LeveragedAttackPatterns createAttackStepTechniqueLeveragedAttackPatterns() { return new AttackStepTechnique.LeveragedAttackPatterns(); } /** * Create an instance of {@link AttackPatternCatalog.Views } * */ public AttackPatternCatalog.Views createAttackPatternCatalogViews() { return new AttackPatternCatalog.Views(); } /** * Create an instance of {@link AttackPatternCatalog.Categories } * */ public AttackPatternCatalog.Categories createAttackPatternCatalogCategories() { return new AttackPatternCatalog.Categories(); } /** * Create an instance of {@link AttackPatternCatalog.AttackPatterns } * */ public AttackPatternCatalog.AttackPatterns createAttackPatternCatalogAttackPatterns() { return new AttackPatternCatalog.AttackPatterns(); } /** * Create an instance of {@link AttackPatternCatalog.CompoundElements } * */ public AttackPatternCatalog.CompoundElements createAttackPatternCatalogCompoundElements() { return new AttackPatternCatalog.CompoundElements(); } /** * Create an instance of {@link AttackPatternCatalog.Environments } * */ public AttackPatternCatalog.Environments createAttackPatternCatalogEnvironments() { return new AttackPatternCatalog.Environments(); } /** * Create an instance of {@link Environment } * */ public Environment createEnvironment() { return new Environment(); } /** * Create an instance of {@link CompoundElement.Description } * */ public CompoundElement.Description createCompoundElementDescription() { return new CompoundElement.Description(); } /** * Create an instance of {@link CompoundElement.BackgroundDetails } * */ public CompoundElement.BackgroundDetails createCompoundElementBackgroundDetails() { return new CompoundElement.BackgroundDetails(); } /** * Create an instance of {@link CommonConsequenceType } * */ public CommonConsequenceType createCommonConsequenceType() { return new CommonConsequenceType(); } /** * Create an instance of {@link ReferenceType } * */ public ReferenceType createReferenceType() { return new ReferenceType(); } /** * Create an instance of {@link CustomAttackStepType.AttackStepTechniques } * */ public CustomAttackStepType.AttackStepTechniques createCustomAttackStepTypeAttackStepTechniques() { return new CustomAttackStepType.AttackStepTechniques(); } /** * Create an instance of {@link CustomAttackStepType.SecurityControls.SecurityControl.ObservableEvidence } * */ public CustomAttackStepType.SecurityControls.SecurityControl.ObservableEvidence createCustomAttackStepTypeSecurityControlsSecurityControlObservableEvidence() { return new CustomAttackStepType.SecurityControls.SecurityControl.ObservableEvidence(); } /** * Create an instance of {@link CustomAttackStepType.Outcomes.Outcome } * */ public CustomAttackStepType.Outcomes.Outcome createCustomAttackStepTypeOutcomesOutcome() { return new CustomAttackStepType.Outcomes.Outcome(); } /** * Create an instance of {@link CustomAttackStepType.Indicators.Indicator } * */ public CustomAttackStepType.Indicators.Indicator createCustomAttackStepTypeIndicatorsIndicator() { return new CustomAttackStepType.Indicators.Indicator(); } /** * Create an instance of {@link ObservablesType.Observable.ObfuscationTechniques.ObfuscationTechnique } * */ public ObservablesType.Observable.ObfuscationTechniques.ObfuscationTechnique createObservablesTypeObservableObfuscationTechniquesObfuscationTechnique() { return new ObservablesType.Observable.ObfuscationTechniques.ObfuscationTechnique(); } /** * Create an instance of {@link ObservablesType.Observable.Signature.Event.Action.Object.Value.Delta.Frequency } * */ public ObservablesType.Observable.Signature.Event.Action.Object.Value.Delta.Frequency createObservablesTypeObservableSignatureEventActionObjectValueDeltaFrequency() { return new ObservablesType.Observable.Signature.Event.Action.Object.Value.Delta.Frequency(); } /** * Create an instance of {@link ObservablesType.Observable.Signature.StatefulMeasure.ValueType.Frequency } * */ public ObservablesType.Observable.Signature.StatefulMeasure.ValueType.Frequency createObservablesTypeObservableSignatureStatefulMeasureValueTypeFrequency() { return new ObservablesType.Observable.Signature.StatefulMeasure.ValueType.Frequency(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetedOSILayers } * */ public TargetAttackSurfaceDescriptionType.TargetedOSILayers createTargetAttackSurfaceDescriptionTypeTargetedOSILayers() { return new TargetAttackSurfaceDescriptionType.TargetedOSILayers(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetAttackSurfaceLocalities } * */ public TargetAttackSurfaceDescriptionType.TargetAttackSurfaceLocalities createTargetAttackSurfaceDescriptionTypeTargetAttackSurfaceLocalities() { return new TargetAttackSurfaceDescriptionType.TargetAttackSurfaceLocalities(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetAttackSurfaceTypes } * */ public TargetAttackSurfaceDescriptionType.TargetAttackSurfaceTypes createTargetAttackSurfaceDescriptionTypeTargetAttackSurfaceTypes() { return new TargetAttackSurfaceDescriptionType.TargetAttackSurfaceTypes(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.RelatedProtocols.RelatedProtocol } * */ public TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.RelatedProtocols.RelatedProtocol createTargetAttackSurfaceDescriptionTypeTargetFunctionalServicesTargetFunctionalServiceProtocolRelatedProtocolsRelatedProtocol() { return new TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.RelatedProtocols.RelatedProtocol(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.CommandStructures.CommandStructure } * */ public TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.CommandStructures.CommandStructure createTargetAttackSurfaceDescriptionTypeTargetFunctionalServicesTargetFunctionalServiceProtocolCommandStructuresCommandStructure() { return new TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.CommandStructures.CommandStructure(); } /** * Create an instance of {@link TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.ProtocolStructure.ProtocolHeader } * */ public TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.ProtocolStructure.ProtocolHeader createTargetAttackSurfaceDescriptionTypeTargetFunctionalServicesTargetFunctionalServiceProtocolProtocolStructureProtocolHeader() { return new TargetAttackSurfaceDescriptionType.TargetFunctionalServices.TargetFunctionalService.Protocol.ProtocolStructure.ProtocolHeader(); } /** * Create an instance of {@link Block.Images.Image } * */ public Block.Images.Image createBlockImagesImage() { return new Block.Images.Image(); } /** * Create an instance of {@link AttackPatternCatalog.CommonAttackSurfaces.CommonAttackSurface } * */ public AttackPatternCatalog.CommonAttackSurfaces.CommonAttackSurface createAttackPatternCatalogCommonAttackSurfacesCommonAttackSurface() { return new AttackPatternCatalog.CommonAttackSurfaces.CommonAttackSurface(); } /** * Create an instance of {@link AttackPatternCatalog.CommonAttackSteps.CommonAttackStep } * */ public AttackPatternCatalog.CommonAttackSteps.CommonAttackStep createAttackPatternCatalogCommonAttackStepsCommonAttackStep() { return new AttackPatternCatalog.CommonAttackSteps.CommonAttackStep(); } /** * Create an instance of {@link View.ViewAudience.Audience } * */ public View.ViewAudience.Audience createViewViewAudienceAudience() { return new View.ViewAudience.Audience(); } /** * Create an instance of {@link RelevantAttackSurfaceElementsType.RelevantFunctionalServices } * */ public RelevantAttackSurfaceElementsType.RelevantFunctionalServices createRelevantAttackSurfaceElementsTypeRelevantFunctionalServices() { return new RelevantAttackSurfaceElementsType.RelevantFunctionalServices(); } /** * Create an instance of {@link RelevantAttackSurfaceElementsType.RelevantProtocols } * */ public RelevantAttackSurfaceElementsType.RelevantProtocols createRelevantAttackSurfaceElementsTypeRelevantProtocols() { return new RelevantAttackSurfaceElementsType.RelevantProtocols(); } /** * Create an instance of {@link RelevantAttackSurfaceElementsType.RelevantProtocolHeaders } * */ public RelevantAttackSurfaceElementsType.RelevantProtocolHeaders createRelevantAttackSurfaceElementsTypeRelevantProtocolHeaders() { return new RelevantAttackSurfaceElementsType.RelevantProtocolHeaders(); } /** * Create an instance of {@link RelevantAttackSurfaceElementsType.RelevantCommandStructures } * */ public RelevantAttackSurfaceElementsType.RelevantCommandStructures createRelevantAttackSurfaceElementsTypeRelevantCommandStructures() { return new RelevantAttackSurfaceElementsType.RelevantCommandStructures(); } /** * Create an instance of {@link AttackExecutionFlow.AttackPhases.AttackPhase.AttackSteps.AttackStep.CommonAttackStep } * */ public AttackExecutionFlow.AttackPhases.AttackPhase.AttackSteps.AttackStep.CommonAttackStep createAttackExecutionFlowAttackPhasesAttackPhaseAttackStepsAttackStepCommonAttackStep() { return new AttackExecutionFlow.AttackPhases.AttackPhase.AttackSteps.AttackStep.CommonAttackStep(); } /** * Create an instance of {@link RelationshipType.RelationshipChains } * */ public RelationshipType.RelationshipChains createRelationshipTypeRelationshipChains() { return new RelationshipType.RelationshipChains(); } /** * Create an instance of {@link RelationshipType.RelationshipViews.RelationshipViewID } * */ public RelationshipType.RelationshipViews.RelationshipViewID createRelationshipTypeRelationshipViewsRelationshipViewID() { return new RelationshipType.RelationshipViews.RelationshipViewID(); } /** * Create an instance of {@link Category.AttackerSkillsOrKnowledgeRequired.AttackerSkillOrKnowledgeRequired } * */ public Category.AttackerSkillsOrKnowledgeRequired.AttackerSkillOrKnowledgeRequired createCategoryAttackerSkillsOrKnowledgeRequiredAttackerSkillOrKnowledgeRequired() { return new Category.AttackerSkillsOrKnowledgeRequired.AttackerSkillOrKnowledgeRequired(); } /** * Create an instance of {@link Category.RelatedWeaknesses.RelatedWeakness } * */ public Category.RelatedWeaknesses.RelatedWeakness createCategoryRelatedWeaknessesRelatedWeakness() { return new Category.RelatedWeaknesses.RelatedWeakness(); } /** * Create an instance of {@link ContentHistory.PreviousEntryNames.PreviousEntryName } * */ public ContentHistory.PreviousEntryNames.PreviousEntryName createContentHistoryPreviousEntryNamesPreviousEntryName() { return new ContentHistory.PreviousEntryNames.PreviousEntryName(); } /** * Create an instance of {@link ContentHistory.Modifications.Modification } * */ public ContentHistory.Modifications.Modification createContentHistoryModificationsModification() { return new ContentHistory.Modifications.Modification(); } /** * Create an instance of {@link ContentHistory.Contributions.Contribution } * */ public ContentHistory.Contributions.Contribution createContentHistoryContributionsContribution() { return new ContentHistory.Contributions.Contribution(); } /** * Create an instance of {@link ContentHistory.Submissions.Submission } * */ public ContentHistory.Submissions.Submission createContentHistorySubmissionsSubmission() { return new ContentHistory.Submissions.Submission(); } /** * Create an instance of {@link AttackPattern.TechnicalContext.ArchitecturalParadigms } * */ public AttackPattern.TechnicalContext.ArchitecturalParadigms createAttackPatternTechnicalContextArchitecturalParadigms() { return new AttackPattern.TechnicalContext.ArchitecturalParadigms(); } /** * Create an instance of {@link AttackPattern.TechnicalContext.Frameworks } * */ public AttackPattern.TechnicalContext.Frameworks createAttackPatternTechnicalContextFrameworks() { return new AttackPattern.TechnicalContext.Frameworks(); } /** * Create an instance of {@link AttackPattern.TechnicalContext.Platforms } * */ public AttackPattern.TechnicalContext.Platforms createAttackPatternTechnicalContextPlatforms() { return new AttackPattern.TechnicalContext.Platforms(); } /** * Create an instance of {@link AttackPattern.TechnicalContext.Languages } * */ public AttackPattern.TechnicalContext.Languages createAttackPatternTechnicalContextLanguages() { return new AttackPattern.TechnicalContext.Languages(); } /** * Create an instance of {@link AttackPattern.RelevantDesignPatterns.RecommendedDesignPatterns } * */ public AttackPattern.RelevantDesignPatterns.RecommendedDesignPatterns createAttackPatternRelevantDesignPatternsRecommendedDesignPatterns() { return new AttackPattern.RelevantDesignPatterns.RecommendedDesignPatterns(); } /** * Create an instance of {@link AttackPattern.RelevantDesignPatterns.NonRecommendedDesignPatterns } * */ public AttackPattern.RelevantDesignPatterns.NonRecommendedDesignPatterns createAttackPatternRelevantDesignPatternsNonRecommendedDesignPatterns() { return new AttackPattern.RelevantDesignPatterns.NonRecommendedDesignPatterns(); } /** * Create an instance of {@link AttackPattern.RelatedVulnerabilities.RelatedVulnerability } * */ public AttackPattern.RelatedVulnerabilities.RelatedVulnerability createAttackPatternRelatedVulnerabilitiesRelatedVulnerability() { return new AttackPattern.RelatedVulnerabilities.RelatedVulnerability(); } /** * Create an instance of {@link AttackPattern.RelatedWeaknesses.RelatedWeakness } * */ public AttackPattern.RelatedWeaknesses.RelatedWeakness createAttackPatternRelatedWeaknessesRelatedWeakness() { return new AttackPattern.RelatedWeaknesses.RelatedWeakness(); } /** * Create an instance of {@link AttackPattern.ObfuscationTechniques.ObfuscationTechnique } * */ public AttackPattern.ObfuscationTechniques.ObfuscationTechnique createAttackPatternObfuscationTechniquesObfuscationTechnique() { return new AttackPattern.ObfuscationTechniques.ObfuscationTechnique(); } /** * Create an instance of {@link AttackPattern.IndicatorsWarningsOfAttack.IndicatorWarningOfAttack } * */ public AttackPattern.IndicatorsWarningsOfAttack.IndicatorWarningOfAttack createAttackPatternIndicatorsWarningsOfAttackIndicatorWarningOfAttack() { return new AttackPattern.IndicatorsWarningsOfAttack.IndicatorWarningOfAttack(); } /** * Create an instance of {@link AttackPattern.ProbingTechniques.ProbingTechnique } * */ public AttackPattern.ProbingTechniques.ProbingTechnique createAttackPatternProbingTechniquesProbingTechnique() { return new AttackPattern.ProbingTechniques.ProbingTechnique(); } /** * Create an instance of {@link AttackPattern.AttackerSkillsOrKnowledgeRequired.AttackerSkillOrKnowledgeRequired } * */ public AttackPattern.AttackerSkillsOrKnowledgeRequired.AttackerSkillOrKnowledgeRequired createAttackPatternAttackerSkillsOrKnowledgeRequiredAttackerSkillOrKnowledgeRequired() { return new AttackPattern.AttackerSkillsOrKnowledgeRequired.AttackerSkillOrKnowledgeRequired(); } /** * Create an instance of {@link AttackPattern.ExamplesInstances.ExampleInstance.ExampleInstanceRelatedVulnerabilities } * */ public AttackPattern.ExamplesInstances.ExampleInstance.ExampleInstanceRelatedVulnerabilities createAttackPatternExamplesInstancesExampleInstanceExampleInstanceRelatedVulnerabilities() { return new AttackPattern.ExamplesInstances.ExampleInstance.ExampleInstanceRelatedVulnerabilities(); } /** * Create an instance of {@link TargetAttackSurfaceType.CommonAttackSurfaceDescription } * */ public TargetAttackSurfaceType.CommonAttackSurfaceDescription createTargetAttackSurfaceTypeCommonAttackSurfaceDescription() { return new TargetAttackSurfaceType.CommonAttackSurfaceDescription(); } /** * Create an instance of {@link JAXBElement }{@code <}{@link Block.Images }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Images", scope = Block.class) public JAXBElement createBlockImages(Block.Images value) { return new JAXBElement(_BlockImages_QNAME, Block.Images.class, Block.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Comment", scope = Block.class) public JAXBElement createBlockComment(String value) { return new JAXBElement(_BlockComment_QNAME, String.class, Block.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Text_Title", scope = Block.class) public JAXBElement createBlockTextTitle(String value) { return new JAXBElement(_BlockTextTitle_QNAME, String.class, Block.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Code", scope = Block.class) public JAXBElement createBlockCode(String value) { return new JAXBElement(_BlockCode_QNAME, String.class, Block.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Text", scope = Block.class) public JAXBElement createBlockText(String value) { return new JAXBElement(_BlockText_QNAME, String.class, Block.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Code_Example_Language", scope = Block.class) public JAXBElement createBlockCodeExampleLanguage(String value) { return new JAXBElement(_BlockCodeExampleLanguage_QNAME, String.class, Block.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link Block.Images }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Images", scope = StructuredTextType.class) public JAXBElement createStructuredTextTypeImages( Block.Images value) { return new JAXBElement(_BlockImages_QNAME, Block.Images.class, StructuredTextType.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Comment", scope = StructuredTextType.class) public JAXBElement createStructuredTextTypeComment(String value) { return new JAXBElement(_BlockComment_QNAME, String.class, StructuredTextType.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Text_Title", scope = StructuredTextType.class) public JAXBElement createStructuredTextTypeTextTitle(String value) { return new JAXBElement(_BlockTextTitle_QNAME, String.class, StructuredTextType.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Code", scope = StructuredTextType.class) public JAXBElement createStructuredTextTypeCode(String value) { return new JAXBElement(_BlockCode_QNAME, String.class, StructuredTextType.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Text", scope = StructuredTextType.class) public JAXBElement createStructuredTextTypeText(String value) { return new JAXBElement(_BlockText_QNAME, String.class, StructuredTextType.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Code_Example_Language", scope = StructuredTextType.class) public JAXBElement createStructuredTextTypeCodeExampleLanguage( String value) { return new JAXBElement(_BlockCodeExampleLanguage_QNAME, String.class, StructuredTextType.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Image_Title", scope = Block.Images.Image.class) public JAXBElement createBlockImagesImageImageTitle(String value) { return new JAXBElement(_BlockImagesImageImageTitle_QNAME, String.class, Block.Images.Image.class, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://capec.mitre.org/capec-2", name = "Image_Location", scope = Block.Images.Image.class) public JAXBElement createBlockImagesImageImageLocation(String value) { return new JAXBElement(_BlockImagesImageImageLocation_QNAME, String.class, Block.Images.Image.class, value); } /** * Returns A Document representation of this instance that is not formatted. * * @return The Document representation for this instance. */ public org.w3c.dom.Document toDocument() { return toDocument(false); } /** * Returns A Document representation for this instance. * * @param prettyPrint * True for pretty print, otherwise false * * @return The Document representation for this instance. */ public org.w3c.dom.Document toDocument(boolean prettyPrint) { return DocumentUtilities.toDocument(toJAXBElement(), prettyPrint); } /** * Returns JAXBElement for this instance. * * @return The JAXBElement for this instance. */ @SuppressWarnings({ "rawtypes", "unchecked" }) public JAXBElement toJAXBElement() { QName qualifiedName = STIXSchema.getQualifiedName(this); return new JAXBElement(qualifiedName, ObjectFactory.class, this); } /** * Returns String representation of this instance that is not formatted. * * @return The String containing the XML mark-up. */ public String toXMLString() { return toXMLString(false); } /** * Returns XML String for JAXB Document Object Model object. * * @param prettyPrint * True for pretty print, otherwise false * * @return The String containing the XML mark-up. */ public String toXMLString(boolean prettyPrint) { return DocumentUtilities.toXMLString(toDocument(), prettyPrint); } /** * Creates ObjectFactory instance for XML String * * @param text * XML String for the document * @return The ObjectFactory instance for the passed XML String */ public static ObjectFactory fromXMLString(String text) { JAXBContext jaxbContext; try { jaxbContext = JAXBContext.newInstance(ObjectFactory.class .getPackage().getName()); Unmarshaller unmarshaller = jaxbContext.createUnmarshaller(); unmarshaller.setSchema(STIXSchema.getInstance().getSchema()); unmarshaller.setEventHandler(new ValidationEventHandler()); StreamSource streamSource = new StreamSource(new StringReader(text)); return (ObjectFactory) unmarshaller.unmarshal(streamSource); } catch (JAXBException e) { throw new RuntimeException(e); } } /** * Validates the XML representation of this ObjectFactory instance * Returning true indicating a successful validation, false if not. * * @return boolean True If it validates against the schema * @throws SAXException * If the a validation ErrorHandler has not been set, and * validation throws a SAXException */ public boolean validate() throws SAXException { return STIXSchema.getInstance().validate(toXMLString()); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy