com.kuka.roboticsAPI.controllerModel.sunrise.xml
Class XmlSPRFactory

java.lang.Object
  extended by com.kuka.roboticsAPI.controllerModel.sunrise.xml.AbstractDirectoryFactory<XmlSPR>
      extended by com.kuka.roboticsAPI.controllerModel.sunrise.xml.XmlSPRFactory

public final class XmlSPRFactory
extends AbstractDirectoryFactory<XmlSPR>

Can load SPRs from the file system and return them if needed.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Constructor Summary
XmlSPRFactory(RoboticsAPIContext context)
          Creates a new factory.
 
Method Summary
protected  XmlSPR createItem(Node node)
          Creates an items of the factory out of the given document.
protected  String getItemName(XmlSPR item)
          Gets the name of the given item.
protected  String[] getItemNames()
          Gets the tag names to which this factory can create items.
 
Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.xml.AbstractDirectoryFactory
dispose, fromName, loadedItems, loadFromDirectory, loadFromFile, loadFromResource, loadFromURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSPRFactory

public XmlSPRFactory(RoboticsAPIContext context)
Creates a new factory.

Parameters:
context - The context of this module.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.
Method Detail

createItem

protected XmlSPR createItem(Node node)
Description copied from class: AbstractDirectoryFactory
Creates an items of the factory out of the given document.

Specified by:
createItem in class AbstractDirectoryFactory<XmlSPR>
Parameters:
node - The node which contains the icons.
Returns:
The created item.

getItemName

protected String getItemName(XmlSPR item)
Description copied from class: AbstractDirectoryFactory
Gets the name of the given item.

Specified by:
getItemName in class AbstractDirectoryFactory<XmlSPR>
Parameters:
item - The item.
Returns:
the name of the item.

getItemNames

protected String[] getItemNames()
Description copied from class: AbstractDirectoryFactory
Gets the tag names to which this factory can create items.

Specified by:
getItemNames in class AbstractDirectoryFactory<XmlSPR>
Returns:
The names.


Copyright © 2019. All rights reserved.