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 Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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_XSD
The 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
-
DataChannelDescriptor
public DataChannelDescriptor()
-
-
Method Details
-
encodeAsXML
Description copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXMLin interfaceXMLSerializable
-
acceptVisitor
- Specified by:
acceptVisitorin interfaceConfigurationNode
-
getName
-
setName
-
getProperties
-
getDataMaps
-
getDataMap
-
getNodeDescriptors
-
getNodeDescriptor
-
getConfigurationSource
-
setConfigurationSource
-
getDefaultNodeName
Returns the name of the DataNode that should be used as the default if a DataMap is not explicitly linked to a node. -
setDefaultNodeName
-