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:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Resourceprotected Collection<DataMap>protected Stringprotected Stringprotected Collection<DataNodeDescriptor>static final StringThe namespace in which the data map XML file will be created.static final String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T> TacceptVisitor(ConfigurationNodeVisitor<T> visitor) voidencodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate) Prints itself as XML to the provided XMLEncoder.getDataMap(String name) Returns the name of the DataNode that should be used as the default if a DataMap is not explicitly linked to a node.getName()getNodeDescriptor(String name) voidsetConfigurationSource(Resource configurationSource) voidsetDefaultNodeName(String defaultDataNodeName) void
- 
Field Details- 
SCHEMA_XSDThe namespace in which the data map XML file will be created.- See Also:
 
- 
SCHEMA_XSD_LOCATION- See Also:
 
- 
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
 
-