@Test public void isLocalKey_OnIntactSheet() { List<StyleKey> keys = StyleKey.getDefinedStyleKeysList(); StyleKey key = keys.get( 0 ); ElementStyleSheet sheet = new ElementStyleSheet(); assertFalse( "Non-changed sheet has no 'local' keys", sheet.isLocalKey( key ) ); }
public boolean isLocalKey( final StyleKey key ) { if ( source == null ) { return false; } final int identifier = key.identifier; if ( properties.length <= identifier ) { return false; } return getFlag( identifier ) == SOURCE_DIRECT; }
ElementStyleSheet extends AbstractStyleSheet implements Serializable, Cloneable { public boolean isLocalKey( final StyleKey key ) { if ( source == null ) { return false; } final int identifier = key.identifier; if ( properties.length <= identifier ) { return false; } return getFlag( identifier ) == SOURCE_DIRECT; } }
ElementStyleSheet extends AbstractStyleSheet implements Serializable, Cloneable { public boolean isLocalKey( final StyleKey key ) { if ( source == null ) { return false; } final int identifier = key.identifier; if ( properties.length <= identifier ) { return false; } return getFlag( identifier ) == SOURCE_DIRECT; } ElementStyleSheet(); }
ElementStyleSheet extends AbstractStyleSheet implements Serializable, Cloneable { public boolean isLocalKey( final StyleKey key ) { if ( source == null ) { return false; } final int identifier = key.identifier; if ( properties.length <= identifier ) { return false; } return getFlag( identifier ) == SOURCE_DIRECT; } ElementStyleSheet(); long getChangeTracker(); boolean isLocalKey( final StyleKey key ); final Object[] toArray(); Object getStyleProperty( final StyleKey key, final Object defaultValue ); void setBooleanStyleProperty( final StyleKey key, final boolean value ); void setStyleProperty( final StyleKey key, final Object value ); ElementStyleSheet clone(); ElementStyleSheet derive( final boolean preserveId ); StyleKey[] getDefinedPropertyNamesArray(); void addListener( final StyleChangeListener l ); void removeListener( final StyleChangeListener l ); StyleKey[] getPropertyKeys(); List<StyleKey> getPropertyKeyList(); void addAll( final ElementStyleSheet sourceStyleSheet ); void addInherited( final ElementStyleSheet sourceStyleSheet ); void addInherited( final SimpleStyleSheet sourceStyleSheet ); void addDefault( final ElementStyleSheet sourceStyleSheet ); void clear(); long getModificationCount(); long getChangeTrackerHash(); void copyFrom( final ElementStyleSheet style ); }
ElementStyleSheet extends AbstractStyleSheet implements Serializable, Cloneable { public boolean isLocalKey( final StyleKey key ) { if ( source == null ) { return false; } final int identifier = key.identifier; if ( properties.length <= identifier ) { return false; } return getFlag( identifier ) == SOURCE_DIRECT; } ElementStyleSheet(); long getChangeTracker(); boolean isLocalKey( final StyleKey key ); final Object[] toArray(); Object getStyleProperty( final StyleKey key, final Object defaultValue ); void setBooleanStyleProperty( final StyleKey key, final boolean value ); void setStyleProperty( final StyleKey key, final Object value ); ElementStyleSheet clone(); ElementStyleSheet derive( final boolean preserveId ); StyleKey[] getDefinedPropertyNamesArray(); void addListener( final StyleChangeListener l ); void removeListener( final StyleChangeListener l ); StyleKey[] getPropertyKeys(); List<StyleKey> getPropertyKeyList(); void addAll( final ElementStyleSheet sourceStyleSheet ); void addInherited( final ElementStyleSheet sourceStyleSheet ); void addInherited( final SimpleStyleSheet sourceStyleSheet ); void addDefault( final ElementStyleSheet sourceStyleSheet ); void clear(); long getModificationCount(); long getChangeTrackerHash(); void copyFrom( final ElementStyleSheet style );  }