groovy.lang.ReadOnlyPropertyException Java Examples
The following examples show how to use
groovy.lang.ReadOnlyPropertyException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DriverScriptMetaClass.java From arcusplatform with Apache License 2.0 | 6 votes |
@Override public void setProperty( Class sender, Object object, String name, Object newValue, boolean useSuper, boolean fromInsideClass) { if(!frozen) { super.setProperty(sender, object, name, newValue, useSuper, fromInsideClass); } else { if(hasProperty(object, name) == null) { throw new MissingPropertyException(name); } else { throw new ReadOnlyPropertyException(name, getTheClass()); } } }
Example #2
Source File: ZigbeeConfigContext.java From arcusplatform with Apache License 2.0 | 5 votes |
@Override public void setProperty(String property, Object newValue) { switch (property) { case "reflex": throw new ReadOnlyPropertyException("reflex", getClass()); case "Data": throw new ReadOnlyPropertyException("reflex", getClass()); default: super.setProperty(property, newValue); break; } }
Example #3
Source File: AttributesContext.java From arcusplatform with Apache License 2.0 | 5 votes |
@Override public void setProperty(String property, Object newValue) { if(Utils.isNamespaced(property)) { setAttribute(property, newValue); } else { throw new ReadOnlyPropertyException(property, getClass()); } }
Example #4
Source File: DriverScriptMetaClass.java From arcusplatform with Apache License 2.0 | 5 votes |
@Override public void setAttribute( Class sender, Object object, String attribute, Object newValue, boolean useSuper, boolean fromInsideClass) { if(!frozen) { super.setAttribute( sender, object, attribute, newValue, useSuper, fromInsideClass); } else { throw new ReadOnlyPropertyException(attribute, getTheClass()); } }
Example #5
Source File: DefaultExtraPropertiesExtension.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void setProperty(String name, Object newValue) { if (name.equals("properties")) { throw new ReadOnlyPropertyException("name", ExtraPropertiesExtension.class); } set(name, newValue); }
Example #6
Source File: DefaultExtraPropertiesExtension.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void setProperty(String name, Object newValue) { if (name.equals("properties")) { throw new ReadOnlyPropertyException("name", ExtraPropertiesExtension.class); } set(name, newValue); }
Example #7
Source File: ResultSetMetaDataWrapper.java From groovy with Apache License 2.0 | 4 votes |
@Override public void setProperty(String property, Object newValue) { throw new ReadOnlyPropertyException(property, target.getClass()); }
Example #8
Source File: BindingProxy.java From groovy with Apache License 2.0 | 4 votes |
public void setProperty(String property, Object value) { throw new ReadOnlyPropertyException(property, getModel().getClass()); }
Example #9
Source File: DefaultExtraPropertiesExtension.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void setProperty(String name, Object newValue) { if (name.equals("properties")) { throw new ReadOnlyPropertyException("name", ExtraPropertiesExtension.class); } set(name, newValue); }
Example #10
Source File: DefaultExtraPropertiesExtension.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void setProperty(String name, Object newValue) { if (name.equals("properties")) { throw new ReadOnlyPropertyException("name", ExtraPropertiesExtension.class); } set(name, newValue); }