org.jboss.dna.connector.federation.contribution
Class PlaceholderContribution
java.lang.Object
org.jboss.dna.connector.federation.contribution.Contribution
org.jboss.dna.connector.federation.contribution.NonEmptyContribution
org.jboss.dna.connector.federation.contribution.MultiChildContribution
org.jboss.dna.connector.federation.contribution.PlaceholderContribution
- All Implemented Interfaces:
- Serializable
@Immutable
public class PlaceholderContribution
- extends MultiChildContribution
A placeholder contribution needed because of a source's contribution below the specified children.
- Author:
- Randall Hauch
- See Also:
- Serialized Form
Method Summary |
boolean |
isPlaceholder()
Determine whether this contribution is considered a placeholder necessary solely because the same source has contributions
at or below the children. |
Methods inherited from class org.jboss.dna.connector.federation.contribution.Contribution |
create, create, create, create, create, createPlaceholder, createPlaceholder, getExpirationTimeInUtc, getProperties, getProperty, getPropertyCount, getSourceName, isEmpty, isExpired, toString |
PlaceholderContribution
public PlaceholderContribution(String sourceName,
Location locationInSource,
DateTime expirationTime,
Iterable<Location> children)
- Create a contribution of children from the source with the supplied name.
- Parameters:
sourceName
- the name of the source, 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 timechildren
- the children from the source; may not be null or empty
isPlaceholder
public boolean isPlaceholder()
- Determine whether this contribution is considered a placeholder necessary solely because the same source has contributions
at or below the children.
- Overrides:
isPlaceholder
in class Contribution
- Returns:
- true if a placeholder contribution, or false otherwise
- See Also:
Contribution.isPlaceholder()
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.