• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Property类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.isis.applib.annotation.Property的典型用法代码示例。如果您正苦于以下问题:Java Property类的具体用法?Java Property怎么用?Java Property使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Property类属于org.apache.isis.applib.annotation包,在下文中一共展示了Property类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getName

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@javax.jdo.annotations.NotPersistent
@Property(
        domainEvent = NameDomainEvent.class,
        editing = Editing.DISABLED
)
@PropertyLayout(
        hidden=Where.OBJECT_FORMS
)
@MemberOrder(name="Id", sequence = "1")
public String getName() {
    final StringBuilder buf = new StringBuilder();
    if(getFamilyName() != null) {
        if(getKnownAs() != null) {
            buf.append(getKnownAs());
        } else {
            buf.append(getGivenName());
        }
        buf.append(' ')
                .append(getFamilyName())
                .append(" (").append(getUsername()).append(')');
    } else {
        buf.append(getUsername());
    }
    return buf.toString();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:26,代码来源:ApplicationUser.java


示例2: if

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Action(
        semantics = SemanticsOf.SAFE,
        domainEvent = ActionDomainEvent.class
)
@ActionLayout(
        contributed = Contributed.AS_ASSOCIATION
)
@Property(
)
@PropertyLayout(
        hidden=Where.REFERENCES_PARENT
)
@MemberOrder(name="Feature", sequence = "4")
public ApplicationFeatureViewModel $$(final ApplicationPermission permission) {
    if(permission.getFeatureType() == null) {
        return null;
    }
    final ApplicationFeatureId featureId = getFeatureId(permission);
    return ApplicationFeatureViewModel.newViewModel(featureId, applicationFeatureRepository, container);
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:21,代码来源:ApplicationPermission_feature.java


示例3: getParent

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Property(
        domainEvent = ParentDomainEvent.class
)
@PropertyLayout(hidden=Where.ALL_TABLES)
@MemberOrder(name = "Parent", sequence = "2.6")
public ApplicationFeatureViewModel getParent() {
    final ApplicationFeatureId parentId;
    parentId = getType() == ApplicationFeatureType.MEMBER
            ? getFeatureId().getParentClassId()
            : getFeatureId().getParentPackageId();
    if(parentId == null) {
        return null;
    }
    final ApplicationFeature feature = applicationFeatureRepository.findFeature(parentId);
    if (feature == null) {
        return null;
    }
    final Class<?> cls = viewModelClassFor(parentId, applicationFeatureRepository);
    return (ApplicationFeatureViewModel) container.newViewModelInstance(cls, parentId.asEncodedString());

}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:22,代码来源:ApplicationFeatureViewModel.java


示例4: getNotes

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Property(
        command = CommandReification.ENABLED,
        publishing = Publishing.ENABLED,
        domainEvent = NotesDomainEvent.class
)
public String getNotes() {
    return notes;
}
 
开发者ID:Stephen-Cameron-Data-Services,项目名称:isis-agri,代码行数:9,代码来源:SimpleObject.java


示例5: getNombre

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Property(editing = Editing.DISABLED)
@Column(allowsNull = "false",length = 40)
@MemberOrder(name="Equipo", sequence= "1")
public String getNombre() 
{
	return nombre;
}
 
开发者ID:TesisTarjetasMejorar,项目名称:TarjetasISIS,代码行数:8,代码来源:Equipo.java


示例6: complete

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Action(
        semantics = SemanticsOf.SAFE,
        hidden = Where.ALL_TABLES
)
@ActionLayout(
        describedAs = "The relative priority of this item compared to others not yet complete (using 'due by' date)",
        contributed = Contributed.AS_ASSOCIATION
)
@Property(
        editing = Editing.DISABLED,
        editingDisabledReason = "Relative priority, derived from due date"
)
public Integer $$() {
    return queryResultsCache.execute(() -> {
        if(toDoItem.isComplete()) {
            return null;
        }

        // sort items, then locate this one
        int i=1;
        for (final ToDoItem each : relativePriorityService.sortedNotYetComplete()) {
            if(each == toDoItem) {
                return i;
            }
            i++;
        }
        return null;
    }, ToDoItem_relativePriority.class, "relativePriority", toDoItem);
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:30,代码来源:ToDoItem_relativePriority.java


示例7: getLocation

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Property(
        //ISIS-1138: Location value type not parsed from string, so fails to locate constructor
        //domainEvent = LocationDomainEvent.class,
        optionality = Optionality.OPTIONAL
)
public Location getLocation() {
    return locationLatitude != null && locationLongitude != null? new Location(locationLatitude, locationLongitude): null;
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:9,代码来源:ToDoItem.java


示例8: getType

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@javax.jdo.annotations.Column(allowsNull="false", length=20)
@javax.jdo.annotations.Persistent
@Property(
        domainEvent = TypeDomainEvent.class
)
@Override
public SettingType getType() {
    return super.getType();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-settings,代码行数:10,代码来源:UserSettingJdo.java


示例9: getName

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Property(
        mustSatisfy = CannotContainSpaces.class
)
@Column(allowsNull="false")
@Title(sequence="1")
public String getName() {
    return name;
}
 
开发者ID:isisaddons,项目名称:isis-app-kitchensink,代码行数:9,代码来源:SpecObject.java


示例10: getDescription

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Property(
        mustSatisfy = CannotContainSpacesTr.class
)
@Column(allowsNull="true")
public String getDescription() {
    return description;
}
 
开发者ID:isisaddons,项目名称:isis-app-kitchensink,代码行数:8,代码来源:SpecObject.java


示例11: getType

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
/**
 * Combines {@link #getFeatureType() feature type} and member type.
 */
@Property(
        domainEvent = TypeDomainEvent.class,
        editing = Editing.DISABLED
)
@PropertyLayout(typicalLength=ApplicationPermission.TYPICAL_LENGTH_TYPE)
@MemberOrder(name="Feature", sequence = "5")
public String getType() {
    final Enum<?> e = getFeatureType() != ApplicationFeatureType.MEMBER ? getFeatureType() : getMemberType();
    return e != null ? e.name(): null;
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:14,代码来源:ApplicationPermission.java


示例12: getKey

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@javax.jdo.annotations.Column(length=128)
@javax.jdo.annotations.PrimaryKey
@Property(
        domainEvent = KeyDomainEvent.class
)
@Title(sequence="10")
@Override
public String getKey() {
    return super.getKey();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-settings,代码行数:11,代码来源:UserSettingJdo.java


示例13: getDescription

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@javax.jdo.annotations.Column(allowsNull="false", length=100)
@Property(
        regexPattern = "\\w[@&:\\-\\,\\.\\+ \\w]*"
)
@PropertyLayout(
        typicalLength = 50
)
public String getDescription() {
    return description;
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-excel,代码行数:11,代码来源:ExcelModuleDemoToDoItem.java


示例14: getKey

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@javax.jdo.annotations.Column(length=128)
@javax.jdo.annotations.PrimaryKey
@Property(
        domainEvent = KeyDomainEvent.class
)
public String getKey() {
    return super.getKey();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-settings,代码行数:9,代码来源:ApplicationSettingJdo.java


示例15: getDescription

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@javax.jdo.annotations.Column(length=JdoColumnLength.DESCRIPTION)
@javax.jdo.annotations.Persistent
@Property(
        domainEvent=DescriptionDomainEvent.class
)
@Override
public String getDescription() {
    return super.getDescription();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-settings,代码行数:10,代码来源:UserSettingJdo.java


示例16: getMetadataRegionDummyProperty

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
/**
 * Exists just that the Wicket viewer will render an (almost) empty metadata region (on which the
 * framework contributed mixin actions will be attached).  The field itself can optionally be hidden
 * using CSS.
 */
@NotPersistent
@Property(domainEvent = MetadataRegionDummyPropertyDomainEvent.class, notPersisted = true)
@PropertyLayout(labelPosition = LabelPosition.NONE, hidden = Where.ALL_TABLES)
@MemberOrder(name="Metadata", sequence = "1")
public String getMetadataRegionDummyProperty() {
    return null;
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-audit,代码行数:13,代码来源:AuditEntry.java


示例17: getElementType

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Property(
        domainEvent = ElementTypeDomainEvent.class
)
@MemberOrder(name="Data Type", sequence = "2.6")
public String getElementType() {
    return getFeature().getReturnTypeName();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:8,代码来源:ApplicationClassCollection.java


示例18: isDerived

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Property(
        domainEvent = DerivedDomainEvent.class
)
@MemberOrder(name="Detail", sequence = "2.7")
public boolean isDerived() {
    return getFeature().isDerived();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:8,代码来源:ApplicationClassCollection.java


示例19: getReturnType

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Property(
        domainEvent = ReturnTypeDomainEvent.class
)
@MemberOrder(name="Data Type", sequence = "2.6")
public String getReturnType() {
    return getFeature().getReturnTypeName();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:8,代码来源:ApplicationClassAction.java


示例20: getActionSemantics

import org.apache.isis.applib.annotation.Property; //导入依赖的package包/类
@Property(
        domainEvent = ActionSemanticsDomainEvent.class
)
@MemberOrder(name="Detail", sequence = "2.8")
public SemanticsOf getActionSemantics() {
    return getFeature().getActionSemantics();
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:8,代码来源:ApplicationClassAction.java



注:本文中的org.apache.isis.applib.annotation.Property类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java KDCOptions类代码示例发布时间:2022-05-21
下一篇:
Java Swarm类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap