return NodeConfiguration.class;
}
public NodeConfiguration read(XMLStreamReader reader) throws ContributionReadException, XMLStreamException {
NodeConfiguration node = null;
ContributionConfiguration contribution = null;
DeploymentComposite composite = null;
BindingConfiguration binding = null;
// Skip to end element
while (true) {
int event = reader.getEventType();
switch (event) {
case XMLStreamConstants.START_ELEMENT:
QName name = reader.getName();
if (NODE.equals(name)) {
node = nodeConfigurationFactory.createNodeConfiguration();
node.setURI(reader.getAttributeValue(null, "uri"));
node.setDomainURI(reader.getAttributeValue(null, "domain"));
} else if (CONTRIBUTION.equals(name)) {
contribution = nodeConfigurationFactory.createContributionConfiguration();
contribution.setURI(reader.getAttributeValue(null, "uri"));
contribution.setLocation(reader.getAttributeValue(null, "location"));
node.getContributions().add(contribution);
} else if (BINDING.equals(name)) {
binding = nodeConfigurationFactory.createBindingConfiguration();
binding.setBindingType(getQName(reader, "name"));
String baseURIs = reader.getAttributeValue(null, "baseURIs");
if (baseURIs != null) {
StringTokenizer tokenizer = new StringTokenizer(baseURIs);
while (tokenizer.hasMoreTokens()) {
binding.getBaseURIs().add(tokenizer.nextToken());
}
}
node.getBindings().add(binding);
} else if (DEPLOYMENT_COMPOSITE.equals(name)) {
composite = nodeConfigurationFactory.createDeploymentComposite();
composite.setLocation(reader.getAttributeValue(null, "location"));
if (contribution != null) {
contribution.getDeploymentComposites().add(composite);