public class JavaFieldDescriptor extends Object implements IFieldDescriptor, org.apache.wicket.model.IDetachable
IFieldDescriptor
interface.Constructor and Description |
---|
JavaFieldDescriptor(IFieldDescriptor source) |
JavaFieldDescriptor(String prefix,
ITypeDescriptor type) |
Modifier and Type | Method and Description |
---|---|
void |
addValidator(String validator) |
void |
detach() |
Set<String> |
getExcluded()
For residual field definitions (name is '*'), the excluded names consist of the list of the paths for all
other fields in the type.
|
String |
getName()
Symbolic name of the field.
|
String |
getPath()
The (JCR) path of the field.
|
String |
getType() |
ITypeDescriptor |
getTypeDescriptor()
The descriptor of the type of the field.
|
Set<String> |
getValidators()
The symbolic names for validators associated with this field.
|
boolean |
isAutoCreated()
Will an instance of the field be created automatically for a new instance of the containing type.
|
boolean |
isMandatory()
When the field is mandatory, it must be present for the (JCR) session to be in a valid state.
|
boolean |
isMultiple()
Can multiple instances of this field be created.
|
boolean |
isOrdered()
When multiple instances of the field can be present, can they be reordered.
|
boolean |
isPrimary()
Is this field the primary field of the containing type.
|
boolean |
isProtected()
Is the field protected, i.e.
|
void |
removeValidator(String validator) |
void |
setAutoCreated(boolean autocreated) |
void |
setExcluded(Set<String> set) |
void |
setMandatory(boolean mandatory) |
void |
setMultiple(boolean multiple) |
void |
setName(String name) |
void |
setObservationContext(IObservationContext context)
Before observation is started on the observable, an observation context is injected by
the observer registry.
|
void |
setOrdered(boolean isOrdered) |
void |
setPath(String path) |
void |
setProtected(boolean protect) |
void |
startObservation()
When the first
IObserver of this observable is registered with the observer
registry, observation is started. |
void |
stopObservation()
When the last
IObserver unregisters, observation is stopped. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
public JavaFieldDescriptor(String prefix, ITypeDescriptor type)
public JavaFieldDescriptor(IFieldDescriptor source)
public String getName()
IFieldDescriptor
getName
in interface IFieldDescriptor
public void setName(String name)
public String getType()
public ITypeDescriptor getTypeDescriptor()
IFieldDescriptor
getTypeDescriptor
in interface IFieldDescriptor
public String getPath()
IFieldDescriptor
getPath
in interface IFieldDescriptor
public void setPath(String path)
setPath
in interface IFieldDescriptor
public boolean isMultiple()
IFieldDescriptor
isMultiple
in interface IFieldDescriptor
public void setMultiple(boolean multiple)
setMultiple
in interface IFieldDescriptor
public boolean isAutoCreated()
IFieldDescriptor
isAutoCreated
in interface IFieldDescriptor
public void setAutoCreated(boolean autocreated)
setAutoCreated
in interface IFieldDescriptor
public boolean isProtected()
IFieldDescriptor
isProtected
in interface IFieldDescriptor
public void setProtected(boolean protect)
public boolean isMandatory()
IFieldDescriptor
isMandatory
in interface IFieldDescriptor
public void setMandatory(boolean mandatory)
setMandatory
in interface IFieldDescriptor
public boolean isOrdered()
IFieldDescriptor
isOrdered
in interface IFieldDescriptor
public void setOrdered(boolean isOrdered)
setOrdered
in interface IFieldDescriptor
public boolean isPrimary()
IFieldDescriptor
isPrimary
in interface IFieldDescriptor
public Set<String> getExcluded()
IFieldDescriptor
getExcluded
in interface IFieldDescriptor
public void setExcluded(Set<String> set)
setExcluded
in interface IFieldDescriptor
public void setObservationContext(IObservationContext context)
IObservable
setObservationContext
in interface IObservable
public void startObservation()
IObservable
IObserver
of this observable is registered with the observer
registry, observation is started. Implementations must notify observers until observation
is stopped.
An implementation should register listeners with external data sources, when appropriate. It is possible for an observable to register as an observer for another observable.
startObservation
in interface IObservable
public void stopObservation()
IObservable
IObserver
unregisters, observation is stopped. Any listeners
or observers registered by the observable must be unregistered by the implementation.stopObservation
in interface IObservable
public Set<String> getValidators()
IFieldDescriptor
getValidators
in interface IFieldDescriptor
public void addValidator(String validator)
addValidator
in interface IFieldDescriptor
public void removeValidator(String validator)
removeValidator
in interface IFieldDescriptor
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.