Java 类com.fasterxml.jackson.databind.ser.impl.BeanAsArraySerializer 实例源码
项目:java-triton
文件:FlatteningModifySerializer.java
/**
* Copied from the underlying Jackson implementation of BeanSerializer.
*
* Implementation has to check whether as-array serialization
* is possible reliably; if (and only if) so, will construct
* a {@link BeanAsArraySerializer}, otherwise will return this
* serializer as is.
*/
@Override
protected BeanSerializerBase asArraySerializer() {
/* Can not:
*
* - have Object Id (may be allowed in future)
* - have "any getter"
* - have per-property filters
*/
if ((_objectIdWriter == null)
&& (_anyGetterWriter == null)
&& (_propertyFilterId == null)
) {
return new BeanAsArraySerializer(this);
}
// already is one, so:
return this;
}
项目:hydra-java
文件:JacksonHydraSerializer.java
@Override
protected BeanSerializerBase asArraySerializer() {
/* Can not:
*
* - have Object Id (may be allowed in future)
* - have any getter
*
*/
if ((_objectIdWriter == null)
&& (_anyGetterWriter == null)
&& (_propertyFilterId == null)
) {
return new BeanAsArraySerializer(this);
}
// already is one, so:
return this;
}
项目:joyplus-tv
文件:BeanSerializer.java
/**
* Implementation has to check whether as-array serialization
* is possible reliably; if (and only if) so, will construct
* a {@link BeanAsArraySerializer}, otherwise will return this
* serializer as is.
*/
@Override
protected BeanSerializerBase asArraySerializer()
{
/* Can not:
*
* - have Object Id (may be allowed in future)
* - have any getter
*
*/
if ((_objectIdWriter == null)
&& (_anyGetterWriter == null)
&& (_propertyFilterId == null)
) {
return new BeanAsArraySerializer(this);
}
// already is one, so:
return this;
}
项目:metadict
文件:DictionaryObjectSerializer.java
/**
* See {@see BeanSerializer#asArraySerializer} implementation.
*/
@Override
protected BeanSerializerBase asArraySerializer() {
if ((this._objectIdWriter == null)
&& (this._anyGetterWriter == null)
&& (this._propertyFilterId == null)
) {
return new BeanAsArraySerializer(this);
}
return this;
}
项目:QuizUpWinner
文件:BeanSerializer.java
protected BeanSerializerBase asArraySerializer()
{
if ((this._objectIdWriter == null) && (this._anyGetterWriter == null) && (this._propertyFilterId == null))
return new BeanAsArraySerializer(this);
return this;
}