本文整理了Java中org.apache.isis.applib.Identifier.toNameIdentityString()
方法的一些代码示例,展示了Identifier.toNameIdentityString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Identifier.toNameIdentityString()
方法的具体详情如下:
包路径:org.apache.isis.applib.Identifier
类名称:Identifier
方法名:toNameIdentityString
暂无
代码示例来源:origin: org.apache.isis/applib
@Override
public String toIdentityString(final Identifier identifier) {
return identifier.toNameIdentityString();
}
},
代码示例来源:origin: org.apache.isis.core/isis-core-applib
@Override
public String toIdentityString(final Identifier identifier) {
return identifier.toNameIdentityString();
}
},
代码示例来源:origin: org.apache.isis.core/isis-core-applib
public String toNameIdentityString() {
return toNameIdentityString(new StringBuilder()).toString();
}
代码示例来源:origin: org.apache.isis/applib
public String toNameIdentityString() {
return toNameIdentityString(new StringBuilder()).toString();
}
代码示例来源:origin: org.apache.isis.viewer/wicket-model
public CollectionMemento(final OneToManyAssociation collection) {
this(new SpecMemento(owningSpecFor(collection)), collection.getIdentifier().toNameIdentityString());
this.collection = collection;
}
代码示例来源:origin: org.apache.isis.viewer/isis-viewer-wicket-model
public CollectionMemento(final OneToManyAssociation collection, final IsisSessionFactory isisSessionFactory) {
this(owningSpecFor(collection, isisSessionFactory).getSpecId(), collection.getIdentifier().toNameIdentityString(), collection);
}
代码示例来源:origin: org.apache.isis.core/isis-core-viewer-wicket-model
public CollectionMemento(final OneToManyAssociation collection, final IsisSessionFactory isisSessionFactory) {
this(owningSpecFor(collection, isisSessionFactory).getSpecId(), collection.getIdentifier().toNameIdentityString(), collection);
}
代码示例来源:origin: org.apache.isis.core/metamodel
private ObjectAction getAction(final List<ObjectAction> availableActions, final ActionType type, final String id) {
if (id == null) {
return null;
}
outer: for (int i = 0; i < availableActions.size(); i++) {
final ObjectAction action = availableActions.get(i);
if (action.getActions().size() > 0) {
// deal with action set
final ObjectAction a = getAction(action.getActions(), type, id);
if (a != null) {
return a;
}
} else {
// regular action
if (!type.matchesTypeOf(action)) {
continue outer;
}
if (id.equals(action.getIdentifier().toNameParmsIdentityString())) {
return action;
}
if (id.equals(action.getIdentifier().toNameIdentityString())) {
return action;
}
continue outer;
}
}
return null;
}
代码示例来源:origin: org.apache.isis.viewer/wicket-model
public PropertyMemento(final OneToOneAssociation property) {
this(new SpecMemento(owningSpecFor(property)), property.getIdentifier().toNameIdentityString(), new SpecMemento(property.getSpecification()));
this.property = property;
}
代码示例来源:origin: org.apache.isis.core/isis-core-viewer-wicket-model
public PropertyMemento(
final OneToOneAssociation property, final IsisSessionFactory isisSessionFactory) {
this(
owningSpecFor(property, isisSessionFactory).getSpecId(),
property.getIdentifier().toNameIdentityString(),
property.getSpecification().getSpecId()
);
}
代码示例来源:origin: org.apache.isis.viewer/isis-viewer-wicket-model
public PropertyMemento(
final OneToOneAssociation property, final IsisSessionFactory isisSessionFactory) {
this(
owningSpecFor(property, isisSessionFactory).getSpecId(),
property.getIdentifier().toNameIdentityString(),
property.getSpecification().getSpecId()
);
}
代码示例来源:origin: org.apache.isis.viewer/wicket-model
@Override
public String getLongName(final ScalarModel scalarModel) {
final ObjectAdapterMemento adapterMemento = scalarModel.getObjectAdapterMemento();
if (adapterMemento == null) {
// shouldn't happen
return null;
}
final String specShortName = adapterMemento.getSpecMemento().getSpecification().getShortIdentifier();
final String parmId = scalarModel.getParameterMemento().getActionParameter().getIdentifier().toNameIdentityString();
return specShortName + "-" + parmId + "-" + scalarModel.getParameterMemento().getNumber();
}
代码示例来源:origin: org.apache.isis.core/isis-core-runtime
@Override
public void addActionArgs(
final ObjectAction objectAction,
final ActionDto actionDto,
final ObjectAdapter[] argAdapters) {
final String actionId = CommandUtil.memberIdentifierFor(objectAction);
final ObjectSpecification onType = objectAction.getOnType();
final String objectType = onType.getSpecId().asString();
final String localId = objectAction.getIdentifier().toNameIdentityString();
actionDto.setLogicalMemberIdentifier(objectType + "#" + localId);
actionDto.setMemberIdentifier(actionId);
List<ObjectActionParameter> actionParameters = objectAction.getParameters();
for (int paramNum = 0; paramNum < actionParameters.size(); paramNum++) {
final ObjectActionParameter actionParameter = actionParameters.get(paramNum);
final String parameterName = actionParameter.getName();
final Class<?> paramType = actionParameter.getSpecification().getCorrespondingClass();
final ObjectAdapter argAdapter = argAdapters[paramNum];
final Object arg = argAdapter != null? argAdapter.getObject(): null;
final ParamsDto parameters = CommandDtoUtils.parametersFor(actionDto);
final List<ParamDto> parameterList = parameters.getParameter();
ParamDto paramDto = CommonDtoUtils.newParamDto(
parameterName, paramType, arg, bookmarkService);
parameterList.add(paramDto);
}
}
代码示例来源:origin: org.apache.isis.viewer/isis-viewer-wicket-model
@Override
public String getLongName(final ScalarModel scalarModel) {
final ObjectAdapterMemento adapterMemento = scalarModel.getObjectAdapterMemento();
if (adapterMemento == null) {
// shouldn't happen
return null;
}
ObjectSpecId objectSpecId = adapterMemento.getObjectSpecId();
final String specShortName = SpecUtils.getSpecificationFor(objectSpecId, scalarModel.getSpecificationLoader()).getShortIdentifier();
final String parmId = scalarModel.getParameterMemento().getActionParameter(scalarModel.getSpecificationLoader()).getIdentifier().toNameIdentityString();
return specShortName + "-" + parmId + "-" + scalarModel.getParameterMemento().getNumber();
}
代码示例来源:origin: org.apache.isis.core/isis-core-runtime
@Override
public void addPropertyValue(
final OneToOneAssociation property,
final PropertyDto propertyDto,
final ObjectAdapter valueAdapter) {
final String actionIdentifier = CommandUtil.memberIdentifierFor(property);
final ObjectSpecification onType = property.getOnType();
final String objectType = onType.getSpecId().asString();
final String localId = property.getIdentifier().toNameIdentityString();
propertyDto.setLogicalMemberIdentifier(objectType + "#" + localId);
propertyDto.setMemberIdentifier(actionIdentifier);
final ObjectSpecification valueSpec = property.getSpecification();
final Class<?> valueType = valueSpec.getCorrespondingClass();
final ValueWithTypeDto newValue = CommonDtoUtils.newValueWithTypeDto(
valueType, ObjectAdapter.Util.unwrap(valueAdapter), bookmarkService);
propertyDto.setNewValue(newValue);
}
内容来源于网络,如有侵权,请联系作者删除!