/*
(non-Javadoc)
@see org.jdiameter.api.app.StateMachine#getState(java.lang.Class)
170139
@Override
  @SuppressWarnings("unchecked")
  public <E> E getState(Class<E> stateType) {
    return stateType == S6aSessionState.class ? (E) this.sessionData.getS6aSessionState() : null;
  }
317341
public boolean getState()               // init this field override for other value
    {
        if (this.getDataClass() == Boolean.class)
        {
            Boolean objData = (Boolean)this.getData();
            if (objData != null)
                return objData.booleanValue();
        }
        return false;
    }
1118902
public final String state() {

        String thisMethodName = "state";

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.entry(tc, thisMethodName, this);
        }

        String state = getState();

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.exit(tc, thisMethodName, state);
        }

        return state;
    }
395528
private static ThreadState state()
    {
        ThreadState state=(ThreadState)__states.get();
        if (state==null)
        {
            state=new ThreadState();
            __states.set(state);
        }
        return state;
    }
248949
private int getComponentState(JComponent c) {
        int state = ENABLED;

        if (!c.isEnabled()) {
            state = DISABLED;
        }

        if (SeaGlassLookAndFeel.selectedUI == this) {
            return SeaGlassLookAndFeel.selectedUIState | SynthConstants.ENABLED;
        }

        AbstractButton button = (AbstractButton) c;
        ButtonModel    model  = button.getModel();

        if (model.isPressed()) {
            if (model.isArmed()) {
                state = PRESSED;
            } else {
                state = MOUSE_OVER;
            }
        }

        if (model.isRollover()) {
            state |= MOUSE_OVER;
        }

        if (model.isSelected()) {
            state |= SELECTED;
        }

        if (c.isFocusOwner() && button.isFocusPainted()) {
            state |= FOCUSED;
        }

        if ((c instanceof JButton) && ((JButton) c).isDefaultButton()) {
            state |= DEFAULT;
        }
        
        return state;
    }
473070
public <T> T get(Class<T> stateType) {
		Map<Class<?>, Object> states = getStates();
		T value = getState( states, stateType );

		if ( value == null ) {
			throw new IllegalArgumentException( "Accessing state of type not enabled: " + stateType );
		}

		return value;
	}
576464
protected <S extends State> S getPartitionedState(StateDescriptor<S, ?> stateDescriptor) throws Exception {
		return getPartitionedState(VoidNamespace.INSTANCE, VoidNamespaceSerializer.INSTANCE, stateDescriptor);
	}
146055
function(state) {
	   if(state == inputEx.stateInvalid && this.options.minLength && this.el.value.length < this.options.minLength) {
	      return inputEx.messages.stringTooShort[0]+this.options.minLength+inputEx.messages.stringTooShort[1];
      }
	   return inputEx.StringField.superclass.getStateString.call(this, state);
	}
561068
public static State getStateImpl() {
        State s = null;
        try {
             DiscoverClass dc = new DiscoverClass();
             s = (State) dc.newInstance(
             State.class,
             State.DEFAULT_STATE_IMPL);
        } catch (Exception ex) {
             // ignore as default implementation will be used.
        }
        return s;
    }
545766
@Override
    public StateContract getStateFromName(String countryAlternateCode, String stateName) {
        CountryContract country = getCountryFromCode(countryAlternateCode);

        return getKcStateService().getState(country.getCode(), stateName);
    }
508442
public StreamState getStreamState()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getStreamState");  
    StreamState returnValue = aiStream.getStreamState();
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getStreamState", returnValue);
    return returnValue;  
  }
1016421
public static WindowState getWindowState(String state) {
        if (state == null) {
            return null;
        }

        final WindowState windowState = WINDOW_STATES.get(state);
        if (windowState != null) {
            return windowState;
        }

        return new WindowState(state);
    }
1007380
public java.lang.String getState() {
    java.lang.Object ref = state_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        state_ = s;
      }
      return s;
    }
  }
419184
@Nullable public <VS> VS getViewState(@NonNull String viewId) {
    PresenterHolder holder = presenterMap.get(viewId);
    return holder == null ? null : (VS) holder.viewState;
  }
1147854
@Override
    public SensorState getState() {
        if(pin.isState(openState))
            return SensorState.OPEN;
        else
            return SensorState.CLOSED;
    }
314034
protected int getState() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getState");
        int tempState;
        synchronized (stateLock) {
            tempState = state;
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "getState", state);
        return tempState;
    }
808042
public boolean getState()
    {
        boolean bReturnValue;
        if (m_strTargetValue != null)
        {
            if (m_boolMaskValue.booleanValue())
                bReturnValue = (this.getString().indexOf(m_strTargetValue) != -1); // Is the target value in the field string
            else
                bReturnValue = m_strTargetValue.equals(this.toString()); // Is the target value in the field string
        }
        else if (m_fldTargetValue != null)
            bReturnValue = this.equals(m_fldTargetValue); // Is the target value in the field string
        else
            bReturnValue = this.getField().isNull(); // Is the field string null?
        if (m_bTrueIfMatch)
            return bReturnValue;
        else
            return !bReturnValue;
    }