Package org.apache.cayenne.configuration
Class DataChannelDescriptor
java.lang.Object
org.apache.cayenne.configuration.DataChannelDescriptor
- All Implemented Interfaces:
- Serializable,- ConfigurationNode,- XMLSerializable
public class DataChannelDescriptor extends Object implements ConfigurationNode, Serializable, XMLSerializable
A descriptor of a DataChannel normally loaded from XML configuration.
- Since:
- 3.1
- See Also:
- Serialized Form
- 
Field SummaryFields Modifier and Type Field Description protected ResourceconfigurationSourceprotected Collection<DataMap>dataMapsprotected StringdefaultNodeNameprotected Stringnameprotected Collection<DataNodeDescriptor>nodeDescriptorsprotected Map<String,String>propertiesstatic StringSCHEMA_XSDThe namespace in which the data map XML file will be created.static StringSCHEMA_XSD_LOCATION
- 
Constructor SummaryConstructors Constructor Description DataChannelDescriptor()
- 
Method SummaryModifier and Type Method Description <T> TacceptVisitor(ConfigurationNodeVisitor<T> visitor)voidencodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate)Prints itself as XML to the provided XMLEncoder.ResourcegetConfigurationSource()DataMapgetDataMap(String name)Collection<DataMap>getDataMaps()StringgetDefaultNodeName()Returns the name of the DataNode that should be used as the default if a DataMap is not explicitly linked to a node.StringgetName()DataNodeDescriptorgetNodeDescriptor(String name)Collection<DataNodeDescriptor>getNodeDescriptors()Map<String,String>getProperties()voidsetConfigurationSource(Resource configurationSource)voidsetDefaultNodeName(String defaultDataNodeName)voidsetName(String name)
- 
Field Details- 
SCHEMA_XSDThe namespace in which the data map XML file will be created.- See Also:
- Constant Field Values
 
- 
SCHEMA_XSD_LOCATION- See Also:
- Constant Field Values
 
- 
name
- 
properties
- 
dataMaps
- 
nodeDescriptors
- 
configurationSource
- 
defaultNodeName
 
- 
- 
Constructor Details- 
DataChannelDescriptorpublic DataChannelDescriptor()
 
- 
- 
Method Details- 
encodeAsXMLDescription copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
- encodeAsXMLin interface- XMLSerializable
 
- 
acceptVisitor- Specified by:
- acceptVisitorin interface- ConfigurationNode
 
- 
getName
- 
setName
- 
getProperties
- 
getDataMaps
- 
getDataMap
- 
getNodeDescriptors
- 
getNodeDescriptor
- 
getConfigurationSource
- 
setConfigurationSource
- 
getDefaultNodeNameReturns the name of the DataNode that should be used as the default if a DataMap is not explicitly linked to a node.
- 
setDefaultNodeName
 
-