gpt4 book ai didi

org.brixcms.workspace.Workspace.getAttribute()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 23:37:05 29 4
gpt4 key购买 nike

本文整理了Java中org.brixcms.workspace.Workspace.getAttribute()方法的一些代码示例,展示了Workspace.getAttribute()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workspace.getAttribute()方法的具体详情如下:
包路径:org.brixcms.workspace.Workspace
类名称:Workspace
方法名:getAttribute

Workspace.getAttribute介绍

[英]Returns attribute with the specified key.
[中]

代码示例

代码示例来源:origin: brix-cms/brix-cms

public String getSnapshotSiteName(Workspace workspace) {
  return workspace.getAttribute(WORKSPACE_ATTRIBUTE_SITE_NAME);
}

代码示例来源:origin: brix-cms/brix-cms

/**
 * Gets the Comment for the Workspace
 *
 * @param workspace the comment holding Workspace
 * @return the comment of the Workspace as String
 */
public String getComment(Workspace workspace) {
  return workspace.getAttribute(WORKSPACE_COMMENT);
}

代码示例来源:origin: brix-cms/brix-cms

public String getAttribute(String attributeKey) throws RemoteException {
  return delegate.getAttribute(attributeKey);
}

代码示例来源:origin: brix-cms/brix-cms

public String getWorkspaceState(Workspace workspace) {
  return workspace.getAttribute(WORKSPACE_ATTRIBUTE_STATE);
}

代码示例来源:origin: brix-cms/brix-cms

public String getWorkspaceName(Workspace workspace) {
  return workspace.getAttribute(WORKSPACE_ATTRIBUTE_NAME);
}

代码示例来源:origin: brix-cms/brix-cms

public String getPrototypeName(Workspace workspace) {
  return workspace.getAttribute(WORKSPACE_ATTRIBUTE_PROTOTYPE_NAME);
}

代码示例来源:origin: brix-cms/brix-cms

public boolean isSnapshotWorkspace(Workspace workspace) {
  return WORKSPACE_TYPE.equals(workspace.getAttribute(Brix.WORKSPACE_ATTRIBUTE_TYPE));
}

代码示例来源:origin: brix-cms/brix-cms

public boolean isSiteWorkspace(Workspace workspace) {
  return WORKSPACE_TYPE.equals(workspace.getAttribute(Brix.WORKSPACE_ATTRIBUTE_TYPE));
}

代码示例来源:origin: brix-cms/brix-cms

public boolean isPrototypeWorkspace(Workspace workspace) {
  return WORKSPACE_TYPE.equals(workspace.getAttribute(Brix.WORKSPACE_ATTRIBUTE_TYPE));
}

代码示例来源:origin: brix-cms/brix-cms

public Date getCreated(Workspace workspace) {
  String formatted = workspace.getAttribute(WORKSPACE_ATTRIBUTE_CREATED);
  if (formatted == null) {
    return null;
  } else {
    DateFormat df = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG);
    Date date;
    try {
      date = df.parse(formatted);
      return date;
    } catch (ParseException e) {
      return null;
    }
  }
}

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com