org.jboss.dna.connector.federation.contribution
Class MultiPropertyContribution
java.lang.Object
org.jboss.dna.connector.federation.contribution.Contribution
org.jboss.dna.connector.federation.contribution.NonEmptyContribution
org.jboss.dna.connector.federation.contribution.MultiPropertyContribution
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- NodeContribution
@Immutable
public class MultiPropertyContribution
- extends NonEmptyContribution
The record of a source contributing only properties to a node.
- Author:
- Randall Hauch
- See Also:
- Serialized Form
|
Field Summary |
protected Map<org.jboss.dna.graph.properties.Name,org.jboss.dna.graph.properties.Property> |
properties
|
|
Constructor Summary |
MultiPropertyContribution(String sourceName,
org.jboss.dna.graph.properties.Path pathInSource,
org.jboss.dna.graph.properties.DateTime expirationTime,
Iterable<org.jboss.dna.graph.properties.Property> properties)
Create a contribution of node properties from the source with the supplied name. |
|
Method Summary |
Iterator<org.jboss.dna.graph.properties.Property> |
getProperties()
Get the properties that are in this contribution. |
org.jboss.dna.graph.properties.Property |
getProperty(org.jboss.dna.graph.properties.Name name)
Get the contributed property with the supplied name. |
int |
getPropertyCount()
Get the number of properties that are in this contribution. |
| Methods inherited from class org.jboss.dna.connector.federation.contribution.Contribution |
create, create, create, create, create, createPlaceholder, createPlaceholder, getChildren, getChildrenCount, getExpirationTimeInUtc, getSourceName, isEmpty, isExpired, isPlaceholder, toString |
properties
protected final Map<org.jboss.dna.graph.properties.Name,org.jboss.dna.graph.properties.Property> properties
MultiPropertyContribution
public MultiPropertyContribution(String sourceName,
org.jboss.dna.graph.properties.Path pathInSource,
org.jboss.dna.graph.properties.DateTime expirationTime,
Iterable<org.jboss.dna.graph.properties.Property> properties)
- Create a contribution of node properties from the source with the supplied name.
- Parameters:
sourceName - the name of the source, which may not be null or blankpathInSource - the path 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 null
getProperties
public Iterator<org.jboss.dna.graph.properties.Property> getProperties()
- Get the properties that are in this contribution. This resulting iterator does not support
removal.
- Overrides:
getProperties in class Contribution
- Returns:
- the properties; never null
- See Also:
Contribution.getProperties()
getPropertyCount
public int getPropertyCount()
- Get the number of properties that are in this contribution.
- Overrides:
getPropertyCount in class Contribution
- Returns:
- the number of properties
- See Also:
Contribution.getPropertyCount()
getProperty
public org.jboss.dna.graph.properties.Property getProperty(org.jboss.dna.graph.properties.Name name)
- Get the contributed property with the supplied name.
- Overrides:
getProperty in class Contribution
- Parameters:
name - the name of the property
- Returns:
- the contributed property that matches the name, or null if no such property is in the contribution
- See Also:
Contribution.getProperty(org.jboss.dna.graph.properties.Name)
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.