|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.connector.federation.contribution.Contribution org.jboss.dna.connector.federation.contribution.EmptyContribution
@Immutable public class EmptyContribution
A source contribution that is empty. In other words, the source has no contribution to make.
Note that this is different than an unknown contribution, which may occur when a source is added to a federated repository after the contributions have already been determined for nodes. In this case, the new source's contribution for a node is not known and must be determined.
Constructor Summary | |
---|---|
EmptyContribution(String sourceName,
String workspaceName,
DateTime expirationTime)
Create a contribution for the source with the supplied name. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
This implementation only compares the |
Location |
getLocationInSource()
Get the source-specific location of this information. |
boolean |
isEmpty()
Return whether this contribution is an empty contribution. |
Methods inherited from class org.jboss.dna.connector.federation.contribution.Contribution |
---|
create, create, create, create, create, createPlaceholder, createPlaceholder, getChildren, getChildrenCount, getExpirationTimeInUtc, getProperties, getProperty, getPropertyCount, getSourceName, getWorkspaceName, hashCode, isExpired, isPlaceholder, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmptyContribution(String sourceName, String workspaceName, DateTime expirationTime)
sourceName
- the name of the source, which may not be null or blankworkspaceName
- the name of the workspace, which may not be null or blankexpirationTime
- the time (in UTC) after which this contribution should be considered expired, or null if there is no
expiration timeMethod Detail |
---|
public Location getLocationInSource()
getLocationInSource
in class Contribution
EmptyContribution
Contribution.getLocationInSource()
public boolean isEmpty()
isEmpty
in class Contribution
Contribution.isEmpty()
public boolean equals(Object obj)
This implementation only compares the source name
.
equals
in class Contribution
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |