com.sap.netweaver.bc.rf.common.property

Class PropertyFlags

java.lang.Object
  extended bycom.sap.netweaver.bc.rf.common.property.PropertyFlags

public final class PropertyFlags
extends Object

Class implementing the internal system attributes of a property. They are mapped into a bit array hold by the flags field in the property class for greater performance and less memory consumption.


Field Summary
static int HIDDEN_BIT_MASK
          Bit mask for the internal system attribute named "hidden".
static int LIVE_BIT_MASK
          Bit mask for the internal system attribute named "live".
static int READONLY_BIT_MASK
          Bit mask for the internal system attribute named "read only".
static int REQUIRED_BIT_MASK
          Bit mask for the internal system attribute named "required".
 
Constructor Summary
PropertyFlags()
           
 
Method Summary
static int constructFlags(boolean required, boolean live, boolean readOnly, boolean hidden)
          Construct property flags based on given explicit internal system attributes.
static boolean isHidden(int flags)
          Returns true if these property flags indicate that its holding property has the internal system attribute "hidden".
static boolean isLive(int flags)
          Returns true if these property flags indicate that its holding property has the internal system attribute "live".
static boolean isReadOnly(int flags)
          Returns true if these property flags indicate that its holding property has the internal system attribute "read only".
static boolean isRequired(int flags)
          Returns true if these property flags indicate that its holding property has the internal system attribute "required".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUIRED_BIT_MASK

public static final int REQUIRED_BIT_MASK
Bit mask for the internal system attribute named "required".

See Also:
Constant Field Values

LIVE_BIT_MASK

public static final int LIVE_BIT_MASK
Bit mask for the internal system attribute named "live".

See Also:
Constant Field Values

READONLY_BIT_MASK

public static final int READONLY_BIT_MASK
Bit mask for the internal system attribute named "read only".

See Also:
Constant Field Values

HIDDEN_BIT_MASK

public static final int HIDDEN_BIT_MASK
Bit mask for the internal system attribute named "hidden".

See Also:
Constant Field Values
Constructor Detail

PropertyFlags

public PropertyFlags()
Method Detail

constructFlags

public static final int constructFlags(boolean required,
                                       boolean live,
                                       boolean readOnly,
                                       boolean hidden)
Construct property flags based on given explicit internal system attributes.

Parameters:
required - true if this property should be required
live - true if this property should be live
readOnly - true if this property should be read only
hidden - true if this property should be hidden
Returns:
property flags

isRequired

public static final boolean isRequired(int flags)
Returns true if these property flags indicate that its holding property has the internal system attribute "required".

Parameters:
flags - bit array holding internal system attributes according to PropertyFlags bit mask fields
Returns:
true if this property is required

isLive

public static final boolean isLive(int flags)
Returns true if these property flags indicate that its holding property has the internal system attribute "live".

Parameters:
flags - bit array holding internal system attributes according to PropertyFlags bit mask fields
Returns:
true if this property is live

isReadOnly

public static final boolean isReadOnly(int flags)
Returns true if these property flags indicate that its holding property has the internal system attribute "read only".

Parameters:
flags - bit array holding internal system attributes according to PropertyFlags bit mask fields
Returns:
true if this property is read only

isHidden

public static final boolean isHidden(int flags)
Returns true if these property flags indicate that its holding property has the internal system attribute "hidden".

Parameters:
flags - bit array holding internal system attributes according to PropertyFlags bit mask fields
Returns:
true if this property is hidden


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. 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.