com.cysols.iodef.element
Class NSIODEFElementCreator

java.lang.Object
  extended by com.cysols.iodef.ElementCreator
      extended by com.cysols.iodef.element.IODEFElementCreator
          extended by com.cysols.iodef.element.NSIODEFElementCreator
All Implemented Interfaces:
IODEFElementConstants

public class NSIODEFElementCreator
extends IODEFElementCreator

Extends the ElementCreator class, Create the element class indicated xml element, this class handles name spece.

Author:
cysol

Field Summary
 
Fields inherited from interface com.cysols.iodef.element.IODEFElementConstants
ADDITIONALDATA_ELE, ADDRCAT_ATT, ADDRESS_ELE, ALTERNATIVEID_ELE, ANALYZERID_ATT, APPID_ATT, APPLICATION_ELE, ARG_S_ELE, ASSESSMENT_ELE, CATEGORY_ATT, CLASS_ATT, CLASSIFICATION_ELE, COMPLETION_ATT, CONFIDENCE_ELE, CONFIGID_ATT, CONTACT_ELE, CONTACTROLE_ATT, CONTACTTYPE_ATT, COUNTER_ELE, COUNTERTYPE_ATT, CURRENCY_ATT, DATETIME_ELE, DESCRIPTION_ELE, DETECTTIME_ELE, DTYPE_ATT, EMAIL_ELE, ENDTIME_ELE, ENV_S_ELE, EVENTDATA_ELE, EXPECTATION_ELE, EXPECTCAT_ATT, FAX_ELE, FILECAT_ATT, FLOW_ELE, FORMAT_ATT, HISTORY_ELE, HISTORYCAT_ATT, HISTORYITEM_ELE, IDENT_ATT, IMPACT_ELE, IMPACTTYPE_ATT, INCIDENT_ELE, INCIDENTID_ELE, INTERFACE_ATT, IODEF_ELE, IP_PROTOCOL_ATT, IP_VERSION_ATT, ISSUER_ATT, LANG_ATT, LOCATION_ELE, MANUFACTURER_ATT, MEANING_ATT, METHOD_ELE, METRIC_ATT, MODEL_ATT, MONETARYIMPACT_ELE, NAME_ATT, NAME_S_ELE, NODE_ELE, NODEROLE_ELE, NODEROLECAT_ATT, OPERATINGSYSTEM_ELE, ORIGIN_ATT, OSTYPE_ATT, OSVERSION_ATT, PATCH_ATT, PATH_S_ELE, PID_S_ELE, PORT_S_ELE, PORTLIST_S_ELE, POSTALADDRESS_ELE, PRESERVE_ATT, PRIORITY_ATT, PROCESS_ELE, PURPOSE_ATT, RATING_ATT, RECORD_ELE, RECORDDATA_ELE, RECORDITEM_ELE, REGISTRYHANDLE_ELE, REGISTRYTYPE_ATT, RELATEDACTIVITY_ELE, REPORTTIME_ELE, RESTRICTION_ATT, SERVICE_ELE, SEVERITY_ATT, SPOOFED_ATT, STARTTIME_ELE, SYSTEM_ELE, SYSTEMCAT_ATT, TELEPHONE_ELE, TIMEIMPACT_ELE, TIMEZONE_ELE, TRANSFORM_ATT, UNIT_ATT, URL_S_ELE, VENDOR_ATT, VERSION_ATT, VLAN_NAME_ATT, VLAN_NUM_ATT
 
Constructor Summary
NSIODEFElementCreator()
          Default constractor.
NSIODEFElementCreator(String namespaceuri)
          Sets the namespace uri.
NSIODEFElementCreator(String prefix, String namespaceuri)
          Sets the namespace uri.
 
Method Summary
 IElement create(String name)
          Creates an element of the type specified.
 AdditionalData createAdditionalData()
          Creates a new instance which represents AdditionalData node.
 Address createAddress()
          Creates a new instance which represents Address node.
 AlternativeID createAlternativeID()
          Creates a new instance which represents AlternativeID node.
 Application createApplication()
          Creates a new instance which represents Application node.
 Assessment createAssessment()
          Creates a new instance which represents Assessment node.
 IAttribute createAttribute(String name)
          Creates an attribute of the type specified.
 Classification createClassification()
          Creates a new instance which represents Classification node.
 Contact createContact()
          Creates a new instance which represents Contact node.
protected  Attr createDomAttr(Document doc, IAttribute ia)
           
 EventData createEventData()
          Creates a new instance which represents EventData node.
 Expectation createExpectation()
          Creates a new instance which represents Expectation node.
 Flow createFlow()
          Creates a new instance which represents Flow node.
 History createHistory()
          Creates a new instance which represents History node.
 HistoryItem createHistoryItem()
          Creates a new instance which represents HistoryItem node.
 Impact createImpact()
          Creates a new instance which represents Impact node.
 Incident createIncident()
          Creates a new instance which represents Incident node.
 IODEFDocument createIODEFDocument()
          Creates a new instance which represents IODEF-Document document.
 Method createMethod()
          Creates a new instance which represents Method node.
 Node createNode()
          Creates a new instance which represents Node node.
 OperatingSystem createOperatingSystem()
          Creates a new instance which represents OperatingSystem node.
 Process createProcess()
          Creates a new instance which represents Process node.
 Record createRecord()
          Creates a new instance which represents Record node.
 RecordData createRecordData()
          Creates a new instance which represents RecordData node.
 RelatedActivity createRelatedActivity()
          Creates a new instance which represents RelatedActivity node.
 Service createService()
          Creates a new instance which represents Service node.
 System createSystem()
          Creates a new instance which represents System node.
protected  Element getDomElement(Document doc, IElement ie)
           
protected  IElement replace(Node node)
          Replaces a dom node with namespace to an elemnet class.
 
Methods inherited from class com.cysols.iodef.ElementCreator
createDomElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NSIODEFElementCreator

public NSIODEFElementCreator()
Default constractor.


NSIODEFElementCreator

public NSIODEFElementCreator(String namespaceuri)
Sets the namespace uri.

Parameters:
namespaceuri - name sapce uri

NSIODEFElementCreator

public NSIODEFElementCreator(String prefix,
                             String namespaceuri)
Sets the namespace uri.

Parameters:
prefix - The namespace prefix using RID nodes.
namespaceuri - uri The namesapce uri using RID nodes.
Method Detail

createAttribute

public IAttribute createAttribute(String name)
Description copied from class: ElementCreator
Creates an attribute of the type specified.

Overrides:
createAttribute in class ElementCreator
Parameters:
name - The name of the attribute type to instantiate.
Returns:
The attribute class indicated by specified name.

getDomElement

protected Element getDomElement(Document doc,
                                IElement ie)
Overrides:
getDomElement in class ElementCreator

createDomAttr

protected Attr createDomAttr(Document doc,
                             IAttribute ia)
Overrides:
createDomAttr in class ElementCreator

create

public IElement create(String name)
Creates an element of the type specified. Note that the instance returned extends the IElement class,

Overrides:
create in class IODEFElementCreator
Parameters:
name - The name of the element type to instantiate.
Returns:
The element class indicated by specified name.

replace

protected IElement replace(Node node)
Replaces a dom node with namespace to an elemnet class.

Overrides:
replace in class ElementCreator
Parameters:
node - dom element instance.
Returns:
replaced element indicated to dom node.

createIODEFDocument

public IODEFDocument createIODEFDocument()
Creates a new instance which represents IODEF-Document document.

Overrides:
createIODEFDocument in class IODEFElementCreator
Returns:
a new instance which represents IODEF-Document document

createAdditionalData

public AdditionalData createAdditionalData()
Creates a new instance which represents AdditionalData node.

Overrides:
createAdditionalData in class IODEFElementCreator
Returns:
a new instance which represents AdditionalData node

createAddress

public Address createAddress()
Creates a new instance which represents Address node.

Overrides:
createAddress in class IODEFElementCreator
Returns:
a new instance which represents Address node

createAlternativeID

public AlternativeID createAlternativeID()
Creates a new instance which represents AlternativeID node.

Overrides:
createAlternativeID in class IODEFElementCreator
Returns:
a new instance which represents AlternativeID node

createApplication

public Application createApplication()
Creates a new instance which represents Application node.

Overrides:
createApplication in class IODEFElementCreator
Returns:
a new instance which represents Application node

createAssessment

public Assessment createAssessment()
Creates a new instance which represents Assessment node.

Overrides:
createAssessment in class IODEFElementCreator
Returns:
a new instance which represents Assessment node

createClassification

public Classification createClassification()
Creates a new instance which represents Classification node.

Overrides:
createClassification in class IODEFElementCreator
Returns:
a new instance which represents Classification node

createContact

public Contact createContact()
Creates a new instance which represents Contact node.

Overrides:
createContact in class IODEFElementCreator
Returns:
a new instance which represents Contact node

createEventData

public EventData createEventData()
Creates a new instance which represents EventData node.

Overrides:
createEventData in class IODEFElementCreator
Returns:
a new instance which represents EventData node

createExpectation

public Expectation createExpectation()
Creates a new instance which represents Expectation node.

Overrides:
createExpectation in class IODEFElementCreator
Returns:
a new instance which represents Expectation node

createFlow

public Flow createFlow()
Creates a new instance which represents Flow node.

Overrides:
createFlow in class IODEFElementCreator
Returns:
a new instance which represents Flow node

createHistory

public History createHistory()
Creates a new instance which represents History node.

Overrides:
createHistory in class IODEFElementCreator
Returns:
a new instance which represents History node

createHistoryItem

public HistoryItem createHistoryItem()
Creates a new instance which represents HistoryItem node.

Overrides:
createHistoryItem in class IODEFElementCreator
Returns:
a new instance which represents HistoryItem node

createIncident

public Incident createIncident()
Creates a new instance which represents Incident node.

Overrides:
createIncident in class IODEFElementCreator
Returns:
a new instance which represents Incident node

createMethod

public Method createMethod()
Creates a new instance which represents Method node.

Overrides:
createMethod in class IODEFElementCreator
Returns:
a new instance which represents Method node

createNode

public Node createNode()
Creates a new instance which represents Node node.

Overrides:
createNode in class IODEFElementCreator
Returns:
a new instance which represents Node node

createOperatingSystem

public OperatingSystem createOperatingSystem()
Creates a new instance which represents OperatingSystem node.

Overrides:
createOperatingSystem in class IODEFElementCreator
Returns:
a new instance which represents OperatingSystem node

createProcess

public Process createProcess()
Creates a new instance which represents Process node.

Overrides:
createProcess in class IODEFElementCreator
Returns:
a new instance which represents Process node

createRecord

public Record createRecord()
Creates a new instance which represents Record node.

Overrides:
createRecord in class IODEFElementCreator
Returns:
a new instance which represents Record node

createRecordData

public RecordData createRecordData()
Creates a new instance which represents RecordData node.

Overrides:
createRecordData in class IODEFElementCreator
Returns:
a new instance which represents RecordData node

createRelatedActivity

public RelatedActivity createRelatedActivity()
Creates a new instance which represents RelatedActivity node.

Overrides:
createRelatedActivity in class IODEFElementCreator
Returns:
a new instance which represents RelatedActivity node

createService

public Service createService()
Creates a new instance which represents Service node.

Overrides:
createService in class IODEFElementCreator
Returns:
a new instance which represents Service node

createSystem

public System createSystem()
Creates a new instance which represents System node.

Overrides:
createSystem in class IODEFElementCreator
Returns:
a new instance which represents System node

createImpact

public Impact createImpact()
Creates a new instance which represents Impact node.

Overrides:
createImpact in class IODEFElementCreator
Returns:
a new instance which represents Impact node