org.jboss.dna.connector.federation.contribution
Class NodeContribution
java.lang.Object
org.jboss.dna.connector.federation.contribution.Contribution
org.jboss.dna.connector.federation.contribution.NonEmptyContribution
org.jboss.dna.connector.federation.contribution.MultiPropertyContribution
org.jboss.dna.connector.federation.contribution.NodeContribution
- All Implemented Interfaces:
- Serializable
@Immutable
public class NodeContribution
- extends MultiPropertyContribution
The contribution of a source to the information for a single federated node.
- Author:
- Randall Hauch
- See Also:
- Serialized Form
Methods inherited from class org.jboss.dna.connector.federation.contribution.Contribution |
create, create, create, create, create, createPlaceholder, createPlaceholder, getExpirationTimeInUtc, getSourceName, getWorkspaceName, isEmpty, isExpired, isPlaceholder, toString |
NodeContribution
public NodeContribution(String sourceName,
String workspaceName,
Location locationInSource,
DateTime expirationTime,
Iterable<Property> properties,
Iterable<Location> children)
- Create a contribution of node properties and children from the source with the supplied name.
- Parameters:
sourceName
- the name of the source, which may not be null or blankworkspaceName
- the name of the workspace, which may not be null or blanklocationInSource
- the location in the source for this contributed information; may not be nullexpirationTime
- the time (in UTC) after which this contribution should be considered expired, or null if there is no
expiration timeproperties
- the properties from the source; may not be nullchildren
- the children from the source; may not be null or empty
getChildren
public Iterator<Location> getChildren()
- Get the children that make up this contribution. This resulting iterator does not support
removal
.
- Overrides:
getChildren
in class Contribution
- Returns:
- the children; never null
- See Also:
Contribution.getChildren()
getChildrenCount
public int getChildrenCount()
- Get the number of children that make up this contribution.
- Overrides:
getChildrenCount
in class Contribution
- Returns:
- the number of children
- See Also:
Contribution.getChildrenCount()
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.