|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.mdm.repository.PortStatus
A class for indicating the port status. In addition, it defines constants for the port status.
| Field Summary | |
static int |
BLOCKED
Indicates the port has been block because of a structural exception and PortProperties.isBlockOnStructuralException() is
true. |
static int |
EMPTY
Indicates no data and no exception. |
static int |
HAS_DATA
Indicates the port has one or more file in the ready status. |
static int |
HAS_EXCEPTION
Indicates the port has some kind of exception. |
static int |
HAS_READY
Deprecated. replaced by HAS_DATA |
static int |
LOCKED
Indicates the port has been lock. |
static int |
NONE
Deprecated. replaced by EMPTY |
| Constructor Summary | |
PortStatus(PortId portId,
int status)
Constructor with the specified port status. |
|
| Method Summary | |
int |
getHasDataCount()
Returns the count for "has data". |
int |
getImportExceptionCount()
Returns the count for "import exception". |
PortId |
getPortId()
Returns the port Id. |
int |
getStructuralExceptionCount()
Returns the count for "structural exception". |
int |
getValueExceptionCount()
Returns the count for "value exception". |
boolean |
hasData()
Returns true if the port has data, otherwise
false. |
boolean |
hasException()
Returns true if the port has at least one exception,
otherwise false. |
boolean |
isBlocked()
Returns true if the port is blocked (there is a structural
exception and PortProperties.isBlockOnStructuralException() is
true) , otherwise false. |
boolean |
isEmpty()
Returns true if the port has no data, no exception and is
not blocked, otherwise false. |
boolean |
isLocked()
Returns true if the port is locked, otherwise
false. |
void |
setHasDataCount(int hasDataCount)
Sets the count for "has data". |
void |
setImportExceptionCount(int importExceptionCount)
Sets the count for "import exception". |
void |
setStructuralExceptionCount(int structuralExceptionCount)
Sets the count for "structural exception". |
void |
setValueExceptionCount(int valueExceptionCount)
Sets the count for the "value exception". |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NONE
EMPTY
public static final int EMPTY
public static final int HAS_READY
HAS_DATA
public static final int HAS_DATA
public static final int HAS_EXCEPTION
public static final int BLOCKED
PortProperties.isBlockOnStructuralException() is
true.
public static final int LOCKED
| Constructor Detail |
public PortStatus(PortId portId,
int status)
status - port status| Method Detail |
public PortId getPortId()
public boolean isEmpty()
true if the port has no data, no exception and is
not blocked, otherwise false.
true if port is empty, otherwise falsepublic boolean hasData()
true if the port has data, otherwise
false.
true if the port has data, otherwise
falsepublic boolean hasException()
true if the port has at least one exception,
otherwise false.
true if the port has at least one exception,
otherwise false.public boolean isBlocked()
true if the port is blocked (there is a structural
exception and PortProperties.isBlockOnStructuralException() is
true) , otherwise false.
true if the port is blocked is true,
otherwise falsepublic boolean isLocked()
true if the port is locked, otherwise
false.
true if the port is locked, otherwise
falsepublic int getHasDataCount()
public void setHasDataCount(int hasDataCount)
hasDataCount - a countpublic int getStructuralExceptionCount()
public void setStructuralExceptionCount(int structuralExceptionCount)
structuralExceptionCount - a countpublic int getValueExceptionCount()
public void setValueExceptionCount(int valueExceptionCount)
valueExceptionCount - a countpublic int getImportExceptionCount()
public void setImportExceptionCount(int importExceptionCount)
importExceptionCount - a count
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright 2004-2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.